/* Connect Groups page-specific styles. Shared shell/navigation/sections live in /css/reach/. */

.connect-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.connect-title {
  max-width: 760px;
  margin: 0 0 1.35rem;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.connect-intro {
  max-width: 720px;
  color: var(--theme-text-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.75;
}

.connect-intro p:last-child {
  margin-bottom: 0;
}

.schedule-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--theme-border-soft);
  border-radius: var(--theme-radius-md);
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow-sm);
}

.schedule-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 0.8rem;
  background: var(--theme-surface-muted);
  color: var(--theme-text);
  font-size: 1.2rem;
}

.schedule-card small {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--theme-text-soft);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.connect-hero-frame {
  padding: 0.75rem;
  transform: rotate(1.7deg);
}

.connect-hero-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.groups-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.groups-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.group-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--theme-radius-lg);
}

.group-photo-wrap {
  flex: 0 0 38%;
  width: 38%;
  max-width: 420px;
  background: var(--theme-surface-soft);
  overflow: hidden;
}

.group-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.group-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  padding: 2rem;
}

.group-subtitle {
  margin-bottom: 1rem;
  color: var(--theme-text-muted);
  font-weight: 600;
}

.group-bio {
  color: var(--theme-text-muted);
  line-height: 1.72;
}

.group-bio p:last-child {
  margin-bottom: 0;
}

.group-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.group-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--theme-text);
}

.group-detail i {
  width: 1.25rem;
  margin-top: 0.08rem;
  color: var(--theme-text-soft);
  font-size: 1rem;
}

.group-detail a {
  color: inherit;
  text-decoration: none;
}

.group-detail a:hover {
  text-decoration: underline;
}

.group-detail small {
  display: block;
  color: var(--theme-text-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.empty-groups {
  padding: 4rem 1rem;
  border: 1px dashed var(--theme-border);
  border-radius: 1.2rem;
  color: var(--theme-text-muted);
  text-align: center;
}

.connect-hero-frame.reveal-image {
  transform: translateY(18px) scale(0.97) rotate(1.7deg);
}

.connect-hero-frame.reveal-image.is-visible {
  transform: rotate(1.7deg);
}

@media (max-width: 991.98px) {
  .connect-hero-frame {
    max-width: 520px;
    margin-inline: auto;
  }

  .groups-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-card {
    flex-direction: column;
    min-height: 0;
  }

  .group-photo-wrap {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .group-photo {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .group-body {
    padding: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .connect-title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-hero-frame.reveal-image {
    transform: rotate(1.7deg);
  }
}
