/* ------------------- */
/* Our Story Section   */
/* ------------------- */

.our-story-section {
  padding: 6rem 2rem;
  background-color: #fef5ec;
  background-image: url('../../assets/images/shoprepeat-1.png');
  background-repeat: repeat;
  background-size: 180px;
  background-position: center;
  position: relative;
}

.our-story-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(188, 110, 25, 0.03) 0%, rgba(255, 249, 245, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

.our-story-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.our-story-header {
  text-align: center;
  margin-bottom: 3rem;
}

.our-story-subtitle {
  font-family: var(--ff-sans-cond);
  font-size: var(--fs-300);
  color: hsl(var(--clr-accent));
  letter-spacing: 4.75px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  overflow: hidden;
}

.our-story-title {
  font-family: var(--ff-serif);
  font-size: var(--fs-800);
  color: hsl(var(--clr-medium-dark));
  margin-bottom: 1rem;
  overflow: hidden;
}

.our-story-tagline {
  font-family: var(--ff-sans-normal);
  font-size: var(--fs-400);
  color: hsl(var(--clr-medium-dark) / 0.7);
  font-style: italic;
}

.our-story-image-wrapper {
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.our-story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.our-story-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.our-story-stats {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.stat-item {
  padding: 0;
  border-left: 3px solid hsl(var(--clr-accent));
  padding-left: 1.5rem;
}

.stat-label {
  font-family: var(--ff-sans-cond);
  font-size: 0.75rem;
  color: hsl(var(--clr-accent));
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
  overflow: hidden;
  font-weight: 600;
}

.stat-value {
  font-family: var(--ff-sans-normal);
  font-size: 1.75rem;
  color: hsl(var(--clr-medium-dark));
  line-height: 1.2;
  overflow: hidden;
  font-weight: 700;
}

.our-story-mission {
  padding: 2rem;
  background-color: hsl(var(--clr-cream));
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mission-label {
  font-family: var(--ff-sans-cond);
  font-size: 0.75rem;
  color: hsl(var(--clr-accent));
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  overflow: hidden;
  font-weight: 600;
}

.mission-text {
  font-family: var(--ff-sans-normal);
  font-size: var(--fs-400);
  color: hsl(var(--clr-medium-dark));
  line-height: 1.8;
  overflow: hidden;
}

/* Animation keyframes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Initial states - elements start hidden */
.our-story-subtitle,
.our-story-tagline,
.stat-label,
.stat-value,
.mission-label,
.mission-text {
  opacity: 0;
  transform: translateY(50px);
}

/* Animated state - when this class is added, element animates in */
.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.17, 0.17, 0.34, 1) forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Stagger delays for sequential animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Tablet and larger */
@media (min-width: 768px) {
  .our-story-section {
    padding: 8rem 3rem;
  }
  
  .our-story-image-wrapper {
    height: 500px;
  }
  
  .our-story-title {
    font-size: var(--fs-900);
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

/* Desktop - Side by side layout */
@media (min-width: 1024px) {
  .our-story-container {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 5rem;
  }
  
  .our-story-header {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
  }
  
  .our-story-image-wrapper {
    grid-column: 1;
    grid-row: 2;
    height: 600px;
    align-self: center;
  }
  
  .our-story-content {
    grid-column: 2;
    grid-row: 2;
    justify-content: center;
  }
}
