/**
 * Hearts to Homes — Team Page v2 enhancements
 * Editorial intro, photography moments, Best For, micro-interactions.
 * Extends team.html; does not replace base layout tokens.
 */

/* ── Editorial team introduction ───────────────────────────────────── */
.team-editorial-intro {
  padding: 88px 0 48px;
  background: var(--charcoal, #fdf8f5);
  text-align: center;
}

.team-editorial-inner {
  max-width: 760px;
  margin: 0 auto;
}

.team-editorial-intro .section-kicker {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose, #C4788A);
  margin-bottom: 14px;
}

.team-editorial-intro .section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  color: #2A2522;
  line-height: 1.18;
  margin-bottom: 16px;
}

.team-editorial-intro .section-title em {
  font-style: italic;
  color: var(--rose, #C4788A);
}

.team-editorial-intro .section-divider {
  height: 1px;
  width: 60px;
  margin: 0 auto 32px;
  background: linear-gradient(90deg, var(--rose-dark, #9e5a6a), var(--rose, #C4788A), var(--gold-light, #dfc070));
}

.team-editorial-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 2.2vw, 24px);
  font-style: italic;
  color: var(--rose-dark, #9e5a6a);
  line-height: 1.62;
  margin-bottom: 28px;
}

.team-editorial-prose {
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
}

.team-editorial-prose p {
  font-size: 16px;
  color: #4a3038;
  line-height: 1.92;
  margin-bottom: 20px;
}

.team-editorial-prose p:last-child {
  margin-bottom: 0;
}

/* ── Full-width editorial photography moments ─────────────────────── */
.team-editorial-moment {
  padding: 0 32px 56px;
  background: var(--charcoal, #fdf8f5);
}

.team-editorial-figure {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(122, 42, 58, 0.12);
}

.team-editorial-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-editorial-figure:hover img {
  transform: scale(1.02);
}

.team-editorial-figure figcaption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: #7a5560;
  text-align: center;
  padding: 18px 24px 0;
  letter-spacing: 0.3px;
}

.team-editorial-moment--inset {
  padding: 56px 32px;
  background: var(--dark, #fffafc);
}

.team-editorial-moment--inset .team-editorial-figure {
  max-width: 960px;
}

.team-editorial-moment--inset .team-editorial-figure img {
  max-height: 440px;
  object-position: center center;
}

/* ── Section rhythm ornaments ───────────────────────────────────────── */
.team-section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 320px;
  margin: 0 auto;
  padding: 12px 32px 36px;
}

.team-section-ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rose-light, #dba0af) 30%, var(--rose-light, #dba0af) 70%, transparent 100%);
}

.team-section-ornament-diamond {
  width: 9px;
  height: 9px;
  background: var(--gold, #C9A84C);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Best For ─────────────────────────────────────────────────────── */
.member-best-for {
  margin: 8px 0 32px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(196, 120, 138, 0.18);
}

.member-best-for-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose, #C4788A);
  margin-bottom: 10px;
}

.member-best-for-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: #4a3038;
  line-height: 1.65;
  max-width: 52ch;
}

/* ── Profile micro-interactions ───────────────────────────────────── */
.member-section {
  padding: 96px 0;
}

.member-photo-frame {
  overflow: hidden;
  position: relative;
}

.member-photo-frame .member-photo {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.member-photo-col:hover .member-photo-frame .member-photo {
  transform: scale(1.03);
}

.member-photo-col {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.member-inner:hover .member-photo-col {
  transform: translateY(-2px);
}

.member-social-btn {
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.member-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 120, 138, 0.12);
}

.member-social-btn:focus-visible {
  outline: 2px solid var(--rose, #C4788A);
  outline-offset: 3px;
}

.member-phone:focus-visible {
  outline: 2px solid var(--rose, #C4788A);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Couple section polish ────────────────────────────────────────── */
.couple-section {
  padding: 96px 0;
}

.couple-image-wrap {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(122, 42, 58, 0.1);
}

.couple-image-wrap .couple-image {
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.couple-image-wrap:hover .couple-image {
  transform: scale(1.02);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .team-editorial-moment,
  .team-editorial-moment--inset {
    padding-left: 20px;
    padding-right: 20px;
  }

  .team-editorial-figure img {
    max-height: 360px;
  }

  .member-section {
    padding: 72px 0;
  }

  .member-inner:hover .member-photo-col {
    transform: none;
  }
}

@media (max-width: 600px) {
  .team-editorial-intro {
    padding: 64px 0 36px;
  }

  .team-editorial-prose {
    text-align: left;
  }

  .member-best-for-text {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-editorial-figure img,
  .member-photo-frame .member-photo,
  .couple-image-wrap .couple-image,
  .member-photo-col,
  .member-social-btn {
    transition: none;
  }

  .member-inner:hover .member-photo-col,
  .team-editorial-figure:hover img,
  .couple-image-wrap:hover .couple-image,
  .member-photo-col:hover .member-photo-frame .member-photo {
    transform: none;
  }
}
