/* Homepage Gutenberg helpers */

/* Unified base typography */
h2 {
  font-size: 3rem;
  font-weight: 700;
}

h3 {
  font-size: 1.65rem;
  font-weight: 700;
}

p {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.65rem;
}

.hp-section { padding: 0; margin: 0; }
.hp-section.is-alt { background: #f3f4f6; }
.hp-section .wp-block-buttons { justify-content: center; }
.hp-section .wp-block-button__link { border-radius: 999px; padding: 14px 28px; }

.hp-title {
  text-align: center;
  margin: 0 0 1.5rem;
}

/* grid helpers */
.hp-grid { display: grid; gap: 1.25rem; }

@media (min-width: 768px) {
  .hp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hp-card {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 1.25rem;
  background: #fff;
}

.hp-card--disclaimer p.has-small-font-size {
  margin-top: .75rem;
  opacity: .85;
}

/* FAQ styling */
.hp-faq details {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}
.hp-faq details + details { margin-top: .75rem; }
.hp-faq summary { cursor: pointer; font-weight: 600; }
.hp-faq details p { margin-top: .75rem; }

/* ===== "Feature grid" section (the one with icons + two columns) ===== */
.hp-feature {
  background: #fff;
}

/* Blue header bar */
.hp-feature__header {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-radius: 0;
  text-align: center;
  background-color: #EAEBEC;
}

.hp-feature__title {
  margin: 0;
}

/* Body */
.hp-feature__body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.hp-feature-item {
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hp-feature-item__content h3,
.hp-feature-item__content p {
  margin: 0;
}

.hp-feature-item__text { 
  display: inline;
  margin-top: 8px; 
}
.hp-feature-item__link { 
  display: inline-block;
  margin-left: .5rem !important;
}

.hp-feature-item__icon {
  flex: 0 0 100px;     /* pick the size of icon */
  width: 100px;
}

.hp-feature-item__icon img {
  width: 100px;
  height: auto;
  display: block;
  border-radius: 999px;
  background: #e9eef5;
}

.hp-feature-item__text {
  margin: 0 0 0.25rem !important;
  line-height: 1.65rem;
}

.hp-feature-item__link a {
  font-weight: 700;
  text-decoration: none;
}
.hp-feature-item__link a:hover {
  text-decoration: underline;
}

/* Make columns align nicely */
.hp-feature__columns {
  gap: 2.5rem;
}

@media (max-width: 781px) {
  .hp-feature__header { border-radius: 0; }
  .hp-feature__title {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 1rem;
  }
  .hp-feature__subtitle { font-size: 1.25rem; }
  .hp-feature-item { 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem; 
  }
  .hp-feature-item__icon img {
    width: 80px;
  }
  .hp-feature-item__content {
    margin: 1rem auto;
    padding: 0 3rem;
  }
  .hp-feature-item__title {
    text-align: center;
    line-height: 2rem;
  }
}
/* =========================
   Explore section  
========================= */

/* =========================
    Safeguards teaser section  
========================= */
.hp-safeguards-teaser {
    padding: 2.5rem;
    background-color: #F4F4F4;
}

.hp-safeguards-teaser__icon {
  float: right;
}

.hp-safeguards-teaser__cols {
    gap: 1.5rem;
    margin: 0 auto;
}

.hp-safeguards-teaser__text {
  display: inline;
  line-height: 1.65rem;
}

.hp-safeguards-teaser__link {
  display: inline-block;
  margin-left: .5rem !important;
}

.hp-safeguards-teaser__link a {
    font-weight: 700;
}

.hp-safeguards-teaser__icon img {
  width: 120px;
}

@media (max-width: 781px) {
  .hp-safeguards-teaser__cols {
    flex-basis: unset;
  }
  .hp-safeguards-teaser__icon {
    float: unset;
  }
  .hp-safeguards-teaser__icon img {
    margin: 0 auto;
    width: 80px;
  }
}

@media (max-width: 781px) {
  .hp-safeguards-teaser__cols {
    flex-basis: unset;
  }
  .hp-safeguards-teaser__icon {
    float: unset;
  }
  .hp-safeguards-teaser__icon img {
    margin: 0 auto;
    width: 80px;
  }
}

/* =========================
   Truspilot section
========================= */
#reviews_container .carousel-cell p {
  font-size: 1.15rem;
}

.hp-trustpilot-section {
    background-color: rgb(243 244 246);
}

/* =========================
   What is a Reverse Mortgage section
========================= */
.hp-about-section {
    padding: 2.5rem 0;
}

.hp-about-title {
    margin: 0 0 1.5rem;
}

.hp-about-text {
    margin-bottom: 2.5rem;
}

.hp-qualify__cta a {
    padding: 0.5rem 1.5rem;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 1.5rem;
}

.hp-qualify__cta:hover a {
    background-color: #fff;
    color: #0e2e55;
}

.hp-about-cards {
  display: grid;
  gap: 2rem;
  max-width: 900px;
}

.hp-about-cards > .wp-block-group__inner-container {
  margin-top: 2rem;
}

/* Card wrapper */
.hp-about-card {
  position: relative;
  border: 2px solid rgba(0, 0, 0, .18);
  border-radius: 12px;
  background: #fff;
  padding: 3rem;
  margin-bottom: 3rem;
}

/* Icon bubble */
.hp-about-card__icon {
  position: absolute;
  top: -3rem;
  left: 1rem;
  width: 100px;
  height: 100px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-about-card__icon img {
  width: 80px;
  height: auto;
  display: block;
}

/* Title row: text + horizontal line */
.hp-about-card__title {
  position: absolute;
  top: -1rem;
  left: 6.65rem;
  background-color: #fff;
  padding: 0 .5rem;
  margin: 0 0 0.75rem !important;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Body text */
.hp-about-card__text {
  margin: 0;
  padding: 1rem 0 0;
}

/* Mobile tightening */
@media (max-width: 720px) {
  .hp-about-section {
    padding: 2rem;
  }

  .hp-about-title {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .hp-about-card {
    padding: 1.5rem 2rem;
  }

  .hp-about-card .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hp-about-card__icon {
    position: relative;
    top: unset;
    left: unset;
  }

  .hp-about-card::before {
    display: none;
  }

  .hp-about-card__title {
    position: relative;
    margin-top: 1rem !important;
    top: unset;
    left: unset;
    line-height: 1.5rem;
    text-align: center;
    flex-wrap: wrap;
  }

  .hp-about-card__title::after {
    display: none;
  }
}

/* =========================
   Qualify section
========================= */
.hp-qualify {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0;
  background-color: #EAEBEC;
}

.hp-qualify__header {
    margin-bottom: 1.5rem;
}

.hp-qualify__title {
  text-align: center;
}

.hp-qualify__intro {
    margin-bottom: 1rem;
}

.hp-qualify__list {
    font-size: 1.25rem;
}

.hp-qualify__outro {
    margin: 1rem auto 1.5rem;
}

.hp-qualify__cta a {
    padding: 0.5rem 1.5rem !important;
    background-color: #123b6e;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 2.5rem;
}

.hp-qualify__intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 2.5rem;
}


.hp-qualify-cards {
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  justify-items: stretch;
  align-items: stretch;
}

/* Each white rounded quality card */
.hp-qualify-card {
  position: relative; /* anchor badge */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 260px;
  background: #fff;
  border-radius: 12px;
  padding: 4rem 3rem 2.25rem;
  margin: 0 auto !important;
  box-shadow: 5px 5px 8px rgb(165 161 161 / 70%);
}

.hp-qualify-card__badge {
  position: absolute;
  left: 50%;
  top: -22px; /* pulls it above the card */
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Number ring */
.hp-qualify-card__badge {
  background: rgb(17 56 110);
}

.hp-qualify-card__badge span {
  position: relative; 
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

/* Centered title + text like screenshot */
.hp-qualify-card__title {
  margin: 0 0 .25rem !important;
  text-align: center;
  font-weight: 800;
  font-size: 1.4rem;
}

.hp-qualify-card__text {
  margin: 0;
  max-width: 500px;
  text-align: center;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Outro sits below cards, left-aligned in screenshot */
.hp-qualify__outro {
  max-width: 900px;
  margin: 2rem auto 1.75rem;
}

@media (min-width: 1200px) {
  .hp-qualify-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .hp-qualify-card {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .hp-qualify-cards {
    gap: 1.5rem;
  }
}

/* Mobile spacing */
@media (max-width: 767px) {
  .hp-qualify {
    padding: 2.5rem;
  }
  .hp-qualify-cards {
    padding-left: 1rem;
    padding-right: 1rem;
    grid-template-columns: 1fr;
  }
  .hp-qualify__outro {
    padding: 0 2rem;
  }
}

/* =========================
   Process section (oval + overlap + centered number badge)
========================= */
.hp-process {
    padding: 2rem 1rem;
}

.hp-process__title {
    margin: 0 0 2.5rem;
}

.hp-process-step {
    margin-bottom: 1rem;
}

/* list wrapper */
.hp-process__list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

/* Each process step */
.hp-process-step {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

/* Each row */
.hp-process-step {
  position: relative;
}


/* Optional: prevent Gutenberg default margins from pushing things */
.hp-process-step__left,
.hp-process-step__right,
.hp-process-step__badge{
  margin: 0 !important;
}

/* Left oval */
.hp-process-step__left {
  flex: 0 0 30%;
  height: 125px;
  border-radius: 999px;
  background: #eef2f5;
  border: 2px solid rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1rem;
  z-index: 1;
}

.hp-process-step__icon img {
  width: 100px;
  height: auto;
  display: block;
}

/* Right rectangle (overlaps the oval) */
.hp-process-step__right {
    flex: 1 1 auto;
    min-height: 120px;
    text-align: center;
    border-radius: 18px;
    background: #fff;
    border: 2px solid rgba(0,0,0,.18);
    padding: 1.1rem 2rem 1.1rem 2.5rem; /* make room for badge */
    margin-left: -60px !important; /* the overlap */
    box-shadow: 0 2px 0 rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hp-process-step__text {
  margin: 0;
  color: rgba(0,0,0,.75);
}

/* Number badge centered on the overlap */
.hp-process-step__badge {
    position: absolute;
    left: 23%;                 /* width of oval */
    transform: translateX(-50%); /* center badge on seam */
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #163a63;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hp-process-step__badgeText {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1;
}

/* Responsive: stack on small screens */
@media (max-width: 720px) {
  .hp-process__title {
    line-height: 2.5rem;
  }
  .hp-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, .18);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
    padding: 2rem 3rem;
  }

  .hp-process-step > .wp-block-group__inner-container {
    flex-direction: column;
    left: auto;
    width: 80%;
  }

  .hp-process-step__left {
    justify-content: center;
    height: auto;
    padding-bottom: 2rem;
    background-color: transparent;
    border: none;
    border-radius: 0;
  }

  .hp-process-step__right {
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin-left: 0 !important;
    padding: 1rem 0;
  }

  .hp-process-step__badge {
    position: relative;
    left: auto;
    transform: none;
  }

  .hp-process-step__text {
    text-align: left;
  }

  .hp-process-step__heading {
    margin-bottom: 1rem;
  }
}

/* =========================
   Disbursement section
========================= */
.hp-disbursement {
  padding: 0 0 2.5rem;
}

.hp-disbursement__title {
    margin: 0 auto 2.5rem;
}

.hp-disbursement__col {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hp-disbursement__h {
    margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .hp-disbursement {
    padding: 2rem;
  }
  .hp-disbursement__title {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  .hp-disbursement__icon img {
    width: 80px;
  }
}

/* =========================
   Safeguards (2nd section grid)
========================= */
.hp-safeguards-section {
  padding: 2.5rem 0;    
  background: #EAEBEC;
}

.hp-safeguards-grid__header {
    justify-content: center;
    align-items: center !important;
    gap: 1rem;
}

.hp-safeguards-grid__img {
    flex: 1 !important;
    display: flex;
    justify-content: flex-end;
}

.hp-safeguards-grid__img img {
    width: 120px;
}

.hp-safeguards-grid__heading {
    flex: 2.5 !important;
}

.hp-safeguards-grid__title {
    margin: 0;
    text-align: left;
}

.hp-safeguards-grid__cardTitle {
    margin-bottom: 0.5rem;
}

/* Safeguards cards grid */
.hp-safeguards-grid__cards {
    display: grid;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    overflow: hidden;
}

.hp-safeguards-grid__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0;
    align-items: stretch;
}

.hp-safeguards-grid__card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
    padding: 2rem;
    margin: -1px 0 0 -1px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hp-safeguards-grid__card .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hp-safeguards-grid__card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.hp-safeguards-grid__card p {
    margin: 0;
}

.hp-safeguards-grid__disclaimer p {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.65rem;
}

.hp-safeguards-grid__finePrint {
    margin-top: 0.75rem;
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 786px) {
  .hp-safeguards-grid__img {
    justify-content: center;
  }

  .hp-safeguards-section {
    padding: 2.5rem;
  }
  
  .hp-safeguards-grid__row {
    grid-template-columns: 1fr;
  }
  .hp-safeguards-grid__header {
    flex-direction: column;
  }
  .hp-safeguards-grid__headerIcon img {
    float: unset;
    margin:0 auto;
  }
  .hp-safeguards-grid__title {
    font-size: 2rem;
    line-height:2.5rem;
  }
}

/* =========================
   FAQ Section
========================= */
.hp-faq-section__title {
    padding: 2rem 0;
    max-width: 100%;
    margin: 0;
}

.hp-faq-grid {
    width: 100%;
    margin: 0;
    padding: 0 0 2.5rem;
    gap: 2rem;
}

.hp-faq-grid div {
  background-color: #F4F4F4;
  padding: 2rem 2.5rem;
}

.hp-faq-grid details {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hp-faq-grid summary {
  font-weight: 600;
  list-style: none;
}

.hp-faq-grid p {
    font-weight: 300;
    font-size: 1.25rem;
}

@media (max-width: 720px) {
  .hp-faq-section__title {
    font-size: 2rem;
    line-height: 2.5rem;;
  }
  .hp-faq-grid div {
    padding: 2rem;
  }
  .hp-faq-grid summary {
    font-size: 1.5rem;
    line-height: 1.85rem;
    margin-bottom: 1rem;
  }
}

/* editor-only patch */
.editor-styles-wrapper .hp-feature__body {
  padding-left: 0;
  padding-right: 0;
}

.editor-styles-wrapper .hp-process-step__icon img {
  width: 100px !important;
  height: auto !important;
}

.editor-styles-wrapper figure.hp-process-step__icon {
  max-width: 100px !important;
}

.editor-styles-wrapper .hp-feature__title {
  font-size: 2.5rem;
}

.editor-styles-wrapper .hp-safeguards-grid__title {
  font-size: 2rem;
}

.editor-styles-wrapper .hp-qualify__title {
  text-align: center;
}

.editor-styles-wrapper .hp-process-step__left {
  right: -5%;
  height: 130px;
}

.editor-styles-wrapper .hp-process-step__badge {
  left: -5% !important;
  transform: none !important;
  width: 80px;
  height: 50px;
}

.editor-styles-wrapper .hp-faq-grid details summary div {
  padding: 0;
  font-size: 1.25rem;
}