/* ==========================================================================
   Our Team — Alliance Jiu Jitsu Northwest Arkansas
   ========================================================================== */

.team {
  --team-bg: #111111;
  --team-text: #ffffff;
  --team-muted: rgba(255, 255, 255, 0.82);
  --team-gold: #ffc033;
  --team-font: "Montserrat", sans-serif;
  --team-pad-x: clamp(1.25rem, 5vw, 4rem);
  --team-pad-y: clamp(3.5rem, 8vw, 6rem);

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  padding: var(--team-pad-y) var(--team-pad-x);
  background-color: var(--team-bg);
  color: var(--team-text);
  font-family: var(--team-font);
}

.team__content {
  display: flex;
  flex: 1 1 18rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  max-width: 34rem;
  text-align: left;
}

.team__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.team__eyebrow {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--team-text);
}

.team__heading {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--team-gold);
}

.team__copy {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--team-muted);
}

.team__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--team-text);
  background: transparent;
  color: var(--team-text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.team__cta:hover,
.team__cta:focus-visible {
  background-color: var(--team-text);
  color: var(--team-bg);
}

.team__cta:focus-visible {
  outline: 2px solid var(--team-gold);
  outline-offset: 4px;
}

.team__media {
  flex: 1 1 18rem;
  max-width: 34rem;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #1a1a1a;
}

.team__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 800px) {
  .team {
    flex-direction: column;
    align-items: stretch;
  }

  .team__content {
    max-width: none;
    align-items: center;
    text-align: center;
  }

  .team__intro {
    align-items: center;
  }

  .team__media {
    max-width: none;
    width: 100%;
  }

  .team__cta {
    width: 100%;
    max-width: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team__cta {
    transition: none;
  }
}
