/* ============================================================
   BBN CATERERS — ABOUT STORYTELLING PAGE STYLES
   ============================================================ */

.about-section {
  padding-block: var(--space-16);
  position: relative;
  overflow: hidden;
}

/* SECTION 1: FOUNDATION (1991) */
.about-section--foundation {
  background-color: #F8F5F0; /* requested light beige */
  padding-top: 180px; /* space to clear navigation bar */
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-12);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background-color: var(--color-cream-mid);
}

.about-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-taupe);
  opacity: 0.15;
  pointer-events: none;
  border-radius: var(--radius-sm);
}

.founder-zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Prevents cropping the turban */
  display: block;
  transform: scale(1.0);
  transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.founder-zoom-img.in-view {
  transform: scale(1.08); /* subtle slow zoom */
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-taupe);
}

.about-title {
  font-family: 'Sephir', var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: var(--fw-light);
  line-height: 1.1;
  color: var(--color-dark);
  text-wrap: balance;
}

.about-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.85;
  font-weight: var(--fw-light);
  text-wrap: pretty;
}

/* SECTION 2: THE NEW GENERATION (THE BROTHERS) */
.about-section--brothers {
  background-color: #261f18; /* requested dark brown */
  color: var(--color-white);
}

@media (min-width: 901px) {
  .about-section--brothers .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.about-section--brothers .about-eyebrow {
  color: #d1b088; /* gold */
}

.about-section--brothers .about-title {
  color: var(--color-white);
}

.about-section--brothers .about-text {
  color: rgba(255, 255, 255, 0.7);
}

.brothers-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.highlight-card {
  border-left: 2px solid #d1b088; /* gold vertical line */
  padding-left: var(--space-4);
}

.highlight-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: #d1b088; /* gold */
  margin-bottom: var(--space-1);
}

.highlight-card__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-weight: var(--fw-light);
}

.brothers-visuals {
  position: relative;
  height: 520px;
  width: 100%;
}

.brother-img-card {
  position: absolute;
  width: 58%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(209, 176, 136, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease-out;
  background-color: var(--color-dark-mid);
}

.brother-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Prevents cropping the turbans */
  display: block;
}

.brother-img-card--harjinder {
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  transform: translateY(60px) rotate(-1.5deg);
}

.brother-img-card--inderjeet {
  bottom: 0;
  right: 0;
  z-index: 1;
  opacity: 0;
  transform: translateY(60px) rotate(1.5deg);
}

/* Staggered entry classes */
.brothers-visuals.in-view .brother-img-card--harjinder {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg);
}

.brothers-visuals.in-view .brother-img-card--inderjeet {
  opacity: 1;
  transform: translateY(0) rotate(1.5deg);
  transition-delay: 0.3s;
}

/* SECTION 3: ANIMATED ECOSYSTEM TIMELINE */
.about-section--timeline {
  background-color: #F8F5F0; /* light beige */
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: var(--space-12) auto 0 auto;
  padding-block: var(--space-8);
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(137, 120, 92, 0.15);
  transform: translateX(-50%);
}

.timeline__line-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  background-color: #d1b088; /* gold filling */
  transform: translateX(-50%);
  height: 0%;
  transition: height 0.1s ease-out;
  transform-origin: top;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
  position: relative;
  align-items: center;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Pulse dot */
.timeline__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  background-color: #F8F5F0;
  border: 3px solid rgba(137, 120, 92, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.timeline__dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.4s ease;
}

.timeline__item.is-active .timeline__dot {
  border-color: #d1b088;
  background-color: #d1b088;
}

.timeline__item.is-active .timeline__dot::after {
  border-color: rgba(209, 176, 136, 0.4);
  animation: timeline-pulse 2s infinite;
}

.timeline__content {
  width: 85%;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.timeline__item:nth-child(odd) .timeline__content {
  grid-column: 1;
  justify-self: start;
}

.timeline__item:nth-child(even) .timeline__content {
  grid-column: 2;
  justify-self: end;
}

.timeline__year {
  font-family: 'Sephir', var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-taupe);
  margin-bottom: var(--space-1);
  display: block;
}

.timeline__heading {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.timeline__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-weight: var(--fw-light);
}

/* LOGO INTEGRATION & HOVER CARD */
.timeline__logo-wrap {
  display: inline-block;
  margin-top: var(--space-4);
  position: relative;
  cursor: pointer;
  line-height: 0;
}

.timeline__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease, box-shadow 0.3s ease;
}

/* Brand specific hover behaviors */
.timeline__item--foundation .timeline__logo-wrap:hover .timeline__logo,
.timeline__item--institutional .timeline__logo-wrap:hover .timeline__logo {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(137, 120, 92, 0.35));
}

.timeline__item--doner .timeline__logo-wrap:hover .timeline__logo {
  transform: translateY(-6px);
}

.timeline__item--pindaura .timeline__logo-wrap:hover .timeline__logo {
  transform: scale(1.05);
}

.timeline__item--ozasco .timeline__logo-wrap:hover .timeline__logo {
  filter: brightness(1.1) drop-shadow(0 4px 12px rgba(209, 176, 136, 0.4));
}

/* Hover Card */
.hover-card {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.96);
  width: 220px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
}

.hover-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: var(--color-white) transparent transparent transparent;
}

.hover-card::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px;
  border-style: solid;
  border-color: var(--color-border) transparent transparent transparent;
  z-index: -1;
}

.hover-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
  display: block;
  margin-bottom: var(--space-2);
}

.hover-card__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.timeline__logo-wrap:hover .hover-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1.0);
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .about-section--foundation {
    padding-top: 140px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding-block: var(--space-10);
  }
  
  .about-section.about-section--foundation {
    padding-top: 120px; /* Space to clear the mobile header */
  }

  .brothers-visuals {
    height: auto;
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
  
  .brother-img-card {
    position: static;
    width: 50%;
    aspect-ratio: 4/5;
  }
  
  .brother-img-card--harjinder,
  .brother-img-card--inderjeet {
    transform: none;
    opacity: 1; /* Always visible on mobile, no overlap issues */
  }
  
  /* Timeline Mobile */
  .timeline__line {
    left: 20px;
    transform: none;
  }
  
  .timeline__line-fill {
    left: 20px;
    transform: none;
  }
  
  .timeline__dot {
    left: 20px;
    transform: translate(-50%, -50%);
  }
  
  .timeline__item {
    grid-template-columns: 1fr;
    padding-left: 48px;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
  }
  
  .timeline__content {
    width: 100%;
    justify-self: start !important;
    grid-column: 1 !important;
  }
  
  .hover-card {
    position: fixed;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    width: calc(100% - var(--space-8));
    transform: translateY(15px) scale(0.95);
    transform-origin: bottom center;
  }
  
  .hover-card::after,
  .hover-card::before {
    display: none; /* remove pointer arrow on mobile card sheet */
  }
}

@keyframes timeline-pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
