/* ========================================
   BORROWER-SPECIFIC STYLES
   Green/mint theme, friendly consumer tone
   ======================================== */

/* Borrower hero */
.borrower .hero {
  background-color: var(--color-mint);
  position: relative;
  overflow: hidden;
}

.borrower .hero--home {
  background: var(--color-mint);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.borrower .hero .hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.borrower .hero .hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16/9 of viewport height */
  transform: translate(-50%, -50%) scale(2);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.borrower .hero .hero-video-bg.is-playing iframe {
  opacity: 1;
}

.borrower .hero .container {
  position: relative;
  z-index: 1;
}

.borrower .hero .hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
}

.borrower .hero h1 {
  color: var(--color-black);
}

.hero-badge {
  position: absolute;
  top: 160px;
  right: 40px;
  z-index: 3;
}

.hero-badge img {
  height: 80px;
  width: auto;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* Borrower page hero */
.borrower .page-hero {
  background-color: var(--color-bg-light);
}

.borrower .page-hero .hero-label {
  color: var(--color-purple);
}

/* Borrower product cards */
.borrower .product-card .btn {
  background: var(--color-purple);
  color: var(--color-white);
  border-color: var(--color-purple);
}

.borrower .product-card .btn:hover {
  background: #4a2373;
}

/* Borrower CTA - "The Clever Choice" */
.borrower .cta-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  position: relative;
  overflow: visible;
}

.borrower .cta-section-inner {
  background: var(--color-purple);
  padding: var(--space-xl) 0;
}

.borrower .cta-curve {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 0;
}

.borrower .cta-curve--top {
  margin-bottom: -1px;
}

.borrower .cta-curve--bottom {
  margin-top: -1px;
}

.borrower .cta-section--broker h2 {
  font-size: 52px;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.borrower .cta-section--broker p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-white);
  opacity: 0.9;
}

.borrower .cta-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.borrower .cta-inner .cta-illustration {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
}

.borrower .cta-inner .cta-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.borrower .cta-inner .cta-illustration > img:not(.cta-bg-icon) {
  position: relative;
  z-index: 1;
}

.borrower .cta-inner .cta-bg-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: auto;
  opacity: 0.5;
  z-index: 0;
}

.borrower .cta-inner .cta-content {
  flex: 1 1 auto;
}

/* Homepage: show actual illustration image instead of Blue-Icon bg */
.borrower.borrower-svc .cta-section-inner .cta-illustration {
  background: none;
  min-height: 0;
}

.borrower.borrower-svc .cta-section-inner .cta-illustration img {
  display: block;
}

@media (max-width: 768px) {
  .borrower .cta-inner {
    flex-direction: column;
  }

  .borrower .cta-inner .cta-illustration,
  .borrower .cta-inner .cta-content {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* Borrower pledge */
.borrower .pledge-grid {
  grid-template-columns: repeat(2, 1fr);
}

.borrower .pledge-card {
  border: 1px solid #eee;
}

.borrower .pledge-card--cta {
  border: none;
  background: var(--color-mint);
}

.borrower .pledge-card--cta h4 {
  font-size: var(--font-size-lg);
}

.borrower .pledge-card--cta .phone-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-purple);
}

/* Borrower news */
.borrower .news-card-date {
  color: var(--color-purple);
}

/* Borrower criteria */
.borrower .criteria-item::before {
  color: var(--color-green-accent);
}

/* Borrower process */
.borrower .process-step h3 {
  color: var(--color-purple);
}

/* Borrower enquiry form */
.borrower .enquiry-section .btn--primary {
  background: var(--color-green-accent);
  border-color: var(--color-black);
  color: var(--color-black);
}

/* Borrower intro text section */
.borrower .intro-block {
  background: transparent;
}

/* Section heading override for borrower */
.borrower .products-section h2,
.borrower .pledge-section h2,
.borrower .news-section h2 {
  color: var(--color-black);
}

.borrower .pledge-section h2 {
  text-align: left;
}

/* ========================================
   BORROWER HOMEPAGE  (mirrors live /borrowers/)
   ======================================== */
body.borrower-home .hero--home {
  background: #A0EED1;
  min-height: 660px;
  padding: 75px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
}
body.borrower-home .hero--home .container { max-width: 1180px; padding: 0 20px; width: 100%; }
body.borrower-home .hero--home h1 {
  font-size: 92px;
  line-height: 92px;
  font-weight: 900;
  color: #000;
  min-height: 0;
  display: block;
  margin: 0 auto;
  max-width: 1140px;
  text-transform: capitalize;
}
body.borrower-home .hero--home .intro-shape { z-index: 2; }
body.borrower-home .hero--home .intro-shape--bottom svg { width: calc(122% + 1.3px); height: 40px; }

body.borrower-home .trustpilot-section { background: #F8F8F8; padding: 50px 0 25px; }
body.borrower-home .trustpilot-section .container { max-width: 1420px; padding: 0 10px; }

/* grey finance band: intro copy, heading, six cards, white curve at the bottom */
body.borrower-home .products-section { background: #F8F8F8; padding: 100px 0; position: relative; overflow: hidden; }
body.borrower-home .products-section .container { max-width: 1420px; padding: 0 10px; position: relative; z-index: 1; }
body.borrower-home .products-section .intro-shape--bottom svg { width: calc(106% + 1.3px); height: 31px; }
body.borrower-home .bh-intro {
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  color: #000;
  text-align: center;
  max-width: 840px;
  margin: 0 auto 80px;
  text-transform: none;
}
body.borrower-home .products-section h2 { font-size: 52px; line-height: 52px; font-weight: 900; color: #000; text-align: center; margin: 0 0 40px; }
body.borrower-home .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
body.borrower-home .product-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
body.borrower-home .product-card-image { width: 100%; height: auto; margin: 0 0 20px; display: flex; justify-content: center; overflow: visible; }
body.borrower-home .product-card-image img { width: 90%; height: 365px; object-fit: contain; }
body.borrower-home .product-card h3 { font-size: 28px; line-height: 28px; font-weight: 800; color: #000; margin: 0 0 10px; }
body.borrower-home .product-card p { font-size: 18px; line-height: 27px; font-weight: 400; color: #2E2E2E; margin: 0 0 20px; }
body.borrower-home .product-card .bh-btn { margin-top: auto; }

/* green pill with the black outline + offset shadow used on live */
body.borrower-home .bh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #67EEBC; color: #000;
  font-size: 16px; line-height: 1; font-weight: 800;
  padding: 12px 25px;
  border: 3px solid #000; border-radius: 50px;
  box-shadow: 3px 4px 0 #000;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.borrower-home .bh-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 2px 0 #000; color: #000; }

/* pledge tiles */
body.borrower-home .pledge-section { background: #fff; padding: 100px 0; }
body.borrower-home .pledge-section .container { max-width: 1420px; padding: 0 10px; }
body.borrower-home .pledge-section h2 { font-size: 52px; line-height: 52px; font-weight: 900; text-align: left; margin: 0 0 40px; text-transform: capitalize; }
body.borrower-home .pledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; grid-auto-rows: auto; }
body.borrower-home .pledge-card {
  background: #F8F8F8;
  border: 3px solid #000;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #000;
  padding: 25px 25px 0;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  min-height: 265px;
  overflow: visible;
  position: relative;
}
body.borrower-home .pledge-card-text { flex: 0 0 calc(65% - 13px); max-width: calc(65% - 13px); padding: 0 0 25px; }
body.borrower-home .pledge-card-image { flex: 0 0 calc(35% - 7px); max-width: none; min-width: 0; margin: 0; display: flex; justify-content: flex-start; align-items: flex-start; overflow: visible; align-self: flex-start; }
body.borrower-home .pledge-card-image img { width: auto; max-width: none; height: 234px; object-fit: contain; }
body.borrower-home .pledge-card h4 { font-size: 32px; line-height: 32px; font-weight: 800; color: #000; margin: 0 0 10px; text-transform: capitalize; }
body.borrower-home .pledge-card p { font-size: 16px; line-height: 24px; font-weight: 400; color: #1F1F1F; margin: 0; }
body.borrower-home .pledge-card--cta {
  background: #56317D;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 50px 50px 30px !important;   /* borrower-service.css forces 25px on this tile */
  min-height: 265px;
  overflow: hidden;
}
body.borrower-home .pledge-card--cta::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/borrower-home/Logo-Icon.webp') no-repeat 350px 0 / 50% auto;
  opacity: .3;
  pointer-events: none;
}
body.borrower-home .pledge-card--cta > * { position: relative; }
body.borrower-home .pledge-card--cta::after { display: none; }
body.borrower-home .pledge-card .pledge-cta-title { font-size: 32px; line-height: 1.2; font-weight: 700; color: #fff; margin: 0; text-transform: capitalize; }
body.borrower-home .pledge-card .pledge-cta-phone { font-size: 48px; line-height: 1.2; font-weight: 900; color: #fff; margin: 0; text-transform: capitalize; }
body.borrower-home .pledge-card .pledge-cta-phone a { color: #69ECBC; text-decoration: none; }

/* the clever choice: purple band, white asymmetrical curves, dots logo behind the illustration */
body.borrower-home .cta-section.bh-choice {
  background: #56317D;
  padding: 75px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
body.borrower-home .bh-choice::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/borrower-home/Logo-Icon.webp') no-repeat 29px 48px / 30% auto;
  opacity: .5;
  pointer-events: none;
}
body.borrower-home .bh-choice .intro-shape--top svg { width: calc(115% + 1.3px); height: 15px; }
body.borrower-home .bh-choice .intro-shape--bottom svg { height: 16px; }
body.borrower-home .bh-choice .container { max-width: 1420px; padding: 0 10px; position: relative; z-index: 1; }
body.borrower-home .bh-choice-inner { display: flex; gap: 60px; align-items: center; }
body.borrower-home .bh-choice-image { flex: 1 1 0; min-width: 0; }
body.borrower-home .bh-choice-image img { width: 100%; height: auto; display: block; }
body.borrower-home .bh-choice-text { flex: 1 1 0; min-width: 0; padding: 100px 0; }
body.borrower-home .bh-choice-text h2 { font-size: 52px; line-height: 52px; font-weight: 900; color: #fff; margin: 0 0 20px; text-transform: capitalize; }
body.borrower-home .bh-choice-text p { font-size: 18px; line-height: 27px; font-weight: 400; color: #fff; margin: 0 0 14.4px; opacity: 1; }
body.borrower-home .bh-choice-text .bh-btn { margin-top: 20px; }

/* latest news */
body.borrower-home .news-section { background: #fff; padding: 100px 0; }
body.borrower-home .news-section .container { max-width: 1420px; padding: 0 10px; }
body.borrower-home .news-section h2 { font-size: 52px; line-height: 52px; font-weight: 900; text-align: center; margin: 0 0 60px; }
body.borrower-home .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.borrower-home .news-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1px; background: transparent; box-shadow: none; transition: none; }
body.borrower-home .news-card:hover { transform: none; }
body.borrower-home .news-card-image { display: block; width: 100%; height: 250px; border: 5px solid #000; border-radius: 20px; overflow: hidden; background: #fff; margin: 0 0 20px; }
body.borrower-home .news-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.borrower-home .news-card .blog-meta { margin: 0; }
body.borrower-home .news-card h3 { font-size: 28px; line-height: 28px; font-weight: 700; color: #000; margin: 0 0 10px; }
body.borrower-home .news-card h3 a { color: inherit; text-decoration: none; }
body.borrower-home .news-card p { font-size: 16px; line-height: 24px; color: #000; margin: 0 0 14px; }
body.borrower-home .news-card .bh-btn { margin-bottom: 18px; }

@media (max-width: 1024px) {
  body.borrower-home .product-grid { grid-template-columns: repeat(2, 1fr); }
  body.borrower-home .pledge-grid { grid-template-columns: 1fr; }
  body.borrower-home .bh-choice-inner { flex-direction: column-reverse; gap: 40px; }
  body.borrower-home .bh-choice-text { padding: 0; }
  body.borrower-home .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body.borrower-home .hero--home { min-height: 450px; padding: 150px 0 100px; }
  body.borrower-home .hero--home h1 { font-size: 52px; line-height: 52px; }
  body.borrower-home .products-section { padding: 25px 0 50px; }
  body.borrower-home .products-section .container,
  body.borrower-home .news-section .container,
  body.borrower-home .trustpilot-section .container { padding: 0 20px; }
  body.borrower-home .bh-intro { font-size: 18px; line-height: 1.2; }
  body.borrower-home .products-section h2,
  body.borrower-home .pledge-section h2,
  body.borrower-home .bh-choice-text h2,
  body.borrower-home .news-section h2 { font-size: 42px; line-height: 42px; }
  body.borrower-home .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px !important; }
  body.borrower-home .product-card-image img { height: 135px; }
  body.borrower-home .product-card h3 { font-size: 20px; line-height: 20px; }
  body.borrower-home .product-card p { font-size: 14px; line-height: 1.2; }
  body.borrower-home .bh-btn { line-height: 1.2; }
  body.borrower-home .pledge-section { padding: 75px 0; }
  body.borrower-home .pledge-grid { gap: 20px; }
  body.borrower-home .pledge-card { flex-direction: column; padding: 25px; gap: 20px; min-height: 0; }
  body.borrower-home .pledge-card-text, body.borrower-home .pledge-card-image { flex: none; max-width: none; padding: 0; }
  body.borrower-home .pledge-card-image { justify-content: flex-start; }
  body.borrower-home .pledge-card-image img { height: 144px; }
  body.borrower-home .pledge-card h4 { font-size: 28px; line-height: 28px; }
  body.borrower-home .pledge-card p { line-height: 19.2px; }
  body.borrower-home .pledge-card--cta { padding: 52px 25px 30px !important; min-height: 0; }
  body.borrower-home .pledge-card .pledge-cta-title { font-size: 28px; }
  body.borrower-home .pledge-card .pledge-cta-phone { font-size: 38px; }
  body.borrower-home .cta-section.bh-choice { padding: 50px 0; }
  body.borrower-home .bh-choice-text p { font-size: 16px; line-height: 24px; }
  body.borrower-home .news-section { padding: 50px 0; }
  body.borrower-home .news-grid { grid-template-columns: 1fr; gap: 40px; }
  body.borrower-home .news-card--desktop,
  body.borrower-home .news-grid .news-card:nth-child(n+3) { display: none; }   /* live shows two posts on mobile */
}
