/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* ============================================
   PAGE HERO BANNER
   ============================================ */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 6rem 0;
  overflow: hidden;
  background-image: url('Images/Gallery/Crossworld-foundation-Candle-lighting-at-Nyayo-Gardens.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 60, 0.85) 0%,
    rgba(20, 22, 75, 0.78) 50%,
    rgba(45, 49, 146, 0.85) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 1.6rem;
  color: var(--white);
}

.page-hero-badge i {
  color: #f4c430;
  font-size: 0.9rem;
}

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.page-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   SECTION LABEL (reusable)
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: #f4c430;
  border-radius: 2px;
}

.section-label--center {
  display: block;
  text-align: center;
}

.section-label--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   INTRO — IMAGE COLLAGE + TEXT
   ============================================ */
.about-intro {
  padding: 6rem 0;
  background: var(--white);
}

.about-intro-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4.5rem;
  align-items: center;
}

/* Left: image collage */
.about-intro-visual {
  position: relative;
  min-height: 520px;
}

.intro-img {
  position: absolute;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 50px -18px rgba(45, 49, 146, 0.28);
}

.intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}

.intro-img:hover img {
  transform: scale(1.05);
}

.intro-img--large {
  top: 0;
  left: 0;
  width: 78%;
  height: 78%;
}

.intro-img--small {
  bottom: 0;
  right: 0;
  width: 58%;
  height: 55%;
  border: 6px solid var(--white);
  box-shadow: 0 30px 60px -20px rgba(45, 49, 146, 0.35);
}

/* Floating badge */
.intro-badge {
  position: absolute;
  top: 62%;
  left: 6%;
  background: var(--primary);
  color: var(--white);
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  box-shadow: 0 20px 40px -12px rgba(45, 49, 146, 0.55);
  z-index: 3;
}

.intro-badge-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: #f4c430;
  letter-spacing: -1px;
}

.intro-badge-label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

/* Right: content */
.about-intro-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin-bottom: 1.4rem;
}

.about-intro-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 1rem;
}

/* Two-column mini feature list */
.intro-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
  margin: 1.6rem 0 2rem;
}

.intro-feature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.intro-feature i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef0fb;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ============================================
   DARK STATS STRIP
   ============================================ */
.about-stats {
  background: #1e2168;
  padding: 4rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.about-stats::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 79, 184, 0.45), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0 0.5rem;
}

.about-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -1rem;
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.14);
}

.about-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(244, 196, 48, 0.12);
  color: #f4c430;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.about-stat-number {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.about-stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.1px;
  max-width: 200px;
}

/* ============================================
   VISION + MISSION
   ============================================ */
.about-vm {
  padding: 6rem 0;
  background: var(--white);
}

.about-vm-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-vm-visual {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 50px -18px rgba(45, 49, 146, 0.28);
  aspect-ratio: 4 / 5;
}

.about-vm-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}

.about-vm-visual:hover img {
  transform: scale(1.04);
}

.about-vm-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin-bottom: 2rem;
}

.vm-block {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.vm-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef0fb;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.vm-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
  letter-spacing: -0.2px;
}

.vm-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray);
}

/* ============================================
   OUR VALUES
   ============================================ */
.about-values {
  padding: 6rem 0;
  background: #f8f9fc;
}

.about-values-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.about-values-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-values-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.07);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 6px 24px -10px rgba(45, 49, 146, 0.12);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  opacity: 0;
  transform: translateY(35px);
}

.value-card.revealed {
  animation: cardReveal 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.05) forwards;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -18px rgba(45, 49, 146, 0.25);
  border-color: rgba(45, 49, 146, 0.15);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  transition: transform 0.4s ease;
}

.value-card:hover .value-icon {
  transform: rotate(-8deg) scale(1.06);
}

.value-icon--mint     { background: #e6f3ee; color: #1f8b6a; }
.value-icon--peach    { background: #fbe9de; color: #c96a2e; }
.value-icon--lavender { background: #ece9fb; color: #4a3fb8; }
.value-icon--cream    { background: #fdf3d8; color: #b8891a; }
.value-icon--sky      { background: #e3eefb; color: #1f6dc9; }
.value-icon--rose     { background: #fce4ec; color: #b8396b; }

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.value-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray);
}

/* ============================================
   WHY CROSSWORLD FOUNDATION
   ============================================ */
.about-why {
  padding: 6rem 0;
  background: var(--white);
}

.about-why-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.about-why-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--dark);
  margin-bottom: 1rem;
}

.about-why-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(45, 49, 146, 0.08);
  border-radius: 20px;
  padding: 2rem 1.7rem 1.8rem;
  box-shadow: 0 6px 24px -12px rgba(45, 49, 146, 0.12);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(35px);
}

.why-card.revealed {
  animation: cardReveal 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.05) forwards;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f4c430, var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -18px rgba(45, 49, 146, 0.28);
  border-color: rgba(45, 49, 146, 0.18);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-number {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  background: #eef0fb;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
  transition: color 0.3s ease;
}

.why-card:hover h3 {
  color: var(--primary);
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray);
}

/* Full-width 7th card */
.why-card--wide {
  grid-column: span 3;
}

/* Reuse the cardReveal keyframe from style.css — no need to redeclare */

/* ============================================
   ABOUT PAGE — RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .about-intro-wrapper,
  .about-vm-wrapper {
    gap: 3.5rem;
  }

  .about-intro-visual {
    min-height: 460px;
  }

  .values-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .page-hero {
    min-height: 45vh;
    padding: 5rem 0;
  }

  .about-intro,
  .about-vm,
  .about-values,
  .about-why {
    padding: 5rem 0;
  }

  .about-intro-wrapper,
  .about-vm-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-intro-visual {
    min-height: 400px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .about-vm-visual {
    max-width: 460px;
    margin: 0 auto;
    aspect-ratio: 4 / 3.5;
  }

  .about-stats {
    padding: 3rem 0;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .about-stat:not(:last-child)::after {
    display: none;
  }

  .intro-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-hero {
    min-height: 40vh;
    padding: 4rem 0;
  }

  .page-hero-title {
    font-size: 1.9rem;
    letter-spacing: -0.6px;
  }

  .page-hero-subtitle {
    font-size: 0.95rem;
  }

  .about-intro,
  .about-vm,
  .about-values,
  .about-why {
    padding: 4rem 0;
  }

  .about-intro-visual {
    min-height: 340px;
  }

  .intro-img--small {
    border-width: 4px;
  }

  .intro-badge {
    top: 58%;
    left: 3%;
    padding: 1rem 1.1rem;
  }

  .intro-badge-number {
    font-size: 1.8rem;
  }

  .values-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .why-card--wide {
    grid-column: span 1;
  }

  .value-card,
  .why-card {
    padding: 1.5rem 1.4rem;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stat-number {
    font-size: 2rem;
  }

  .vm-block {
    gap: 1rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .value-card,
  .why-card,
  .intro-img img,
  .about-vm-visual img {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .value-card:hover,
  .why-card:hover {
    transform: none;
  }
}