/* ========================================
   SHARED COMPONENTS - Clever Lending
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 85px 0 125px;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.hero--home {
  min-height: 660px;
  text-align: center;
}

.hero--page {
  padding: 120px 0 80px;
}

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

.hero-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.05;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.hero h1 .accent {
  color: var(--color-green-accent);
  font-size: 140px;
  font-weight: 900;
  display: block;
}

.hero p {
  font-size: var(--font-size-md);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero--home p {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero--home .hero-actions {
  justify-content: center;
}

.hero-arrow {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: auto;
  z-index: 1;
  opacity: 0.6;
}

/* ========================================
   PRODUCT / SERVICE CARDS
   ======================================== */
.products-section {
  padding: var(--space-3xl) 0 calc(var(--space-3xl) - 50px);
}

.products-section h2 {
  text-align: center;
  font-size: 52px;
  font-weight: 900;
  margin-bottom: var(--space-2xl);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl) var(--space-lg);
}

.product-card {
  text-align: left;
}

.product-card-image {
  width: 375px;
  height: 375px;
  margin: 0 0 var(--space-md);
  border-radius: 0;
  overflow: visible;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.product-card p {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.product-card .btn {
  font-size: 16px;
  font-weight: 800;
  background: #67EEBC;
  color: #000000;
  border-color: #67EEBC;
}

.product-card .btn:hover {
  background: #50d9a0;
  border-color: #50d9a0;
}

/* ========================================
   INTRO / TEXT BLOCK
   ======================================== */
.intro-block {
  text-align: center;
  max-width: 1050px;
  margin: 0 auto;
  padding: var(--space-3xl) 20px;
}

.intro-block p {
  font-size: 25px;
  font-weight: 600;
  line-height: 38px;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section--wave {
  clip-path: ellipse(75% 100% at 50% 100%);
  padding-top: var(--space-3xl);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}

.cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   PLEDGE SECTION
   ======================================== */
.pledge-section {
  padding: var(--space-3xl) 0;
  background: #ffffff;
}

.pledge-section h2 {
  text-align: center;
  font-size: 52px;
  font-weight: 900;
  margin-bottom: var(--space-2xl);
}

.pledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  grid-auto-rows: 1fr;
}

.pledge-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 20px 0 20px 5px;
  display: flex;
  flex-direction: row-reverse;
  gap: 0;
  align-items: flex-start;
  overflow: visible;
}

.pledge-card > div:not(.pledge-card-image) {
  flex: 0 0 65%;
  max-width: 65%;
  padding-right: var(--space-md);
}

.pledge-card-image {
  flex: 0 0 35%;
  max-width: 35%;
  border-radius: 0;
  overflow: visible;
  margin-right: -30px;
  align-self: center;
}

.pledge-card-image img {
  width: 95%;
  height: auto;
  object-fit: contain;
}

.pledge-card--last .pledge-card-image img {
  width: 76%;
}

.pledge-card h4 {
  font-family: "soleil", sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.pledge-card p {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Borrower pledge special - contact card */
.pledge-card--cta {
  background: var(--color-mint);
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

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

.pledge-card--cta .phone-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-purple);
  margin-top: var(--space-sm);
}

/* ========================================
   NEWS / INSIGHTS SECTION
   ======================================== */
.news-section {
  padding: var(--space-3xl) 0;
  background: #ffffff;
}

.news-section h2 {
  text-align: center;
  font-size: 52px;
  font-weight: 900;
  margin-bottom: var(--space-2xl);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.news-card {
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: transform var(--transition-base);
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card-image {
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  border: 5px solid #000000;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: var(--space-md) 0;
}

.news-card-date {
  font-size: 16px;
  color: var(--color-purple);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-date::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B2870' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
}

.news-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
  color: #000000;
}

.news-card p {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.news-card .btn {
  font-weight: 700;
}

/* ========================================
   PAGE HERO (Product/Service pages)
   ======================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
}

.page-hero-content {
  flex: 1;
  max-width: 600px;
}

.page-hero-content .hero-label {
  margin-bottom: var(--space-xs);
}

.page-hero-content h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
}

.page-hero-content p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.page-hero-graphic {
  flex-shrink: 0;
  width: 300px;
}

.page-hero-graphic img {
  width: 100%;
  height: auto;
}

/* ========================================
   "WHAT MAKES US CLEVER" SECTION
   ======================================== */
.clever-section {
  padding: var(--space-3xl) 0;
}

.clever-section .container {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
}

.clever-section-image {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  /* border removed */
}

.clever-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clever-section-content {
  flex: 1;
}

.clever-section-content h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.clever-section-content p {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

/* ========================================
   CRITERIA / CHECKLIST
   ======================================== */
.criteria-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-light);
}

.criteria-section h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-2xl);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs) var(--space-2xl);
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}

.criteria-item::before {
  content: '\2713';
  color: var(--color-green-accent);
  font-weight: 700;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
  line-height: 1.4;
}

.criteria-item span {
  font-size: var(--font-size-base);
  line-height: 1.5;
}

/* ========================================
   PROCESS STEPS
   ======================================== */
.process-section {
  padding: var(--space-3xl) 0;
}

.process-section h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-xs);
}

.process-section > .container > p {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  max-width: 800px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process-step {
  background: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  position: relative;
}

.process-step h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-purple);
}

.process-step p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ========================================
   WHAT TO HAVE READY
   ======================================== */
.ready-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-light);
}

.ready-section h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-xs);
}

.ready-section > .container > p {
  margin-bottom: var(--space-2xl);
  color: var(--color-text-light);
}

.ready-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.ready-col h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-black);
}

.ready-col ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.ready-col ul li::before {
  content: '\2022';
  font-weight: 700;
  flex-shrink: 0;
}

/* ========================================
   CONTACT / ENQUIRY FORM
   ======================================== */
.enquiry-section {
  padding: var(--space-3xl) 0;
}

.enquiry-section--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.enquiry-section h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-xs);
}

.enquiry-section .section-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-light);
}

.enquiry-section--dark .section-desc {
  color: rgba(255,255,255,0.7);
}

.enquiry-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.enquiry-form {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.enquiry-form .form-group {
  display: flex;
  flex-direction: column;
}

.enquiry-form .form-group--full {
  grid-column: 1 / -1;
}

.enquiry-form label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 6px;
}

.enquiry-form input,
.enquiry-form textarea {
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
  color: var(--color-text);
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--color-purple);
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 100px;
}

.enquiry-form .form-submit {
  grid-column: 1 / -1;
}

/* Trustpilot inline badge in form */
.form-trustpilot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-section {
  padding: var(--space-3xl) 0;
}

.faq-section h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-2xl);
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-size: var(--font-size-md);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-purple);
}

.faq-question::after {
  content: '+';
  font-size: var(--font-size-xl);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: var(--space-sm);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer-inner {
  padding: 0 0 var(--space-md);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text-light);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.team-card {
  text-align: center;
}

.team-card-image {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  /* border removed */
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: var(--font-size-sm);
  color: #000000;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.team-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ========================================
   LARGE LOANS TABLE
   ======================================== */
.loan-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.loan-table th,
.loan-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid #eee;
}

.loan-table th {
  font-weight: 700;
  background: var(--color-bg-light);
}

.loan-table td {
  font-size: var(--font-size-base);
}

/* Case results on the service pages (inc/sections.php) */
.cl-cases { padding: 72px 0; background: #fff; }
.cl-cases--alt { background: #F8F8F8; }
.cl-cases h2 { text-align: center; font-size: 44px; line-height: 1.15; font-weight: 900; color: #000; margin: 0 0 2.5rem; }
.cl-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cl-case { display: flex; flex-direction: column; background: #F8F8F8; border-radius: 16px; padding: 28px; }
.cl-case h3 { font-size: 20px; line-height: 1.25; font-weight: 800; color: #000; margin: 0 0 10px; }
.cl-case h3 a { color: inherit; text-decoration: none; }
.cl-case h3 a:hover { color: #56317D; }
.cl-case p { font-size: 16px; line-height: 1.6; color: #333; margin: 0; flex: 1; }
.cl-case-more { margin-top: 16px; font-weight: 700; color: #56317D; text-decoration: underline; }
.cl-cases-note { text-align: center; font-size: 14px; color: #555; margin: 20px 0 0; }
@media (max-width: 960px) { .cl-cases-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .cl-cases { padding: 56px 0; } .cl-cases h2 { font-size: 32px; } }

/* Links to the borrower service pages (inc/links.php) */
.cl-related { padding: 64px 0; background: #F8F8F8; }
.cl-related h2 { text-align: center; font-size: 40px; line-height: 1.15; font-weight: 900; color: #000; margin: 0 0 2rem; }
.cl-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cl-related-card { display: block; background: #fff; border: 1px solid #e7e3ef; border-radius: 14px; padding: 20px 22px; text-decoration: none; color: #000; transition: border-color .15s, transform .15s; }
.cl-related-card:hover { border-color: #56317D; transform: translateY(-2px); }
.cl-related-card strong { display: block; font-size: 18px; color: #56317D; margin-bottom: 4px; }
.cl-related-card span { display: block; font-size: 15px; line-height: 1.5; color: #333; }
.cl-post-service { margin: 2rem 0; padding: 18px 22px; background: #F5F1FA; border-left: 4px solid #56317D; border-radius: 10px; font-size: 16px; line-height: 1.6; }
.cl-post-service a, .post-article-content .cl-post-service a { color: #56317D !important; font-weight: 700; text-decoration: underline; }
.cl-broker-note { background: #F5F1FA; padding: 14px 0; }
.cl-broker-note p { margin: 0; font-size: 15px; line-height: 1.5; color: #000; text-align: center; }
.cl-broker-note a { color: #56317D; font-weight: 700; text-decoration: underline; }
@media (max-width: 768px) { .cl-related { padding: 48px 0; } .cl-related h2 { font-size: 30px; } }

/* Content links on the borrower layout. The site link colour is mint, which is unreadable on white. */
.post-article-content a, .entry-title a, .entry-summary a, .case-study-body a, .navigation a, .nav-links a { color: #56317D !important; }
.post-article-content a { text-decoration: underline; text-underline-offset: 2px; }
.post-article-content a:hover, .entry-title a:hover { color: #3f2460 !important; }
