/* Our Story Page Styles */

/* Horizontal Timeline Styles */
.timeline-section {
  padding: -50px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

/* Navigation Controls */
.timeline-nav-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  pointer-events: none;
}

.timeline-nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(188, 61, 62, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(188, 61, 62, 0.3);
}

.timeline-nav-btn:hover {
  background: rgba(188, 61, 62, 0.95);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(188, 61, 62, 0.5);
}

.timeline-nav-btn:active {
  transform: scale(0.95);
}

/* Horizontal Timeline Wrapper */
.horizontal-timeline-wrapper {
  position: relative;
  margin: 60px 0;
  padding: 40px 0;
}

.horizontal-timeline {
  display: flex;
  gap: 80px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 60px 100px;
  cursor: grab;
  position: relative;
  scroll-snap-type: x mandatory;
}

.horizontal-timeline::-webkit-scrollbar {
  height: 8px;
}

.horizontal-timeline::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.horizontal-timeline::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #bc3d3e 0%, #bc3d3e 100%);
  border-radius: 10px;
}

.horizontal-timeline::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #bc3d3e 0%, #bc3d3e 100%);
}

.horizontal-timeline.active {
  cursor: grabbing;
  scroll-snap-type: none;
}

/* Timeline Item */
.h-timeline-item {
  position: relative;
  min-width: 400px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
}

/* Timeline Point (Year Circle) */
.h-timeline-point {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.h-timeline-dot {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #bc3d3e 0%, #bc3d3e 100%);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(188, 61, 62, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.h-timeline-item.active .h-timeline-dot {
  width: 32px;
  height: 32px;
  box-shadow: 0 6px 25px rgba(188, 61, 62, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Connecting Line */
.h-timeline-dot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2000px;
  height: 2px;
  background: rgba(188, 61, 62, 0.2);
  z-index: -1;
}

.h-timeline-item:active .h-timeline-dot::before {
    background: rgba(188, 61, 62, 0.2);
}

/* Timeline Year - Hidden as per request */
.h-timeline-year {
  display: none;
}

/* Timeline Content Card */
.h-timeline-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 450px;
  display: flex;
  flex-direction: column;
}

.h-timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #bc3d3e 0%, #bc3d3e 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.h-timeline-item.active .h-timeline-content::before {
  transform: scaleX(1);
}

.h-timeline-item:hover .h-timeline-content {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.h-timeline-item.active .h-timeline-content {
  background: linear-gradient(135deg, rgba(188, 61, 62, 0.02) 0%, rgba(188, 61, 62, 0.02) 100%);
  box-shadow: 0 15px 50px rgba(188, 61, 62, 0.2);
}

/* Card Year Label */
.card-year {
  display: inline-block;
  background: linear-gradient(135deg, #bc3d3e 0%, #bc3d3e 100%);
  color: white;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(188, 61, 62, 0.3);
  transition: all 0.3s ease;
  align-self: flex-start;
}

.h-timeline-item.active .card-year {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(188, 61, 62, 0.4);
}

.h-timeline-content h3 {
  color: #bc3d3e;
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.h-timeline-item.active .h-timeline-content h3 {
  color: #bc3d3e;
}

.h-timeline-content p {
  color: #666;
  line-height: 1.8;
  margin: 0;
  font-size: 16px;
}

/* Progress Dots */
.timeline-progress-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  background: rgba(188, 61, 62, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.progress-dot:hover {
  background: rgba(188, 61, 62, 0.4);
  transform: scale(1.2);
}

.progress-dot.active {
  background: linear-gradient(135deg, #bc3d3e 0%, #bc3d3e 100%);
  width: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(188, 61, 62, 0.4);
}


/* Founders Section */
.founders-section {
  padding: 100px 0;
  background: white;
}

.founder-card {
  background: #f8f9fa;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

.founder-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.founder-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.founder-card:hover .founder-image img {
  transform: scale(1.1);
}

.founder-info {
  padding: 30px;
}

.founder-info h3 {
  color: #bc3d3e;
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
}

.founder-info h4 {
  color: #bc3d3e;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 400;
}

.founder-info p {
  color: #666;
  line-height: 1.8;
}

/* Baker Quotes Section */
.baker-quotes-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #bc3d3e 0%, #bc3d3e 100%);
  color: white;
}

.quote-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.quote-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.quote-text {
  font-size: 20px;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 25px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quote-author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
}

.quote-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-author-info h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.quote-author-info p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

/* Family Legacy Section */
.family-legacy-section {
  padding: 100px 0;
  background: white;
}

.legacy-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 50px;
}

.legacy-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.legacy-image img {
  width: 100%;
  height: auto;
  display: block;
}

.legacy-text {
  flex: 1;
}

.legacy-text h2 {
  color: #bc3d3e;
  font-size: 42px;
  margin-bottom: 25px;
  font-weight: 700;
}

.legacy-text p {
  color: #666;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.legacy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #bc3d3e;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

/* Hero Section Styles - Inherited from custom.css */

.page-header p::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #fff;
  margin: 20px auto 0;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  /* Horizontal Timeline Mobile Adjustments */
  .h-timeline-item {
    min-width: 320px;
  }

  .h-timeline-content {
    padding: 25px;
    height: 400px;
  }

  .h-timeline-content h3 {
    font-size: 22px;
  }

  .h-timeline-content p {
    font-size: 14px;
  }

  .h-timeline-year {
    font-size: 22px;
    padding: 6px 16px;
  }

  .card-year {
    font-size: 16px;
    padding: 6px 14px;
    margin-bottom: 15px;
  }

  .horizontal-timeline {
    padding: 60px 40px;
    gap: 60px;
  }

  .timeline-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .timeline-nav-controls {
    padding: 0 10px;
  }

  .legacy-content {
    flex-direction: column;
  }

  .legacy-stats {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 42px;
  }

  .page-header p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .h-timeline-item {
    min-width: 280px;
  }

  .h-timeline-content {
    padding: 20px;
    height: 380px;
  }

  .horizontal-timeline {
    padding: 60px 20px;
    gap: 40px;
  }

  .timeline-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 16px;
  }
}

/* Story Narrative Section */
.story-narrative-section {
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.narrative-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.narrative-block:last-child {
    margin-bottom: 0;
}

.narrative-block.reverse {
    flex-direction: row-reverse;
}

.narrative-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.narrative-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.narrative-block:hover .narrative-image img {
    transform: scale(1.1);
}

.narrative-content {
    flex: 1;
}

.narrative-content h3 {
    color: #bc3d3e;
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 600;
}

.narrative-content p {
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.narrative-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .narrative-block, 
    .narrative-block.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .narrative-image {
        width: 100%;
        height: 300px;
    }

    .narrative-content h3 {
        font-size: 28px;
    }
}
