/* Build stages: photo-led sequence with a raised chevron section edge. */
.stages {
  --peak: clamp(28px, 5vw, 64px);
  position: relative;
  z-index: 2;
  background: var(--surface);
  clip-path: polygon(0 var(--peak), 50% 0, 100% var(--peak), 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--peak));
  padding: calc(var(--peak) + 60px) 0 110px;
}

.stages .container {
  width: min(1160px, 100% - var(--gutter) * 2);
}

.stages .section-kicker {
  color: var(--accent-light);
}

.stages .section-title-xl {
  margin-bottom: 40px;
}

.stages .stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stages .stage {
  min-width: 0;
  margin: 0;
}

.stages .stage-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: var(--tile);
}

.stages .stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transition: transform .6s ease;
}

/* Build cards: place, name, fact chips, one line and a link to the town's page. */
.stages .stage {
  display: flex;
  flex-direction: column;
}

.stages .stage-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 4px 0;
}

.stages .stage-name {
  margin: 2px 0 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.stages .stage-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.stages .stage-facts li {
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 20px;
  color: #d8dee3;
  font-size: 12px;
  line-height: 1.5;
}

.stages .stage-body p {
  margin: 0 0 16px;
  color: #c4cdd4;
  font-size: 14.5px;
  line-height: 1.6;
}

.stages .stage-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stages .stage-link svg {
  width: 15px;
  height: 15px;
  transition: transform .2s ease;
}

.stages .stage-link:hover {
  color: var(--white);
}

.stages .stage-link:hover svg {
  transform: translateX(3px);
}

.stages figcaption {
  padding: 12px 4px 0;
  color: #c4cdd4;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.stages .stage-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.stages .stages-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.stages .stages-btn.is-solid {
  border-color: var(--accent);
  background: var(--accent);
}

.stages .stages-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 18px 32px;
  border: 2px solid var(--accent);
  border-radius: 35px;
  background: rgba(236, 104, 16, .1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .6px;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

/* Deep red keeps the white label readable, matching the site's other red buttons. */
.stages .stages-btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.stages .stages-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 5px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .stages .stage-media:hover img {
    transform: scale(1.04);
  }
}

@media (max-width: 899px) {
  .stages .stage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .stages {
    padding: calc(var(--peak) + 40px) 0 72px;
  }

  .stages figcaption {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stages .stage-media img,
  .stages .stage-link svg,
  .stages .stages-btn {
    transition: none;
  }
}
