/**
 * EHI Team widget — modern luxury team carousel.
 */

.ehi-team {
  --ehi-team-accent: #c41e2a;
  --ehi-team-accent-soft: rgba(196, 30, 42, 0.18);
  position: relative;
  width: 100%;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px);
  background: #0d0d0d;
  color: #ffffff;
  overflow: hidden;
}

.ehi-team::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(196, 30, 42, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 100%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.ehi-team-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.ehi-team-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.ehi-team-eyebrow {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ehi-team-accent);
  margin-bottom: 18px;
}

.ehi-team-title {
  position: relative;
  display: inline-block;
  margin: 0 0 22px;
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.ehi-team-title-accent {
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--ehi-team-accent);
  border-radius: 2px;
}

.ehi-team-subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Nav arrows ---------- */

.ehi-team-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.ehi-team-arrow {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  border-radius: 4px;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.ehi-team-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ehi-team-arrow:hover {
  background: var(--ehi-team-accent);
  border-color: var(--ehi-team-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.ehi-team-arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Swiper / static layout ---------- */

.ehi-team-swiper {
  overflow: visible;
  padding-bottom: 8px;
}

.ehi-team-swiper .swiper-wrapper {
  align-items: stretch;
}

.ehi-team-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.ehi-team-static {
  display: flex;
  justify-content: center;
}

.ehi-team-static .ehi-team-card {
  max-width: 420px;
  width: 100%;
}

/* ---------- Card ---------- */

.ehi-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.ehi-team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(196, 30, 42, 0) 70%,
    rgba(196, 30, 42, 0.18) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.ehi-team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 30, 42, 0.45);
  box-shadow:
    0 24px 48px -24px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(196, 30, 42, 0.25);
}

.ehi-team-card:hover::before {
  opacity: 1;
}

/* ---------- Media ---------- */

.ehi-team-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0d0d0d;
}

.ehi-team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.5s ease;
  filter: saturate(0.95) contrast(1.02);
}

.ehi-team-card:hover .ehi-team-media img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}

.ehi-team-media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.ehi-team-media-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: var(--ehi-team-accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0;
  transform: translate(20%, -20%);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.ehi-team-card:hover .ehi-team-media-corner {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- Body ---------- */

.ehi-team-body {
  position: relative;
  padding: 26px 24px 28px;
  z-index: 2;
}

.ehi-team-bar {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--ehi-team-accent);
  margin-bottom: 14px;
  transition: width 0.4s ease;
}

.ehi-team-card:hover .ehi-team-bar {
  width: 56px;
}

.ehi-team-name {
  margin: 0 0 6px;
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
}

.ehi-team-role {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.ehi-team-bio {
  margin: 14px 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Pagination ---------- */

.ehi-team-pagination {
  position: relative;
  margin-top: 36px;
  text-align: center;
}

.ehi-team-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
  margin: 0 6px !important;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.ehi-team-pagination .swiper-pagination-bullet-active {
  background: var(--ehi-team-accent);
  transform: scale(1.2);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .ehi-team-body {
    padding: 22px 20px 24px;
  }
}

@media (max-width: 640px) {
  .ehi-team {
    padding: 56px 16px;
  }

  .ehi-team-arrow {
    width: 42px;
    height: 42px;
  }

  .ehi-team-media {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ehi-team-card,
  .ehi-team-card:hover,
  .ehi-team-media img,
  .ehi-team-bar,
  .ehi-team-arrow {
    transition: none !important;
    transform: none !important;
  }
}
