/*
  Gusto Italian: About Page CSS
  Premium editorial narrative styling
*/

/* --- 1. EDITORIAL HERO --- */
.story-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ds-ivory);
}
@media (max-width: 768px) {
  .story-hero {
    height: 20vh;
    min-height: 200px;
  }
}
.story-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(8,38,61,0.5) 0%, rgba(8,38,61,0.2) 100%);
}
.story-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 40px;
}
.story-hero-inner h1 {
  font-family: var(--ds-font-gallins);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.1;
  font-weight: 400;
  margin-top: 16px;
  letter-spacing: -0.02em;
}

/* --- 2. BRAND MANIFESTO --- */
.story-manifesto {
  padding: 160px 40px;
  background-color: var(--ds-ivory);
  text-align: center;
}
.story-manifesto blockquote {
  font-family: var(--ds-font-abruzzo);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.3;
  color: var(--ds-navy);
  max-width: 1000px;
  margin: 0 auto 40px;
  font-style: italic;
}
.story-manifesto p {
  font-family: var(--ds-font-minion);
  font-size: 1.1rem;
  color: var(--ds-navy);
  opacity: 0.8;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- 3. ABOUT US (PHILOSOPHY) --- */
.story-philosophy {
  padding: 120px 40px 160px;
  background-color: var(--ds-ivory);
}
.story-philosophy-header {
  text-align: center;
  margin-bottom: 80px;
}
.story-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.story-phil-card {
  text-align: center;
  cursor: pointer;
  group: about-card;
}
.story-phil-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: 4px;
}
.story-phil-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-phil-card:hover .story-phil-img {
  transform: scale(1.05);
}
.story-phil-title {
  font-family: var(--ds-font-abruzzo);
  font-size: 1.75rem;
  color: var(--ds-navy);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}
.story-phil-card:hover .story-phil-title {
  color: var(--ds-peach);
}
.story-phil-cta {
  align-self: center;
  font-family: var(--ds-font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ds-navy);
  font-weight: 600;
  border-bottom: 1px solid var(--ds-peach);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.story-phil-card:hover .story-phil-cta {
  color: var(--ds-peach);
}
.story-phil-text {
  font-family: var(--ds-font-minion);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ds-navy);
  opacity: 0.8;
}

/* --- 4. HORIZONTAL TIMELINE --- */
.story-timeline-section {
  padding: 160px 0;
  background-color: var(--ds-sage);
  overflow: hidden;
}
.story-timeline-header {
  text-align: center;
  margin-bottom: 80px;
  padding: 0 40px;
}
.story-timeline-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  /* Allow horizontal scrolling on mobile, full width flex on desktop */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.story-timeline-wrapper::-webkit-scrollbar {
  display: none;
}
.story-timeline-container {
  display: flex;
  position: relative;
  min-width: max-content; /* Ensure it expands to fit all items and background lines */
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px; /* Space for shadow/scroll */
}
.story-timeline-line {
  position: absolute;
  top: 15px; /* aligns with node */
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(8,38,61,0.2);
  z-index: 1;
}
.story-timeline-item {
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 2;
  scroll-snap-align: start;
}
.story-timeline-node {
  width: 12px;
  height: 12px;
  background: var(--ds-peach);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ds-sage);
  margin-bottom: 30px;
  position: relative;
  top: 10px; /* half of node */
  left: 0;
}
.story-timeline-content {
  padding-right: 20px;
}
.story-timeline-year {
  font-family: var(--ds-font-neutra);
  font-size: 0.85rem;
  color: var(--ds-peach);
  letter-spacing: 0.1em;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.story-timeline-title {
  font-family: var(--ds-font-abruzzo);
  font-size: 1.5rem;
  color: var(--ds-navy);
  margin-bottom: 12px;
}
.story-timeline-text {
  font-family: var(--ds-font-minion);
  font-size: 0.95rem;
  color: var(--ds-navy);
  opacity: 0.7;
  line-height: 1.6;
}
.story-timeline-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.timeline-nav-btn {
  background: transparent;
  border: 1px solid var(--ds-navy);
  color: var(--ds-navy);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}
.timeline-nav-btn:hover {
  background: var(--ds-navy);
  color: var(--ds-ivory);
}
.timeline-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
  color: var(--ds-navy);
}

/* --- 5. EDITORIAL CLOSING --- */
.story-closing {
  background-color: var(--ds-ivory);
  padding: 0;
}
.story-closing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
.story-closing-content {
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--ds-sand, #FAF9F5);
}
.story-closing-content h2 {
  font-family: var(--ds-font-abruzzo);
  font-size: clamp(3rem, 4vw, 4.5rem);
  color: var(--ds-navy);
  margin-bottom: 24px;
  line-height: 1.1;
}
.story-closing-content p {
  font-family: var(--ds-font-minion);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ds-navy);
  opacity: 0.8;
  max-width: 450px;
}
.story-closing-image {
  background-size: cover;
  background-position: center;
  height: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .story-philosophy-grid { grid-template-columns: 1fr; max-width: 600px; }
  .story-closing-inner { grid-template-columns: 1fr; grid-template-rows: auto 500px; min-height: 0; }
  .story-closing-content { padding: 80px 40px; align-items: center; text-align: center; }
}

@media (max-width: 768px) {
  .story-manifesto { padding: 100px 24px; }
  .story-timeline-wrapper { padding: 0 24px; }
  .story-timeline-container { gap: 20px; min-width: max-content; }
  .story-timeline-item { min-width: 85vw; max-width: 320px; flex-shrink: 0; scroll-snap-align: center; }
  .story-hero { height: 50vh; min-height: 350px; }
}
@media (max-width: 767px) {
  #timeline-prev, #timeline-next {
    display: flex !important;
  }








}

