/* =============================================================================
   Homepage
   -----------------------------------------------------------------------------
   .hero                  — full-width section with blue-to-white gradient
     .hero__content       — left-side text + CTA column
     .hero__headline      — display text (48px semi-bold)
     .hero__headline--accent — "oocyte retrieval." in primary blue
   ============================================================================= */

/* --- Fade-in on load ---------------------------------------------------------
   Subtle fade + slight rise, staggered across the hero text, hero image, and
   the two homepage cards. Respects prefers-reduced-motion.
   ----------------------------------------------------------------------------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content,
.hero__image,
.page-card {
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}

.hero__content {
  animation-delay: 0.1s;
}

.hero__image {
  animation-delay: 0.25s;
}

.cards-grid .page-card:nth-child(1) {
  animation-delay: 0.35s;
}

.cards-grid .page-card:nth-child(2) {
  animation-delay: 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__image,
  .page-card {
    animation: none;
    opacity: 1;
  }
}

/* --- Hero section ----------------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  padding: 25vh var(--spacing-page-margins) 2vh;
  min-height: 480px;
  /* Blue at top (matching header), fades to white ~⅓ down — matching Figma gradient */
  background: linear-gradient(
    to bottom,
    var(--colour-primary-20) 0%,
    var(--colour-primary-20) 29%,
    var(--colour-neutral-0) 100%
  );
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xxxl);
  max-width: 552px;
}

.hero__headline {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-line-height);
  letter-spacing: var(--type-display-tracking);
  color: var(--text-default);
  /* Match Figma text-box-trim: trim-both / text-box-edge: cap alphabetic */
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  text-box: trim-both cap alphabetic;
  z-index:10;
}

.hero__headline--accent {
  color: var(--colour-primary-70);
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 90%;
  object-fit: cover;
  object-position: center;
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-xxxl) var(--spacing-l);
    min-height: auto;
  }

  .hero__headline {
    font-size: 32px;
    line-height: var(--type-h1-line-height);
  }

  .hero__image {
    width: 100%;
    height: 50%;
    position: relative;
    top: auto;
    right: auto;
  }
}