/* Impact Team Reviews — Trustpilot-inspired UI */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #191919;
  background: #f4f4f5;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: #0d59d7; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* -------- Header -------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e8eb;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #191919;
  font-weight: 700;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px; height: 36px;
  display: block;
  object-fit: contain;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #191919;
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; text-decoration: none; }
.site-nav .nav-note {
  color: #6b7180;
  font-size: 14px;
}

/* -------- Company banner -------- */
.company {
  background: #ffffff;
  border-bottom: 1px solid #e6e8eb;
  padding: 32px 0 20px;
}
.company-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.company-logo {
  width: 96px; height: 96px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e6e8eb;
}
.company-logo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  display: block;
}
.company-name {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.stars-big { display: inline-flex; gap: 3px; }
.stars-big .star {
  width: 26px; height: 26px;
  display: inline-block;
  background: #d1d5db;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.stars-big .star.on { background: #00b67a; }
.rating-summary {
  color: #191919;
  font-size: 15px;
}
.rating-summary strong {
  font-size: 18px;
  margin-right: 6px;
}
#totalCount { color: #6b7180; }
.company-tag {
  color: #6b7180;
  font-size: 15px;
  margin: 6px 0 0;
}
.company-cta { align-self: start; margin-top: 4px; }
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00b67a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s ease;
}
.btn-visit:hover { background: #009865; text-decoration: none; }

.disclosure-strip {
  margin-top: 20px;
  padding: 12px 16px;
  background: #f4f7fb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #4b5563;
  font-size: 13.5px;
}

/* -------- Content grid -------- */
.content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 60px;
}

/* -------- Filters -------- */
.filters {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 84px;
}
.filter-block { margin-bottom: 22px; }
.filter-label {
  display: block;
  font-weight: 600;
  color: #191919;
  font-size: 14px;
  margin-bottom: 10px;
}
#searchInput, #sortSelect {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #191919;
  font-family: inherit;
}
#searchInput:focus, #sortSelect:focus {
  outline: none;
  border-color: #0d59d7;
  box-shadow: 0 0 0 3px rgba(13, 89, 215, 0.12);
}
.rating-filter { list-style: none; padding: 0; margin: 0; }
.rating-filter li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
}
.rating-filter li:hover .rating-filter-count { color: #191919; }
.rating-filter input {
  accent-color: #00b67a;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
.rating-filter .stars-mini { display: inline-flex; gap: 2px; }
.rating-filter .stars-mini .star {
  width: 14px; height: 14px;
  background: #d1d5db;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: inline-block;
}
.rating-filter .stars-mini .star.on { background: #00b67a; }
.rating-filter-label { font-size: 14px; color: #191919; }
.rating-filter-count {
  margin-left: auto;
  color: #6b7180;
  font-size: 13px;
}
.link-btn {
  background: none;
  border: 0;
  color: #0d59d7;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }

/* -------- Reviews list -------- */
.reviews-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.results-count {
  color: #6b7180;
  font-size: 14px;
}
.review-list { list-style: none; padding: 0; margin: 0; }
.review-card {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 14px;
}
.review-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.review-author { flex: 1; min-width: 0; }
.review-author .author-name {
  font-weight: 600;
  font-size: 15px;
  color: #191919;
  margin: 0 0 2px;
}
.review-author .author-meta {
  color: #6b7180;
  font-size: 13px;
}
.review-stars-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.stars-row { display: inline-flex; gap: 2px; }
.stars-row .star {
  width: 20px; height: 20px;
  background: #d1d5db;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: inline-block;
}
.stars-row .star.on { background: #00b67a; }
.review-date {
  color: #6b7180;
  font-size: 13px;
}
.review-title {
  font-weight: 700;
  font-size: 17px;
  color: #191919;
  margin: 0 0 8px;
}
.review-body {
  color: #2d3038;
  font-size: 15px;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

.review-card.star-only {
  background: #fafbfc;
  border-style: dashed;
}
.review-card.star-only .review-stars-row {
  margin-bottom: 0;
}

.section-divider {
  list-style: none;
  background: #fff8f3;
  border: 1px solid #f4d9c4;
  border-left: 4px solid #FA4616;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0 14px;
}
.section-divider-title {
  font-size: 18px;
  font-weight: 700;
  color: #191919;
  margin: 0 0 6px;
}
.section-divider-note {
  color: #4a4a4a;
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* -------- Pagination -------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #191919;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.pagination button:hover:not(:disabled) { background: #f4f4f5; }
.pagination button.active {
  background: #191919;
  color: #fff;
  border-color: #191919;
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .ellipsis { color: #6b7180; padding: 0 4px; }

.empty-state {
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: #6b7180;
}

/* -------- SEO section (About + FAQ) -------- */
.seo-section {
  padding: 20px 20px 40px;
  color: #2d3038;
  max-width: 1120px;
}
.seo-section h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  color: #191919;
}
.seo-section h3 {
  font-size: 17px;
  margin: 22px 0 8px;
  color: #191919;
}
.seo-section p {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: #3a3d45;
}

/* -------- Footer -------- */
.site-footer {
  background: #191919;
  color: #d5d7dc;
  padding: 32px 0;
  margin-top: 40px;
}
.footer-disclosure {
  font-size: 13.5px;
  color: #b6bac2;
  max-width: 720px;
  margin: 0 0 12px;
  line-height: 1.55;
}
.footer-disclosure a { color: #7cb8ff; }
.footer-links {
  font-size: 13.5px;
  color: #b6bac2;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-links a { color: #7cb8ff; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .company-inner {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .company-cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .content {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
}
@media (max-width: 560px) {
  .company-logo { width: 72px; height: 72px; font-size: 30px; border-radius: 12px; }
  .company-name { font-size: 24px; }
  .stars-big .star { width: 22px; height: 22px; }
  .header-inner { height: 56px; }
  .review-card { padding: 18px; }
  .seo-section h2 { font-size: 20px; }
}
