@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --bg: #f7f5f1;
  --text: #332f2b;
  --muted: #6f6860;
  --accent: #c88723;
  --border: #ded8cf;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

.team-section {
  width: 100%;
  padding: 44px 0 64px;
  overflow: hidden;
}

.section-heading {
  max-width: 980px;
  margin: 0 auto 46px;
  padding: 0 20px;
  text-align: center;
}

.section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 9px;
  text-transform: uppercase;
}

.section-heading h1 {
  margin-bottom: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 400;
  line-height: 0.95;
}

.section-heading p {
  color: #3f4650;
  font-size: 14px;
  letter-spacing: .5px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel {
  display: flex;
  gap: 20px;
  padding: 0 1vw 72px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.person-card {
  flex: 0 0 250px;
  text-align: center;
  scroll-snap-align: center;
}

.person-card img {
  width: 100%;
  height: 334px;
  display: block;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 18px 34px rgba(38, 31, 23, .06);
  transition: transform .35s ease, box-shadow .35s ease;
}

.person-card:hover img {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(38, 31, 23, .12);
}

.person-card h3 {
  margin-top: 17px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: #2c211c;
}

.person-card p {
  margin-top: 3px;
  color: #40372f;
  font-size: 12px;
  letter-spacing: .3px;
}

.nav-btn {
  position: absolute;
  bottom: 0;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: #332f2b;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}

.nav-btn:hover {
  background: #fff;
  border-color: #cfc7bb;
  transform: translateY(-2px);
}

.nav-btn span {
  display: block;
  margin-top: -2px;
  font-size: 30px;
  line-height: 1;
}

.nav-btn.prev {
  left: calc(50% - 54px);
}

.nav-btn.next {
  left: calc(50% + 10px);
}

@media (max-width: 768px) {
  .team-section {
    padding-top: 34px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading span {
    letter-spacing: 5px;
  }

  .carousel {
    gap: 16px;
    padding: 0 24px 70px;
  }

  .person-card {
    flex-basis: 78vw;
  }

  .person-card img {
    height: 390px;
  }
}

@media (max-width: 480px) {
  .person-card {
    flex-basis: 82vw;
  }

  .person-card img {
    height: 340px;
  }
}
