/* ==========================================================================
   About page styles
   Depends on: tokens.css, base.css, layout.css, components.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Story section — two-column text + image
   -------------------------------------------------------------------------- */
.story-section {
  background-color: var(--ivory);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* On mobile: image on top, text below */
.story-grid__image { order: -1; }
.story-grid__text  { order:  1; }

@media (min-width: 960px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
  .story-grid__image { order: 1; }
  .story-grid__text  { order: 0; }
}

.story-eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}

.story-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.story-body {
  font-size: var(--text-base);
  color: var(--charcoal-muted);
  line-height: var(--leading-relaxed);
  max-width: 60ch;
}

/* Decorative image placeholder */
.story-image-placeholder {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 480px;
  margin-inline: auto;
}

.story-image-placeholder__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    var(--champagne)       0%,
    var(--soft-pink)      45%,
    var(--rose-gold-light) 100%
  );
}

/* Decorative accent shape */
.story-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: -25%;
  width: 65%;
  height: 65%;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(183, 110, 121, 0.30) 0%, transparent 70%);
  pointer-events: none;
}

/* Accent border frame */
.story-image-placeholder::before {
  content: '';
  position: absolute;
  inset: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: var(--radius-md);
  z-index: 1;
  pointer-events: none;
}

/* Ornament text in the placeholder */
.story-image-placeholder__label {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  z-index: 2;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: var(--tracking-tight);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Team section
   -------------------------------------------------------------------------- */
.team-section {
  background-color: var(--soft-pink);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

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

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

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--champagne), var(--rose-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  flex-shrink: 0;
  overflow: hidden;
}

.team-card:hover .team-card__avatar {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.team-card__initials {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--charcoal);
  pointer-events: none;
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.team-card__avatar img.loaded {
  opacity: 1;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--rose-gold);
  font-style: italic;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Gallery section
   -------------------------------------------------------------------------- */
.gallery-section {
  background-color: var(--ivory);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--champagne) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: zoom-in;
}

/* Alternate aspect ratios for visual rhythm */
.gallery-item:nth-child(4n+1) { aspect-ratio: 3 / 4; }
.gallery-item:nth-child(4n+2) { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(4n+3) { aspect-ratio: 4 / 3; }
.gallery-item:nth-child(4n+4) { aspect-ratio: 1 / 1; }

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item img.loaded {
  opacity: 1;
}

/* Empty state */
.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--charcoal-muted);
  border: 1.5px dashed var(--champagne-dark);
  border-radius: var(--radius-lg);
}

.gallery-empty__icon {
  font-size: var(--text-3xl);
  opacity: 0.35;
}

.gallery-empty__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--charcoal-muted);
}

.gallery-empty__sub {
  font-size: var(--text-sm);
  max-width: 38ch;
}

/* About story image (Phase 5) */
.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md, 8px);
  display: block;
}
