/* ==========================================
   About Page Styles - La Mora Pizza
   ========================================== */

/* Hero Section */
.about-hero {
  position: relative;
  background: url("/img/about-hero.jpg") center center/cover no-repeat;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  font-style: italic;
}

.about-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.about-hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.about-hero-content p {
  font-size: 1.2rem;
  color: #eee;
}

/* Story Section */
.our-story {
  padding: 4rem 1rem;
  text-align: center;
  background-color: var(--color-bg);
}

.our-story .container {
  max-width: 900px;
  margin: 0 auto;
}

.our-story h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.our-story p {
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Team Section */
.team {
  padding: 4rem 1rem;
  background: #fff;
}

.team .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.team h2 {
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.team-member h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.team-member .role {
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: 0.6rem;
}

.team-member p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero {
    height: 50vh;
  }

  .about-hero-content h1 {
    font-size: 2rem;
  }

  .team-member img {
    height: 250px;
  }
}


/* ==========================================
   La Mora Pizza - About Page / Timeline Style
   ========================================== */

.about-page {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  background-color: var(--color-bg);
  color: var(--color-text);
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.our-journey {
  position: relative;
  padding: 3rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: #444;
  font-size: 1.1rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: var(--color-primary);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 1.5rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
}

.timeline-content {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.year {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: bold;
  font-style: normal;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #333;
  line-height: 1.6;
}

/* Timeline Dots */
.timeline-item::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: -7px;
  width: 14px;
  height: 14px;
  background-color: var(--color-accent);
  border-radius: 50%;
  z-index: 3;
}

.timeline-item.right::after {
  left: -7px;
  right: auto;
}

/* Timeline Icons */
.timeline-icon {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 1rem;
  right: -25px;
  z-index: 3;
  transition: transform 0.3s ease;
}

.timeline-item.right .timeline-icon {
  left: -25px;
  right: auto;
}

.timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-icon:hover {
  transform: scale(1.2) rotate(15deg);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-line { left: 30px; }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    text-align: left !important;
  }
  .timeline-item.right { left: 0; }
  .timeline-item::after { left: 25px; right: auto; }
  .timeline-icon {
    left: 0 !important;
    right: auto;
    width: 40px;
    height: 40px;
    top: 0.5rem;
  }
}
