/* ═══════════════════════════════════════════════════════════
   24By7Snacks — Our Story Page
   ═══════════════════════════════════════════════════════════ */

.story-page-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 40px 80px;
  background: radial-gradient(ellipse at center, rgba(255,107,43,0.15), transparent 60%),
              var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.story-page-hero::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 400px;
  color: rgba(255,107,43,0.06);
  position: absolute;
  top: -80px;
  left: -20px;
  line-height: 1;
  pointer-events: none;
}

.story-page-tag {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}

.story-page-h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 9vw, 96px);
  color: var(--white);
  line-height: 1;
  margin-bottom: 24px;
  max-width: 900px;
}

.story-page-h1 em {
  -webkit-text-stroke: 2px var(--yellow);
  color: transparent;
  font-style: normal;
}

.story-page-intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  line-height: 1.8;
}


/* ── Why Oatful Section ─────────────────────────────────── */
#why-oatful-section {
  background: var(--white);
  padding: 90px clamp(20px, 5vw, 80px);
  text-align: center;
}

.oatful-heading {
  font-family: var(--font-hand);
  font-size: clamp(36px, 5vw, 54px);
  color: #3b5329;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.oatful-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.oatful-card {
  background: #d4eab0;
  padding: 40px 24px 100px; 
  text-align: left;
  position: relative;
  min-height: 380px;
  box-shadow: 12px 12px 0px #0A0A0A;
  transition: transform 0.3s var(--ease-spring);
  color: #0A0A0A;
  border: none;
}

.oatful-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px dashed #446e31;
  pointer-events: none;
}

.oatful-card:hover {
  transform: translateY(-8px) translateX(-8px);
  box-shadow: 20px 20px 0px #0A0A0A;
}

.oatful-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #16361a;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.5px;
}

.oatful-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #334e24;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  font-weight: 600;
}

.oatful-img-circle {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: #f6e6cd;
  border: 3px solid #0A0A0A;
  z-index: 3;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #274b2f;
  line-height: 1;
}

.img-1 {
  background-image: url('../../images/bold.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #ffe8d6;
  /* Sharpen + slight contrast boost for premium look */
  filter: contrast(1.08) saturate(1.12) drop-shadow(0 6px 14px rgba(0,0,0,0.22));
}
.img-2 {
  background-image: url('../../images/india.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #fff8e1;
  filter: contrast(1.08) saturate(1.12) drop-shadow(0 6px 14px rgba(0,0,0,0.22));
}
.img-3 {
  background-image: url('../../images/popcorn .png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #e8f5e9;
  filter: contrast(1.08) saturate(1.12) drop-shadow(0 6px 14px rgba(0,0,0,0.22));
}
.img-4 {
  background-image: url('../../images/clean.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #fce4ec;
  filter: contrast(1.08) saturate(1.12) drop-shadow(0 6px 14px rgba(0,0,0,0.22));
}

@media (max-width: 768px) {
  .oatful-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Timeline ──────────────────────────────────────────── */
#timeline-section {
  background: var(--bg-primary);
  padding: 90px clamp(20px, 5vw, 80px);
}

.timeline-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  text-align: center;
  margin-bottom: 60px;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), var(--orange), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: calc(50% - 24px);
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: rgba(255,214,0,0.2);
  transform: translateY(-4px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(255,214,0,0.4);
  z-index: 2;
}

.timeline-year {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── What It Stands For ────────────────────────────────── */
#stands-for-section {
  background: var(--cream);
  padding: 100px clamp(20px, 5vw, 80px);
  text-align: center;
}

.stands-for-intro {
  max-width: 800px;
  margin: 0 auto 70px;
}

.stands-for-heading {
  font-family: var(--font-hand);
  font-size: clamp(32px, 4vw, 48px);
  color: #2e663a;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.stands-for-subheading {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a5c4a;
}

.stands-for-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.stands-for-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Infrastructure Impact ───────────────────────────── */
#infra-impact-section {
  background: var(--bg-primary);
  padding: 80px clamp(20px, 5vw, 80px);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

.infra-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.infra-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: var(--border-thick);
  box-shadow: 6px 6px 0px #0A0A0A;
  background: var(--white);
}

.infra-card.text-card {
  text-align: center;
  padding: 30px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.infra-card.img-card {
  height: 280px;
  background: #111;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infra-card.img-card img,
.infra-card.img-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.infra-card .video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
  background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.3) 120%);
  z-index: 2;
}

.infra-col.text-top .text-card {
  order: 1;
}
.infra-col.text-top .img-card {
  order: 2;
}

.infra-col.img-top .text-card {
  order: 2;
}
.infra-col.img-top .img-card {
  order: 1;
}

.infra-icon-wrapper {
  margin-bottom: 16px;
}

.infra-icon {
  width: 40px;
  height: 40px;
  stroke: #0A0A0A;
}

.infra-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #0A0A0A;
  margin-bottom: 12px;
}

.infra-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .infra-grid {
    grid-template-columns: 1fr;
  }
  .infra-col.img-top .text-card, .infra-col.text-top .text-card {
    order: 1;
  }
  .infra-col.img-top .img-card, .infra-col.text-top .img-card {
    order: 2;
  }
}

.stands-for-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: #2e663a;
}

.stands-for-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stands-for-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #1a4f25;
  margin-bottom: 12px;
  line-height: 1.3;
}

.stands-for-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #4a5c4a;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .stands-for-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .stands-for-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* ── Team ──────────────────────────────────────────────── */
#team-section {
  background: var(--bg-primary);
  padding: 90px clamp(20px, 5vw, 80px);
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 48px auto 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: var(--bg-secondary);
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.3s var(--ease-spring);
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(255,214,0,0.2);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.team-role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 24px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; padding-left: 60px; }
  .timeline-dot { left: 0; transform: none; }
  .timeline-content { width: 100%; }
}
