/* ==========================================================================
   LANDING PAGE ADDITIONAL STYLES — scroll reveal, layout tweaks
   ========================================================================== */

/* Smooth scroll offset for sticky nav */
html { scroll-padding-top: 85px; }

/* ── Brand Logo Enhancement ── */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-icon {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* ── Hero Scroll Indicator ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.scroll-dot {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(200, 138, 53, 0.6);
  border-radius: 15px;
  position: relative;
}

.scroll-dot::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 3px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(16px); opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero-scroll-indicator { display: none; }
}

/* ── Prayer Section Enhancements ── */
.prayer-icon-badge {
  width: 72px;
  height: 72px;
  background: rgba(200, 138, 53, 0.15);
  border: 1px solid rgba(200, 138, 53, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md) auto;
  color: var(--color-accent);
}

.prayer-points {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.prayer-point-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(200, 138, 53, 0.2);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: rgba(250, 249, 246, 0.9);
  font-weight: 500;
}

/* ── btn-accent (alias of btn-primary for dark sections) ── */
.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(200, 138, 53, 0.4);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 138, 53, 0.5);
}

/* ── Badge styles ── */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(200, 138, 53, 0.2);
  color: #F8D69A;
  border: 1px solid rgba(200, 138, 53, 0.4);
}

/* Text center utility */
.text-center { text-align: center; }

/* Mission grid — responsive 2-col layout */
@media (max-width: 768px) {
  .lp-mission-grid {
    grid-template-columns: 1fr !important;
  }
  .lp-mission-grid > div:first-child {
    order: 2;
  }
  .lp-mission-grid > div:last-child {
    order: 1;
  }
}

/* Pillar card span-2 responsive fix */
@media (max-width: 640px) {
  .card[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
}

/* ── Scroll Reveal Animations ── */
.lp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect for grids */
.grid .lp-reveal:nth-child(1) { transition-delay: 0s; }
.grid .lp-reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .lp-reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .lp-reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .lp-reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .lp-reveal:nth-child(6) { transition-delay: 0.40s; }

/* Timeline items stagger */
.timeline .lp-reveal:nth-child(1) { transition-delay: 0s; }
.timeline .lp-reveal:nth-child(2) { transition-delay: 0.1s; }
.timeline .lp-reveal:nth-child(3) { transition-delay: 0.2s; }
.timeline .lp-reveal:nth-child(4) { transition-delay: 0.3s; }

/* Stepper stagger */
.stepper-container .lp-reveal:nth-child(n) { transition-delay: calc(var(--step-index, 0) * 0.07s); }

/* ── Hero parallax feel ── */
.hero {
  min-height: 92vh;
}

.hero-content {
  padding-top: 8rem;
  padding-bottom: 6rem;
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  .hero-title {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100svh;
  }
}

/* ── Section spacing refinements ── */
.indicators-bar {
  border-bottom: none;
  border-top: 3px solid var(--color-accent);
}

/* ── Active nav highlight enhancement ── */
.nav-link.active {
  color: var(--color-forest-dark) !important;
}
.nav-link.active::after {
  width: 100%;
}

/* ── Blog grid min-height to prevent layout shift ── */
#blog-grid {
  min-height: 300px;
}

/* ── Toast styling override ── */
#lp-toast {
  display: none;
}

/* ── Oracion section text override ── */
.section-bg-forest .section-subtitle {
  color: var(--color-accent);
}

/* ── Community card image taller on desktop ── */
@media (min-width: 768px) {
  .community-img-container {
    height: 320px;
  }
}

/* ── Meru card h2 color override ── */
.meru-card h2 {
  color: var(--color-offwhite);
  margin-bottom: var(--space-md);
}

/* ── Footer brand fixes ── */
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(250,249,246,0.65);
  margin-top: var(--space-sm);
}

/* ── Back to top feel when scrolling ── */
main > section:first-of-type {
  scroll-margin-top: 0;
}

/* ── Mobile nav CTA hidden inside collapsed nav ── */
@media (max-width: 900px) {
  #nav-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ── Prayer section headings color ── */
#oracion h2 {
  color: var(--color-offwhite);
}

/* ── Meru card buttons responsive ── */
.meru-card .btn-lg {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .meru-card .btn-lg {
    width: 100%;
  }
}

/* ── Modal button container ── */
.modal-content .flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ── Contact Info Card Redesign ── */
.contact-info-card {
  background: linear-gradient(135deg, var(--color-forest-dark) 0%, var(--color-forest) 100%);
  color: var(--color-offwhite);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(200, 138, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(200, 138, 53, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-card-header h3 {
  color: var(--color-offwhite);
  margin-bottom: var(--space-xs);
  font-size: 1.3rem;
}

.contact-card-subtitle {
  color: rgba(250, 249, 246, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-offwhite);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.contact-detail-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 138, 53, 0.3);
  transform: translateX(4px);
}

.contact-detail-item:not(a) {
  cursor: default;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-item.whatsapp .contact-detail-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.contact-detail-item.email .contact-detail-icon {
  background: rgba(200, 138, 53, 0.15);
  color: var(--color-accent);
}

.contact-detail-item.location .contact-detail-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.contact-detail-item.church .contact-detail-icon {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.contact-detail-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.contact-detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 249, 246, 0.55);
  font-weight: 600;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: var(--color-offwhite);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-detail-arrow {
  color: rgba(250, 249, 246, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-detail-item:hover .contact-detail-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

.contact-card-footer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  background: rgba(200, 138, 53, 0.12);
  border: 1px solid rgba(200, 138, 53, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  width: fit-content;
}

.contact-card-footer:hover {
  background: rgba(200, 138, 53, 0.2);
  border-color: var(--color-accent);
  color: var(--color-sand-light);
}

.contact-card-footer svg {
  transition: transform 0.2s ease;
}

.contact-card-footer:hover svg {
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .contact-info-card {
    padding: var(--space-xl);
  }
  .contact-detail-item {
    padding: var(--space-sm) var(--space-md);
  }
  .contact-detail-value {
    font-size: 0.85rem;
  }
}

/* ── Equal Height Contact Cards ── */
.contact-cards-grid {
  align-items: stretch;
}

.contact-cards-grid > .card,
.contact-cards-grid > .contact-info-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-cards-grid .contact-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-cards-grid .contact-form .form-group:last-of-type {
  margin-bottom: auto;
}

.contact-cards-grid .contact-form .btn {
  margin-top: var(--space-md);
}

/* ── Church Box & Logo High Contrast ── */
.church-box {
  background: var(--color-white);
  border: 1px solid var(--color-sand-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.church-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--color-accent);
}

.church-logo {
  background: linear-gradient(145deg, var(--color-forest-dark) 0%, var(--color-forest) 100%);
  padding: 1.8rem 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(200, 138, 53, 0.35);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 220px;
}

.church-logo-img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

@media (max-width: 768px) {
  .church-box {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }
  .church-logo {
    min-width: unset;
    width: 100%;
    padding: 1.5rem;
  }
}

/* ── Enhanced Indicators Bar ── */
.indicators-bar {
  background: linear-gradient(180deg, var(--color-forest-dark) 0%, #152b22 100%);
  border-top: 3px solid var(--color-accent);
  border-bottom: 1px solid rgba(200, 138, 53, 0.2);
}

.indicator-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 138, 53, 0.18);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
}

.indicator-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

/* ── Modern 5-Pillars Layout (Centered 3 + 2) ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-lg);
}

.pillar-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--color-gray-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card:nth-child(1),
.pillar-card:nth-child(2),
.pillar-card:nth-child(3) {
  grid-column: span 2;
}

.pillar-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.pillar-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-sand-muted);
}

.pillar-card:hover::before {
  background: var(--color-accent);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-earth-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(200, 138, 53, 0.25);
}

.pillar-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-forest);
}

@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar-card:nth-child(1),
  .pillar-card:nth-child(2),
  .pillar-card:nth-child(3),
  .pillar-card:nth-child(4) {
    grid-column: auto;
  }
  .pillar-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillar-card:nth-child(n) {
    grid-column: auto !important;
  }
}

/* ── Silvia Bio Photo Badge ── */
.silvia-photo-frame {
  position: relative;
  display: block;
  width: 100%;
}

.silvia-photo-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .silvia-photo-frame img {
    height: 320px;
  }
  .silvia-photo-badge {
    position: static;
    margin-top: var(--space-sm);
    border-radius: var(--radius-md);
    background: var(--color-forest-dark);
  }
}

.silvia-photo-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(23, 50, 40, 0.92);
  backdrop-filter: blur(8px);
  color: var(--color-offwhite);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}

.silvia-photo-badge p {
  color: var(--color-sand-light);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

/* ── Harmonious Partnering / Apoyo Layout ── */
.partner-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.prayer-cta-card {
  background: linear-gradient(135deg, rgba(35, 72, 58, 0.08) 0%, rgba(200, 138, 53, 0.08) 100%);
  border: 1px solid var(--color-sand-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
