/* ==========================================================================
   Components — Shared UI components used across multiple pages
   Depends on: tokens.css, base.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero (inner pages — shorter than the home full-viewport hero)
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: var(--charcoal);
  color: var(--champagne);
  padding-block: var(--space-3xl) var(--space-2xl);
  text-align: center;
}

.page-hero__eyebrow {
  color: var(--gold-accent);
  display: block;
  margin-bottom: var(--space-md);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--champagne);
  margin-bottom: var(--space-md);
}

.page-hero__subtitle {
  font-size: var(--text-md);
  color: rgba(247, 231, 206, 0.75);
  max-width: 52ch;
  margin-inline: auto;
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   Service card
   Used on both the Home featured-services strip and the full Services page.
   -------------------------------------------------------------------------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  /* Staggered reveal: each card sets --i inline; delay resets once revealed */
  transition-delay: calc(var(--i, 0) * 80ms);
}

.service-card.revealed {
  transition-delay: 0ms; /* Reset so hover transitions fire immediately */
}

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

/* Image / placeholder area */
.service-card__image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--champagne) 100%);
  overflow: hidden;
  position: relative;
}

.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card__img.loaded {
  opacity: 1;
}

/* Card body */
.service-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--charcoal);
  line-height: var(--leading-snug);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--charcoal-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
  max-width: 100%;
}

.service-card__price {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--rose-gold);
  text-align: right;
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Services grid (responsive)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
