/* ============ Tokens ============ */
:root {
  --green-700: #0e5024;
  --green-600: #1f7a3a;
  --green-500: #2a9c4a;
  --green-50:  #eaf6ee;
  --gold:      #f3c44a;
  --warning:   #f7c52d;
  --ink:       #0f1d14;
  --ink-2:     #2c3a31;
  --muted:     #6b7a72;
  --line:      #e7ece8;
  --bg-soft:   #f5f8f5;
}

* { box-sizing: border-box; }

html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .section-title, .display-3 {
  font-family: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
  letter-spacing: -0.01em;
}
.section-title { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: .12em; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.letter-wide { letter-spacing: .12em; }

.text-success { color: var(--green-600) !important; }
.btn-success { background: var(--green-600); border-color: var(--green-600); }
.btn-success:hover { background: var(--green-700); border-color: var(--green-700); }
.bg-success { background: var(--green-600) !important; }

/* ============ Navbar ============ */
.navbar { border-bottom: 1px solid var(--line); }
.brand-name { font-weight: 800; font-size: 1.4rem; color: var(--ink); display: block; line-height: 1; letter-spacing: .03em; }
.brand-sub  { font-size: .65rem; letter-spacing: .25em; color: var(--muted); display: block; margin-top: 2px; }
.nav-link { color: var(--ink-2) !important; position: relative; }
.nav-link.active, .nav-link:hover { color: var(--green-600) !important; }
.nav-link.active::after {
  content: ""; position: absolute; left: 15%; right: 15%; bottom: -6px; height: 3px;
  background: var(--green-600); border-radius: 2px;
}
.helpline-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green-600);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.helpline-box small { font-size: .7rem; }

/* ============ Hero ============ */
.hero-section { background: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 500px at 35% 50%, rgba(31,122,58,.06), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500' opacity='.07'><g fill='%231f7a3a'><path d='M250 380 v-120 a40 40 0 0 1 80 0 v120z'/><path d='M340 380 v-150 a30 30 0 0 1 60 0 v150z'/><circle cx='290' cy='240' r='10'/><circle cx='370' cy='220' r='8'/><path d='M420 380 v-200 a50 50 0 0 1 100 0 v200z'/><circle cx='470' cy='170' r='12'/><path d='M540 380 v-130 a35 35 0 0 1 70 0 v130z'/></g></svg>") center/contain no-repeat;
  pointer-events: none;
}
.hero-section .display-3 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
.charge-box {
  background: var(--green-50);
  border: 1px dashed #b8d6c2;
  border-radius: 14px;
  padding: 16px 24px;
  display: inline-block;
  min-width: 360px;
}
.charge-box h2 { font-size: 2.6rem; }

/* Money bag illustration injected by CSS in hero space */
.hero-section .col-lg-7 { position: relative; }
.hero-section .col-lg-7::after {
  content: "";
  position: absolute;
  right: -40px; top: 80px;
  width: 320px; height: 320px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'><defs><radialGradient id='g' cx='50%25' cy='40%25' r='60%25'><stop offset='0%25' stop-color='%232b9c4a'/><stop offset='100%25' stop-color='%230e5024'/></radialGradient><linearGradient id='c' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23ffd84a'/><stop offset='1' stop-color='%23c98c12'/></linearGradient></defs><g><ellipse cx='160' cy='290' rx='110' ry='12' fill='%23000' opacity='.08'/><path d='M90 120 Q90 90 130 85 L190 85 Q230 90 230 120 L260 200 Q270 290 160 290 Q50 290 60 200 Z' fill='url(%23g)'/><path d='M110 70 Q160 55 210 70 L200 95 Q160 85 120 95 Z' fill='%2354391b'/><path d='M115 85 Q160 75 205 85' stroke='%23ffd84a' stroke-width='4' fill='none'/><circle cx='160' cy='195' r='42' fill='%23fff' opacity='.95'/><text x='160' y='215' font-family='Georgia' font-size='62' font-weight='700' text-anchor='middle' fill='%230e5024'>₹</text></g><g><circle cx='80' cy='250' r='14' fill='url(%23c)'/><circle cx='100' cy='265' r='14' fill='url(%23c)'/><circle cx='65' cy='270' r='14' fill='url(%23c)'/><circle cx='90' cy='282' r='14' fill='url(%23c)'/></g></svg>") center/contain no-repeat;
  z-index: 0; pointer-events: none;
  opacity: .95;
}
@media (max-width: 991px) { .hero-section .col-lg-7::after { display: none; } }

/* Apply form card */
.apply-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
}
.apply-header {
  background: linear-gradient(180deg, var(--green-600), var(--green-700));
}
.apply-card .form-control, .apply-card .form-select {
  border-left: 0;
  height: 48px;
}
.apply-card .input-group-text { border-right: 0; color: var(--muted); }
.apply-card .form-control:focus, .apply-card .form-select:focus {
  border-color: var(--green-600); box-shadow: none;
}

/* ============ Trust strip ============ */
.trust-strip { background: #fff; }
.trust-ico {
  font-size: 2rem; color: var(--green-600); flex: 0 0 auto;
}

/* ============ Section title with leaves ============ */
.section-title {
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.section-title::before, .section-title::after {
  content: ""; flex: 0 0 90px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-600));
  position: relative;
}
.section-title::after {
  background: linear-gradient(90deg, var(--green-600), transparent);
}

/* ============ Loan cards ============ */
.loan-card {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 28px 18px 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.loan-card .btn-learn,
.loan-card .btn-apply { margin-top: auto; }
.loan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15, 80, 36, .12); }
.loan-ico {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; color: #fff; font-size: 2rem;
}
.loan-card[data-color="green"]  .loan-ico { background: #2a9c4a; }
.loan-card[data-color="blue"]   .loan-ico { background: #1f6fb4; }
.loan-card[data-color="pink"]   .loan-ico { background: #e54b8a; }
.loan-card[data-color="orange"] .loan-ico { background: #ef8b1a; }
.loan-card[data-color="purple"] .loan-ico { background: #9c5fc7; }

.btn-apply {
  display: inline-block; padding: 8px 24px; border-radius: 6px;
  color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .05em;
}
.loan-card[data-color="green"]  .btn-apply { background: #2a9c4a; }
.loan-card[data-color="blue"]   .btn-apply { background: #1f6fb4; }
.loan-card[data-color="pink"]   .btn-apply { background: #e54b8a; }
.loan-card[data-color="orange"] .btn-apply { background: #ef8b1a; }
.loan-card[data-color="purple"] .btn-apply { background: #9c5fc7; }
.btn-apply:hover { color: #fff; filter: brightness(.92); }

/* ============ Services Swiper ============ */
.services-swiper { position: relative; padding: 0 8px; }
.services-swiper .swiper-wrapper { align-items: stretch; height: auto !important; }
.services-swiper .swiper-slide { display: flex; height: auto !important; }
.services-swiper .swiper-slide > .loan-card { width: 100%; }
.services-swiper .swiper-button-prev,
.services-swiper .swiper-button-next {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 18px rgba(15,80,36,.15);
  color: var(--green-600); top: 45%;
}
.services-swiper .swiper-button-prev::after,
.services-swiper .swiper-button-next::after { font-size: 16px; font-weight: 800; }
.services-swiper .swiper-button-prev { left: -6px; }
.services-swiper .swiper-button-next { right: -6px; }
.services-swiper .swiper-pagination-bullet {
  background: #c4d2c8; opacity: 1; width: 10px; height: 10px;
}
.services-swiper .swiper-pagination-bullet-active { background: var(--green-600); width: 24px; border-radius: 5px; }
@media (max-width: 767px) {
  .services-swiper .swiper-button-prev,
  .services-swiper .swiper-button-next { display: none; }
}

/* ============ Panel cards (process + emi) ============ */
.panel-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}
.step { flex: 1; max-width: 160px; position: relative; }
.step-circle {
  width: 84px; height: 84px; border-radius: 50%;
  background: #e2efe6; display: flex; align-items: center; justify-content: center;
  margin: 0 auto; font-size: 2rem; color: var(--green-600);
  border: 2px solid #d0e3d6;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-600); color: #fff; font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: -16px; position: relative; z-index: 2;
}
.step-arrow { font-size: 1.5rem; color: #c8d6cc; flex: 0 0 auto; }

/* EMI */
.emi-title { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
.form-range::-webkit-slider-thumb { background: var(--green-600); }
.form-range::-moz-range-thumb { background: var(--green-600); }

.emi-result {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.emi-result-head { background: var(--green-50); letter-spacing: .1em; }
.emi-result h2 { font-size: 1.9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* ============ Testimonials ============ */
.testi-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; height: 100%;
}
.stars { color: #f5b301; letter-spacing: 2px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .8rem;
}
.carousel-dots { gap: 6px; }
.carousel-dots button {
  width: 10px !important; height: 10px !important; border-radius: 50%; background: #c4d2c8 !important;
  border: none !important; opacity: 1 !important; margin: 0 !important;
}
.carousel-dots button.active { background: var(--green-600) !important; }

.faq-section { background: var(--bg-soft); }
.testi-section { background: #fff; }

/* ============ FAQ ============ */
.faq-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px !important;
  margin-bottom: 8px;
  background: var(--bg-soft);
  overflow: hidden;
}
.faq-accordion .accordion-button {
  background: var(--bg-soft); font-weight: 600; box-shadow: none; padding: 14px 16px;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: #fff; color: var(--green-700);
}
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231f7a3a'%3e%3cpath d='M3.204 5L8 10.481 12.796 5 3.204 5z'/%3e%3c/svg%3e");
}

/* ============ CTA banner ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 50%, #0f5c29 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-banner h2 { letter-spacing: .02em; }
.cta-banner .btn { transition: transform .15s, box-shadow .15s; font-size: .95rem !important; padding: .65rem 1.4rem !important; }
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25) !important; }

/* ============ Footer ============ */
.footer { background: #0f1d14; }
.footer-h { color: #fff; font-weight: 800; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: #c4cfc7; text-decoration: none; }
.footer-list a:hover { color: var(--gold); }
.social-icons a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1c2c22; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.social-icons a:hover { background: var(--green-600); color: #fff; }

/* ============ Floating buttons ============ */
.float-wa, .float-tel {
  position: fixed; right: 20px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  color: #fff !important; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.float-wa {
  bottom: 20px;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: pulseWa 1.8s infinite;
}
.float-tel {
  bottom: 90px;
  background: #1f7a3a;
  box-shadow: 0 8px 24px rgba(31,122,58,.45);
  animation: pulseTel 1.8s infinite;
}
@keyframes pulseWa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.85), 0 0 0 12px rgba(37,211,102,.1); }
}
@keyframes pulseTel {
  0%, 100% { box-shadow: 0 8px 24px rgba(31,122,58,.45); }
  50% { box-shadow: 0 8px 24px rgba(31,122,58,.85), 0 0 0 12px rgba(31,122,58,.1); }
}

/* ============ Responsive tweaks ============ */
@media (max-width: 991px) {
  .hero-section .col-lg-7::after { display: none; }
}
@media (max-width: 767px) {
  /* 3-step process — stack vertically */
  .panel-card .d-flex.justify-content-between {
    flex-direction: column;
    gap: 18px;
  }
  .step-arrow { display: none !important; }
  .step { max-width: 100%; }
  .step-circle { width: 70px; height: 70px; font-size: 1.6rem; }
  .step strong { font-size: .95rem; }

  /* EMI breakup — stack the two columns */
  .emi-result .row.g-3 > [class*="col-"] { width: 100%; flex: 0 0 100%; max-width: 100%; }
  .emi-result canvas { display: block; margin: 0 auto; }

  .charge-box { min-width: 100%; }
  .helpline-box { display: none !important; }
  .section-title::before, .section-title::after { flex-basis: 30px; }

  .hero-section h1.display-3 { font-size: 2.1rem; }
  .apply-card .form-control, .apply-card .form-select { height: 44px; }

  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner .btn { font-size: .85rem; padding: .8rem 1rem !important; }

  .page-hero h1 { font-size: 1.7rem; }
  .loan-hero { padding: 32px 0; }
  .loan-hero .icon-circle { width: 100px; height: 100px; font-size: 2.6rem; }

  .footer { text-align: center; }
  .footer .social-icons { justify-content: center; }
  .footer .d-flex.align-items-center.gap-2.mb-3 { justify-content: center; }
}
@media (max-width: 575px) {
  .nav-link.active::after { display: none; }
  .navbar-brand .brand-name { font-size: 1.1rem; }
  .navbar-brand .brand-sub { font-size: .55rem; letter-spacing: .2em; }
  .trust-strip .col-6 { font-size: .85rem; }
  .trust-ico { font-size: 1.6rem; }
  .loan-card { padding: 22px 14px 18px; }
  .loan-ico { width: 60px; height: 60px; font-size: 1.6rem; }
  .panel-card { padding: 20px 16px; }
  .emi-result h2 { font-size: 1.5rem; }
  .testi-card { padding: 14px; }
  .float-wa { width: 48px; height: 48px; font-size: 1.5rem; right: 14px; bottom: 14px; }
  .float-tel { width: 48px; height: 48px; font-size: 1.5rem; right: 14px; bottom: 76px; }
}
