/* ============================================
   HISTÓRIA / Tour interativo
   ============================================ */

.story-hero {
  position: relative;
  min-height: 70vh;
  color: var(--paper);
  overflow: hidden;
  display: grid;
  align-items: end;
}

.story-hero .bg {
  position: absolute;
  inset: 0;
}

.story-hero .bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,30,0.4), rgba(14,42,30,0.85));
}

.story-hero .container {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 12vw, 140px) clamp(40px, 6vw, 80px);
  max-width: 920px;
}

.story-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--paper);
}

.story-hero h1 em {
  font-style: italic;
  color: var(--banana);
  font-weight: 400;
}

.story-hero p {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: rgba(255, 247, 232, 0.88);
  line-height: 1.4;
  max-width: 32ch;
}

/* Tour interativo */
.tour-section {
  background: var(--paper);
  padding-block: clamp(64px, 9vw, 112px);
}

.tour-stages {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin-bottom: 32px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.tour-stage-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 20px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  min-width: 180px;
  transition: all 220ms ease;
}

.tour-stage-btn .stage-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--copper);
  font-size: 0.92rem;
}

.tour-stage-btn .stage-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.tour-stage-btn.on {
  background: var(--leaf);
  border-color: var(--leaf);
}

.tour-stage-btn.on .stage-num,
.tour-stage-btn.on .stage-title {
  color: var(--banana);
}

.tour-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 480px;
}

.tour-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 500ms ease, transform 500ms ease;
}

.tour-image .stage-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 14px;
  background: var(--banana);
  color: var(--leaf-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  border-radius: var(--r-md);
}

.tour-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tour-content .step-eyebrow {
  color: var(--copper);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tour-content h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.tour-content p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.tour-content .step-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--milk);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.tour-content .step-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--copper);
}

.tour-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.tour-progress {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tour-progress span {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background 300ms ease;
}

.tour-progress span.done { background: var(--copper); }
.tour-progress span.on { background: var(--leaf); }

.tour-arrow {
  width: 48px; height: 48px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
}

.tour-arrow:disabled { opacity: 0.4; cursor: not-allowed; }

.tour-arrow svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--ink);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Timeline */
.timeline-section {
  background: var(--leaf);
  color: var(--paper);
  padding-block: clamp(64px, 9vw, 112px);
}

.timeline-section h2 { color: var(--paper); }
.timeline-section .section-head .lead { color: rgba(255, 247, 232, 0.78); }

.timeline {
  position: relative;
  display: grid;
  gap: 32px;
  padding-left: 32px;
  border-left: 2px dashed rgba(242, 201, 76, 0.4);
}

.timeline-item {
  position: relative;
  padding: 24px 28px;
  background: rgba(255, 247, 232, 0.06);
  border: 1px solid rgba(255, 247, 232, 0.12);
  border-radius: var(--r-md);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 30px;
  width: 14px; height: 14px;
  background: var(--banana);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--leaf);
}

.timeline-item .year {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--banana);
  font-size: 1.6rem;
}

.timeline-item h3 {
  margin-top: 4px;
  color: var(--paper);
  font-size: 1.3rem;
}

.timeline-item p {
  margin-top: 8px;
  color: rgba(255, 247, 232, 0.78);
  line-height: 1.6;
}

/* Values */
.values-section { background: var(--paper); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card .vc-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--copper);
  font-size: 2.2rem;
  line-height: 1;
}

.value-card h3 {
  font-size: 1.3rem;
}

.value-card p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .tour-display { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
