/* custom styles (no SASS dependency) */

section#testimonials .hm-agency-block,
section#testimonials .hm-agent-block {
  padding-top: 3.5rem;
  padding-bottom: 0;
}

section#testimonials .hm-agency-header,
section#testimonials .hm-agent-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

section#testimonials .hm-agent-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

section#testimonials .hm-agency-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  min-width: 0;
  flex-shrink: 0;
}

section#testimonials .hm-agency-header a,
section#testimonials .hm-agent-photo a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

section#testimonials .hm-agent-photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
section#testimonials .hm-agency-header {
  margin-bottom: 6rem;
}
.hm-agency-block .section-title {
  text-align: center;
  font-weight: 300;
  font-size: 3rem;
}

section#testimonials .hm-agent-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  min-width: 0;
}

section#testimonials .hm-agency-info,
section#testimonials .hm-agent-info {
  flex: 1;
}

section#testimonials .hm-agency-info h2.section-title,
section#testimonials .hm-agent-info h2.section-title {
  position: static;
  transform: none;
  left: auto;
  text-align: center;
  margin-bottom: 0.5rem;
}

section#testimonials .hm-agent-info h2.section-title {
  text-align: center;
}

section#testimonials .hm-rating-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
}

section#testimonials .hm-agent-header .hm-rating-row,
section#testimonials .hm-agency-header .hm-rating-row {
  justify-content: center;
}

section#testimonials .hm-rating-score {
  font-family: freight-display-pro, serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: #C5984D;
}

section#testimonials .hm-rating-max {
  font-family: freight-text-pro, serif;
  font-size: 0.9rem;
  color: #666;
}

section#testimonials .hm-rating-count {
  font-family: freight-sans-pro, serif;
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: #888;
  margin-left: 0.2rem;
}

section#testimonials .hm-awards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  transition: grid-template-columns 0.4s ease;
  width: 100%;
}

section#testimonials .hm-award-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #C5984D;
  padding: 0.6rem 0.5rem;
  text-align: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

section#testimonials .hm-award-title {
  font-family: freight-display-pro, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #173632;
  font-weight: 300;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
@media (max-width: 767px) {
  section#testimonials .hm-award-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }
}

section#testimonials .hm-award--hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

section#testimonials .hm-award--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  width: auto;
  height: auto;
}

section#testimonials .hm-award-year {
  font-family: freight-display-pro, serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: #C5984D;
  margin-top: 0.1rem;
}

section#testimonials .hm-recommendations {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  section#testimonials .hm-recommendations {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1300px) {
  section#testimonials .hm-recommendations {
    grid-template-columns: repeat(3, 1fr);
  }
}

section#testimonials .hm-recommendation {
  background-color: rgba(243, 242, 236, 0.6);
  padding: 1.5rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

section#testimonials .hm-recommendation::before {
  content: "\201C";
  font-family: freight-display-pro, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: #C5984D;
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  opacity: 0.4;
}

section#testimonials .hm-recommendation-quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section#testimonials .hm-recommendation p {
  font-family: freight-display-pro, serif;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 300;
  font-style: italic;
  text-align: left;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

section#testimonials .hm-recommendation--hidden {
  display: none;
}

section#testimonials .hm-recommendation-meta {
  padding-top: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 0.5px solid #ddd;
}

section#testimonials .hm-recommendation-name {
  font-family: freight-display-pro, serif;
  font-style: italic;
  font-size: 1rem;
  color: #173632;
  display: block;
  margin-top: 1rem;
}

section#testimonials .hm-recommendation-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

section#testimonials .hm-recommendation-address,
section#testimonials .hm-recommendation-date {
  font-family: freight-sans-pro, serif;
  font-size: 0.6rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: #888;
}

section#testimonials .hm-show-more-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

section#testimonials .hm-show-more {
  cursor: pointer;
}

section#testimonials .hm-logo-row {
  padding: 3rem 0 4rem;
}

section#testimonials .hm-logo-row .hm-hittamaklare-logo {
  width: 180px;
  height: auto;
  min-width: 0;
  display: inline-block;
}

@media (max-width: 575px) {
  section#testimonials .hm-agency-info h2.section-title {
    text-align: center;
  }
}
