/* =========================================================================
   Homepage-only styles (enqueued on the front page).
   The theme's Tailwind utilities are precompiled, so bespoke homepage
   components are styled here with explicit CSS rather than new utilities.
   ========================================================================= */

/* ---- Specialists: intro + checklist + badge panel ----------------------- */
.hp-specialists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 28px;
}
@media (min-width: 1024px) {
  .hp-specialists {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.hp-specialists__lead {
  color: #884a83;
  font-size: 19px;
  font-weight: 600;
  margin: 4px 0 18px;
}

.hp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: #1a1a1a;
}
.hp-checklist__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 9999px;
  background: #884a83;
  color: #fff;
}
.hp-checklist__icon svg { width: 13px; height: 13px; }
.hp-checklist .hp-hl { color: #884a83; font-weight: 600; }

/* Inline rich text in the Specialists heading + paragraph (ACF HTML) */
.hp-ink { color: #1a1a1a; }
.hp-link {
  color: #884a83;
  font-weight: 600;
  text-decoration: none;
}
.hp-link:hover { text-decoration: underline; }

/* Badge panel (SRA live embed + Legal 500) */
.hp-badges-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #f6eef5;
  border: 1px solid #ecdcea;
  border-radius: 18px;
  padding: 26px 24px;
}
.hp-badges-panel .sra-iframe {
  background: #fff;
  border-radius: 10px;
  width: 168px;
  height: 100px;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(109, 59, 105, 0.10);
}
.hp-badges-panel .hp-legal500 {
  height: 132px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 480px) {
  .hp-badges-panel { gap: 14px; padding: 20px 14px; flex-wrap: wrap; }
  .hp-badges-panel .hp-legal500 { height: 108px; }
}

/* ---- RLegal team of experts -------------------------------------------- */
.hp-team {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 8px 0 64px;
}
/* Soft diagonal motif echoing the mockup, kept subtle + behind content. */
.hp-team::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: #f3f2f4;
  clip-path: polygon(0 38%, 50% 0, 100% 38%, 100% 100%, 0 100%);
  z-index: 0;
}
.hp-team__inner {
  position: relative;
  z-index: 1;
}
.hp-team__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px 64px;
  margin-top: 36px;
}
.hp-team__member {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hp-team__photo {
  width: 168px;
  height: 168px;
  border-radius: 9999px;
  padding: 6px;
  border: 2px solid #884a83;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.hp-team__photo img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  object-position: top center;
}
.hp-team__name {
  font-size: 19px;
  color: #1a1a1a;
}
.hp-team__name .hp-team__fname { color: #884a83; font-weight: 600; }

.hp-team__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.hp-team__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4a884f;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 40px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(74, 136, 79, 0.28);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.hp-team__btn:hover { background: #3d7242; transform: translateY(-1px); }
.hp-team__btn u { text-underline-offset: 3px; }

/* ---- Reviews -> Services chevron divider (homepage only) ---------------- */
.hp-reviews { position: relative; }
.hp-reviews::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  height: 48px;
  background: #6d3b69; /* matches the reviews band, points down into Services */
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 767px) {
  /* Flat, horizontal section edges on mobile — drop the decorative chevrons */
  .hp-team::before,
  .hp-reviews::after { display: none; }

  /* Keep the three founders in a single horizontal row */
  .hp-team__grid { flex-wrap: nowrap; gap: 14px; margin-top: 24px; }
  .hp-team__member { flex: 1 1 0; min-width: 0; gap: 10px; }
  .hp-team__photo { width: 100%; max-width: 108px; height: auto; aspect-ratio: 1 / 1; }
  .hp-team__name { font-size: 14px; }
}
