/* ============================================================
   HOMEPAGE STYLES — Blue Rose Financial
   ============================================================ */

/* ── Hero — accent size moved to main.css ───────────────────── */

/* ── Services ────────────────────────────────────────────────── */
.sect-services {
  background-color: var(--color-bg-dark);
}

.sect-services__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}

.sect-services .sect-heading__title { color: var(--color-white); }
.sect-services .sect-heading__sub   { color: var(--color-text-muted); }

.services__grid {
  display: flex;
  gap: 24px;
  width: 100%;
}

.service-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 32px;
  background-color: var(--color-white);
  border-radius: 12px;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239,246,255,1) 0%, rgba(203,227,255,1) 34%, rgba(131,188,255,1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.service-card__icon svg { width: 100%; height: 100%; }

.service-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #51617A;
}

@media (max-width: 991px) {
  .services__grid { flex-direction: column; }
}

/* ── Key Benefits ─────────────────────────────────────────────── */
.sect-benefits {
  background-color: var(--color-white);
  padding-block: 64px;
}

.benefits__grid {
  display: flex;
  gap: 24px;
}

.benefits__item {
  display: flex;
  flex: 1;
  gap: 24px;
  align-items: flex-start;
}

.benefits__icon-tile {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
      background: linear-gradient(135deg, rgba(239, 246, 255, 0.40) 0%, rgba(203, 227, 255, 0.40) 34%, rgba(131, 188, 255, 0.40) 100%), var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.benefits__icon-tile svg {
  width: 100%;
  height: 100%;
}

.benefits__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefits__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  color: var(--color-bg-dark);
}

.benefits__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #51617A;
}

@media (max-width: 991px) {
  .sect-benefits { padding-block: 48px; }
  .benefits__grid { flex-direction: column; gap: 32px; }
}

@media (max-width: 575px) {
  .sect-benefits { padding-block: 40px; }
}

/* ── Banks We Work With ──────────────────────────────────────────── */
.sect-logos {
  background: linear-gradient(135deg, rgba(239,246,255,1) 0%, rgba(203,227,255,1) 34%, rgba(131,188,255,1) 100%);
  overflow-x: hidden;
}

.sect-logos__inner {
  display: flex;
  justify-content: center;
  gap: 48px;
}
@media (max-width: 768px) {
  .sect-logos__inner {
    flex-wrap: wrap;
  }

  .sect-logos__heading {
    flex: 1;
  } 
}

.sect-logos .sect-heading__title { color: var(--color-bg-dark); }
.sect-logos .sect-heading__sub   { color: #51617A; }

.sect-logos__image-wrap {
  width: 717px;
  max-width: 100%;
  flex-shrink: 0;
}

/* Diamond wall of hover-expanding bank pills */
.sect-logos__wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sect-logos__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 74px;
}

.sect-logos__card {
  flex: 0 0 auto;
  width: 104px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  will-change: width, height;
  transition:
    width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.sect-logos__wordmark {
  height: auto;
  width: auto;
  max-width: 90px;
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  user-select: none;
  pointer-events: none;
  image-rendering: pixelated;
}

@media(max-width: 991px) {
 .sect-logos__wordmark {
   max-width: calc(100% - 14px);
 } 
}

.sect-logos__card:hover,
.sect-logos__card:focus-visible,
.sect-logos__card.is-active {
  width: 130px;
  height: 74px;
  z-index: 2;
}

.sect-logos__card:hover .sect-logos__wordmark,
.sect-logos__card:focus-visible .sect-logos__wordmark,
.sect-logos__card.is-active .sect-logos__wordmark {
  transform: scale(1.3);
}

.sect-logos__card:focus-visible {
  outline: 2px solid var(--color-bg-dark);
  outline-offset: 2px;
}

@media (max-width: 1199px) {
  .sect-logos__image-wrap { max-width: 520px; }
}

@media (max-width: 991px) {
  .sect-logos__image-wrap {  width: 100%; }

  .sect-logos__row { min-height: 62px; }

  .sect-logos__card { width: 86px; height: 50px; }

  .sect-logos__card:hover,
  .sect-logos__card:focus-visible,
  .sect-logos__card.is-active {
    width: 128px;
    height: 62px;
  }
}

@media (max-width: 575px) {
  .sect-logos__wall {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sect-logos__row {
    display: contents;
  }
}

/* ── How It Works ─────────────────────────────────────────────── */
.sect-how {
  background-color: var(--color-white);
}

.sect-how__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.sect-how .sect-heading__sub { color: #51617A; }

.how__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

/* More than 3 items — switch to a 3-column grid */
.how__grid:has(> :nth-child(4)) {
  display: grid;
  grid-template-columns: repeat(3, 2fr);
}

.how__step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 200px;
  position: relative;
  z-index: 1;
}

.how__step-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  /*background: linear-gradient(135deg, rgba(239,246,255,.65) 0%, rgba(203,227,255,1) 34%, rgba(131,188,255,1) 100%);*/
  background: linear-gradient(135deg, #f5faff 0%, #f0f6ff 34%, #d1e6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.how__step-icon svg { width: 100%; height: 100%; }

.how__step-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how__step-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  color: var(--color-bg-dark);
}

.how__step-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #51617A;
}

@media (max-width: 991px) {
  .how__step {
    flex: 0 1 calc(50% - 16px);
    min-width: 0;
  }
}

@media (max-width: 575px) {
  .how__grid:has(> :nth-child(4)){
    display: flex;
  }
  .how__step {
    flex: 0 1 100%;
    flex-direction: row;
  }
}

/* ── Testimonials ─────────────────────────────────────────────── */
.sect-testimonials {
  background-color: var(--color-white);
}

.sect-testimonials__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Background photo */
.testimonials__photo {
  width: 50%;
  height: auto;
  aspect-ratio: 1188 / 440;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.testimonials__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content column */
.testimonials__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.testimonials__heading-title {
  font-size: 48px;
  line-height: 54px;
}

/* Stars + count */
.testimonials__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.testimonials__stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.testimonials__stars svg {
  width: 16.67px;
  height: 15.89px;
  flex-shrink: 0;
}

.testimonials__meta-text {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-bg-dark);
}

/* Rendered as a link when the count is live — keep the same look but hint
   it's clickable on hover. */
.testimonials__meta-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.testimonials__meta-link:hover,
.testimonials__meta-link:focus-visible {
  text-decoration: underline;
}

/* Slider row: arrow — track — arrow */
.testimonials__slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Custom arrow buttons (outside Splide) */
.testimonials__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: #EFEFEF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
  align-self: center;
  /* offset the splide's padding-bottom so arrows align to the track, not the full element */
  margin-bottom: 48px;
}

.testimonials__arrow:hover { opacity: 0.7; }
.testimonials__arrow:disabled { opacity: 0.3; cursor: default; }

/* Splide track area */
.testimonials__splide {
  flex: 1;
  min-width: 0; /* allow shrinking below content size in flex context */
  max-width: 1115px;
  /* space below track for pagination dots */
  padding-bottom: 48px;
}

.testimonials__splide .splide__slide {
  display: flex; /* cards stretch to equal height */
}

/* Pagination dots */
.testimonials__splide .splide__pagination {
  bottom: 0;
  gap: 8px;
}

.testimonials__splide .splide__pagination__page {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background-color: #6A788D;
  opacity: 0.35;
  margin: 0;
  transition: opacity 0.2s;
}

.testimonials__splide .splide__pagination__page.is-active {
  background-color: var(--color-accent-red);
  opacity: 1;
  transform: none;
  width: 38px; /* pill shape matching the Figma "Union" element (37.6px) */
  border-radius: 9999px;
}

/* Testimonial card */
.testimonial-card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background-color: var(--color-white);
  border-radius: 16px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Gradient overlay (Gradient 4 at 65% opacity) */
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.65) -6.98%, rgba(203, 227, 255, 0.65) 34%, rgba(131, 188, 255, 0.65) 100%), var(--Semantic-Colours-White, #FFF);
  pointer-events: none;
  transition: all 0.6s;
}

.testimonial-card:hover::before {
  opacity: 1;
}

.testimonial-card__stars,
.testimonial-card__quote,
.testimonial-card__author { position: relative; z-index: 1; }

.testimonial-card__stars {
  display: flex;
  gap: 4px;
}

.testimonial-card__stars svg {
  width: 16.67px;
  height: 15.89px;
}

.testimonial-card__quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-bg-dark);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--color-bg-dark);
}

.testimonial-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-card__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-bg-dark);
}

.testimonial-card__role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #51617A;
}

/* Nav dots */
.testimonials__dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials__dot {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background-color: #6A788D;
  border: none;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s;
  padding: 0;
}

.sect-testimonial .rpi .grw-review-inner {
  background-color: #fff !important;
  position: relative;
}
#body .wp-gr .grw-review-inner {
  padding: 32px !important;
  border-radius: 16px !important;
  gap: 24px !important;
}

.google-reviews-wrap {
  padding-bottom: 50px;
}

@media(min-width: 767px) {
  #body .wp-gr {
    margin-inline: 38px !important;
  }
}

.wp-gr .grw-review-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.65) -6.98%, rgba(203, 227, 255, 0.65) 34%, rgba(131, 188, 255, 0.65) 100%), var(--Semantic-Colours-White, #FFF);
  pointer-events: none;
  transition: all 0.6s;
}

.wp-gr .grw-review-inner > * {
  position: relative;
  z-index: 10;
}

.wp-gr .grw-review-inner > div:first-child {
  order: 4;
}

#body .rpi .rpi-ltgt {
  width: 48px !important;
  height: 48px !important;
  background-color: #EFEFEF !important;
  box-shadow: none !important;
  border: none !important;
}

#body .rpi .rpi-ltgt:hover {
  opacity: 0.7 !important;
}

@media(min-width: 576px) {
  #body .rpi-ltgt.rpi-lt {
    left: -35px !important;
  }

  #body .rpi-ltgt.rpi-gt {
    right: -35px !important;
  }
}

#body .rpi .rpi-slides {
  mask: initial !important;
}

.rpi-ltgt.rpi-gt::after, .rpi-ltgt.rpi-lt::before {
 width: 26px !important; 
 height: 22px !important;
  mask: initial !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}


.rpi-ltgt.rpi-lt::before {
  background: url('../img/arr-left.svg') center / cover no-repeat !important;
}

.rpi .rpi-ltgt.rpi-gt::after {
  background: url('../img/arr-right.svg') center / cover no-repeat !important;
  mask: initial !important;
}

#body .rpi .rpi-dots-wrap {
  top: calc(100% + 14px) !important;
  width: auto !important;
}

#body .rpi-dots .rpi-dot {
  width: 16px !important;
  height: 16px !important;
  border-radius: 9999px !important;
  background-color: #6A788D !important;
  opacity: 0.35 !important;
  transition: opacity 0.2s !important;
  transform: none !important;
}

#body .rpi-dots .rpi-dot.active {
  width: 38px !important;
  background-color: var(--color-accent-red) !important;
  opacity: 1 !important;
}

.testimonials__dot.is-active { opacity: 1; }

@media (max-width: 767px) {
  .testimonials__photo { height: 240px; border-radius: 16px; }
}

@media (max-width: 991px) and (min-width: 576px) {
  .testimonials__heading-title { font-size: 40px; line-height: 48px; }
}

@media (max-width: 575px) {
  .testimonials__heading-title { font-size: 32px; line-height: 36px; }
}

/* ── FAQs ─────────────────────────────────────────────────────── */
.sect-faq {
  overflow: hidden;
  background-color: var(--color-bg-dark);
  position: relative;
}

.sect-faq__graphic {
  position: absolute;
  right: 23%;
  top: 0;
  transform: translateY(-26%);
  width: 818px;
  height: 2008px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

@media(max-width: 1199px) {
	.sect-faq__graphic {
		right: 10%;
	}
}

@media(max-width: 991px) {
	.sect-faq__graphic {
		right: -13%;
	}
}

.sect-faq__graphic svg {
  width: 100%;
  height: 100%;
}

.sect-faq__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 139px;
}

.sect-faq__heading-col {
  width: 393px;
  flex-shrink: 0;
}

.sect-faq .sect-heading__title { color: var(--color-white); }
.sect-faq .sect-heading__sub   { color: var(--color-text-muted); }

.sect-faq__items {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FAQ card */
.faq-item {
  background-color: var(--color-white);
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 24px;
}

/* Trigger button */
.faq-item__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 16px;
  text-align: left;
}

.faq-item__question {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-bg-dark);
}

/* Plus / Minus icon toggle */
.faq-item__icons {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item__icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.2s;
}

.faq-item__icon--minus { opacity: 0; }

.faq-item__trigger[aria-expanded="true"] .faq-item__icon--plus  { opacity: 0; }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon--minus { opacity: 1; }

/* Answer body — smooth grid-row animation */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-item__body {
  grid-template-rows: 1fr;
}

.faq-item__body-inner {
  overflow: hidden;
}

.faq-item__answer {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #51617A;
  padding-top: 12px;
}

@media (max-width: 1100px) {
  .sect-faq__inner { gap: 48px 60px; }
  .sect-faq__heading-col { width: 320px; }
}

@media (max-width: 768px) {
  .sect-faq__heading-col { width: 100%; }
  .sect-faq__inner { gap: 40px; }
  .faq-item {
    padding: 16px 12px;
  }
}

@media (max-width: 575px) {
  .faq-item__question { font-size: 16px; line-height: 24px; }
}

/* CTA section styles moved to main.css */

/* Hero accent responsive moved to main.css */
