




/* =====================================================
   QUEST LODGES & SAFARIS
   TEAM SECTION
===================================================== */

.qls-team-section {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(55px, 7vw, 90px) 20px;
  background-color: #f5f4ef;
  position: relative;
  overflow: hidden;
}

/* Subtle safari-inspired background texture */
.qls-team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;

  background-image:
    linear-gradient(
      90deg,
      rgba(70, 78, 57, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(70, 78, 57, 0.035) 1px,
      transparent 1px
    );

  background-size: 70px 70px;
}


/* =====================================================
   CONTAINER
===================================================== */

.qls-team-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}


/* =====================================================
   HEADING
===================================================== */

.qls-team-heading {
  max-width: 650px;
  margin: 0 auto clamp(35px, 5vw, 55px);
  text-align: center;
}

.qls-team-eyebrow {
  display: inline-block;

  margin-bottom: 12px;

  color: #8b7650;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.qls-team-title {
  margin: 0;

  color: #25334f;

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
}

.qls-team-intro {
  max-width: 590px;

  margin: 16px auto 0;

  color: #73746e;

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 1.7;
}


/* =====================================================
   TEAM GRID
===================================================== */

.qls-team-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: clamp(16px, 2.2vw, 28px);

  align-items: stretch;
}


/* =====================================================
   TEAM CARD
===================================================== */

.qls-team-card {
  width: 100%;
  min-width: 0;

  overflow: hidden;

  background: #ffffff;

  border-radius: 7px;

  box-shadow:
    0 4px 18px rgba(36, 46, 55, 0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  display: flex;
  flex-direction: column;
}

.qls-team-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 14px 35px rgba(36, 46, 55, 0.14);
}


/* =====================================================
   TEAM PHOTO
===================================================== */

.qls-team-photo {
  position: relative;

  width: 100%;

  aspect-ratio: 4 / 4.65;

  overflow: hidden;

  background: #d8d8d0;
}

.qls-team-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center top;

  transition: transform 0.5s ease;
}

.qls-team-card:hover .qls-team-photo img {
  transform: scale(1.04);
}


/* Subtle image overlay */
.qls-team-photo-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      transparent 55%,
      rgba(20, 31, 38, 0.14) 100%
    );

  pointer-events: none;
}


/* =====================================================
   TEAM INFORMATION
===================================================== */

.qls-team-info {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;

  box-sizing: border-box;

  padding: 19px 12px 17px;

  text-align: center;

  background: #ffffff;
}

.qls-team-name {
  width: 100%;

  margin: 0;

  color: #202832;

  font-family: Arial, Helvetica, sans-serif;

  font-size: clamp(13px, 1.2vw, 16px);

  font-weight: 700;

  line-height: 1.3;
}

.qls-team-role {
  margin: 5px 0 13px;

  color: #9a8a68;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 12px;

  font-weight: 500;

  line-height: 1.35;
}


/* =====================================================
   DIVIDER
===================================================== */

.qls-team-divider {
  width: 30px;
  height: 1px;

  margin-bottom: 13px;

  background: #d8cdb9;
}


/* =====================================================
   CONTACT
===================================================== */

.qls-team-contact {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 10px 18px;

  margin-top: auto;
}

.qls-team-contact-link {
  display: inline-flex;

  align-items: center;

  min-height: 30px;

  gap: 5px;

  color: #25334f;

  text-decoration: none;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 11px;

  font-weight: 600;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.qls-team-contact-link:hover {
  color: #8b7650;

  transform: translateY(-1px);
}

.qls-team-icon {
  width: 15px;
  height: 15px;

  flex-shrink: 0;

  fill: currentColor;
}


/* =====================================================
   LARGE TABLETS
===================================================== */

@media (max-width: 1050px) {

  .qls-team-container {
    max-width: 900px;
  }

  .qls-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .qls-team-photo {
    aspect-ratio: 4 / 3.8;
  }

  .qls-team-name {
    font-size: 16px;
  }

}


/* =====================================================
   TABLETS
===================================================== */

@media (max-width: 700px) {

  .qls-team-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .qls-team-heading {
    margin-bottom: 35px;
  }

  .qls-team-title {
    font-size: clamp(27px, 7vw, 34px);
  }

  .qls-team-intro {
    font-size: 14px;
    line-height: 1.65;
  }

  .qls-team-grid {
    gap: 18px;
  }

  .qls-team-photo {
    aspect-ratio: 4 / 4.1;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 520px) {

  .qls-team-section {
    padding: 48px 16px 60px;

    background-image: none;
  }

  .qls-team-eyebrow {
    font-size: 9px;
    letter-spacing: 1.7px;
  }

  .qls-team-title {
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  .qls-team-intro {
    margin-top: 13px;

    font-size: 14px;
  }

  .qls-team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qls-team-card {
    border-radius: 7px;
  }

  .qls-team-photo {
    aspect-ratio: 4 / 3.25;
  }

  .qls-team-info {
    padding: 20px 15px 19px;
  }

  .qls-team-name {
    font-size: 15px;
  }

  .qls-team-role {
    margin-bottom: 12px;
  }

  .qls-team-contact {
    gap: 8px 22px;
  }

  .qls-team-contact-link {
    min-height: 34px;

    font-size: 11px;
  }

  .qls-team-icon {
    width: 16px;
    height: 16px;
  }

}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 360px) {

  .qls-team-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .qls-team-title {
    font-size: 24px;
  }

  .qls-team-photo {
    aspect-ratio: 4 / 3;
  }

  .qls-team-info {
    padding-left: 10px;
    padding-right: 10px;
  }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

  .qls-team-card,
  .qls-team-photo img,
  .qls-team-contact-link {
    transition: none;
  }

}
