/* ============================================
   Who We Are Page — Gateway Bible Church
   Page-specific layouts only.
   Shared components come from components.css.
   ============================================ */

/* Hero — shift background so subject faces aren't cropped */
@media (min-width: 768px) {
  .page-hero--photo {
    background-position: center 35%;
  }
}


/* ============================================
   PILLARS — Mission, Vision, Strategy
   ============================================ */

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.about-pillar {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border: 1px solid var(--dark-blue-10);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: background-color 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.about-pillar:hover {
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  box-shadow:
    0 8px 32px rgba(13, 32, 56, 0.25),
    0 0 0 1px rgba(13, 32, 56, 0.3);
}

.about-pillar-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--bright-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  transition: color 0.4s var(--ease-out);
}

.about-pillar:hover .about-pillar-label {
  color: var(--gold);
}

.about-pillar-text {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  transition: color 0.4s var(--ease-out);
}

.about-pillar:hover .about-pillar-text {
  color: var(--white);
}

.about-pillar-ref {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
  font-style: italic;
  transition: color 0.4s var(--ease-out);
}

.about-pillar:hover .about-pillar-ref {
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================
   THREE RHYTHMS — numbered steps
   ============================================ */

.about-rhythms {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 960px;
  margin: 0 auto;
}

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

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

@media (min-width: 768px) {
  .about-rhythm {
    padding: var(--space-6) var(--space-4);
    border-left: 2px solid var(--dark-blue-10);
  }

  .about-rhythm:first-child {
    border-left: none;
    padding-left: 0;
  }
}

.about-rhythm-num {
  display: block;
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-black);
  color: var(--bright-blue);
  opacity: 0.2;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.about-rhythm-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
  margin-bottom: var(--space-3);
}

.about-rhythm-desc {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--gray-blue);
  line-height: 1.7;
}


/* ============================================
   IDENTITY — split layout with photo
   ============================================ */

.about-identity-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .about-identity-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.about-identity-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.about-identity-content .section-headline {
  margin-bottom: var(--space-5);
}

.about-identity-body {
  font-size: var(--text-base);
  font-weight: var(--font-weight-book);
  color: var(--gray-blue);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.about-identity-body:last-child {
  margin-bottom: 0;
}


/* ============================================
   OUR STORY — History Timeline
   ============================================ */

.about-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 32px;
}

/* Vertical line running down the left side */
.about-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 156, 255, 0),
    rgba(0, 156, 255, 0.3) 8%,
    rgba(0, 156, 255, 0.3) 92%,
    rgba(0, 156, 255, 0)
  );
}

/* Scroll-driven glow fill */
.about-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  width: 4px;
  height: var(--fill-height, 0%);
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--bright-blue));
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(216, 170, 25, 0.3);
  z-index: 0;
}

.about-timeline-dot {
  z-index: 1;
}

.about-timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}

.about-timeline-item:last-child {
  padding-bottom: 0;
}

/* --- Marker: year + dot --- */

.about-timeline-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-3);
  margin-left: -32px;
}

.about-timeline-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bright-blue);
  flex-shrink: 0;
  order: -1;
  box-shadow: 0 0 0 4px rgba(0, 156, 255, 0.12);
}

.about-timeline-dot--active {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 170, 25, 0.2), 0 0 12px rgba(216, 170, 25, 0.3);
}

@keyframes dotPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.about-timeline-dot.is-reached {
  box-shadow: 0 0 0 5px rgba(0, 156, 255, 0.2), 0 0 12px rgba(0, 156, 255, 0.4);
  transition: box-shadow 0.5s ease;
  animation: dotPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-timeline-dot--active.is-reached {
  box-shadow: 0 0 0 5px rgba(216, 170, 25, 0.3), 0 0 16px rgba(216, 170, 25, 0.5);
  animation: dotPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-timeline-year {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-black);
  color: var(--bright-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  order: 1;
}

.decade-s {
  font-size: 0.65em;
  letter-spacing: 0;
  margin-left: 0.04em;
  vertical-align: baseline;
}

.about-timeline-item:last-child .about-timeline-year {
  color: var(--gold);
}

/* --- Content --- */

.about-timeline-content {
  padding-left: 4px;
}

.about-timeline-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.about-timeline-desc {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--white-70);
  line-height: 1.75;
}

/* --- History quote --- */

.about-history-quote {
  max-width: 640px;
  margin: var(--space-12) auto 0;
  text-align: center;
}

.about-history-blockquote {
  margin: 0;
  padding: 0;
}

.about-history-blockquote p {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: var(--font-weight-medium);
  color: var(--white);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-4);
}

.about-history-blockquote cite {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* Responsive: larger left offset on desktop */
@media (min-width: 768px) {
  .about-timeline {
    padding-left: 48px;
  }

  .about-timeline::before {
    left: 5px;
  }

  .about-timeline::after {
    left: 4px;
  }

  .about-timeline-marker {
    margin-left: -48px;
    gap: 20px;
  }

  .about-timeline-dot {
    width: 12px;
    height: 12px;
  }

  .about-timeline-year {
    font-size: var(--text-sm);
  }

  .about-timeline-content {
    padding-left: 8px;
  }
}


/* ============================================
   SCRIPTURE VERSE BREAK
   ============================================ */

.about-verse-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-6) 0;
}

.about-verse-text {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  font-weight: var(--font-weight-medium);
  color: var(--white);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: var(--space-5);
}

.about-verse-ref {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--gold);
  letter-spacing: 0.02em;
}


/* ============================================
   BELIEFS — accordion on dark background
   ============================================ */

.about-beliefs {
  max-width: 800px;
  margin: 0 auto;
}

.about-beliefs .accordion-content p {
  padding: 0 0 var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-weight-book);
  color: var(--white-70);
  line-height: 1.7;
}

.about-beliefs .accordion-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.about-beliefs .accordion-trigger {
  color: var(--white);
}

.about-beliefs .accordion-trigger:hover {
  color: var(--gold);
}

.about-beliefs .accordion-icon {
  color: var(--gray-blue);
}

.about-beliefs .accordion-item.is-open .accordion-icon {
  color: var(--gold);
}


/* ============================================
   CLOSING CTA
   ============================================ */

.about-closing {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-closing-headline {
  font-size: clamp(2.5rem, 7vw, var(--text-5xl));
  font-weight: var(--font-weight-black);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.about-closing-sub {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-book);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto var(--space-8);
}

.about-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
