/* ============================================
   Buy Page Styles
   ============================================ */

/* ================================================================
   HERO - SHORT VERSION
   ================================================================ */
.hero--short {
  min-height: 60vh;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

@media (max-width: 768px) {
  .hero--short {
    min-height: 50vh;
  }
}


/* ================================================================
   PROCESS TIMELINE
   ================================================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: var(--bg-section-alt);
  border-radius: 50%;
  z-index: 0;
}

.process-step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: var(--fw-regular);
  color: var(--accent);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.process-step__content {
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.process-step p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  max-width: 220px;
  margin-inline: auto;
}

/* Connection line between steps */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) calc(100% / 5),
    transparent calc(100% / 5),
    transparent calc(200% / 5),
    var(--accent) calc(200% / 5),
    var(--accent) calc(300% / 5),
    transparent calc(300% / 5),
    transparent calc(400% / 5),
    var(--accent) calc(400% / 5),
    var(--accent) 100%
  );
  z-index: 0;
}

@media (max-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(5, 1fr);
  }

  .process-step p {
    font-size: var(--fs-xs);
  }

  .process-step__number {
    font-size: 2.5rem;
  }

  .process-step::before {
    width: 70px;
    height: 70px;
  }

  .process-step__number {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .process-timeline::before {
    display: none;
  }

  .process-step::before {
    width: 60px;
    height: 60px;
  }

  .process-step__number {
    font-size: 2rem;
    height: 60px;
  }

  .process-step p {
    max-width: none;
  }
}


/* ================================================================
   AREA CARDS
   ================================================================ */
.area-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

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

.area-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.area-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.area-card:hover .area-card__image img {
  transform: scale(1.05);
}

.area-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-lg);
}

.area-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.area-card__text {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .area-card {
    flex-direction: row;
  }

  .area-card__image {
    flex: 0 0 150px;
    aspect-ratio: auto;
    height: 150px;
  }

  .area-card__content {
    flex: 1;
    justify-content: center;
  }
}
