/* =====================================================
   ECOFIN CREDIT SOUHARDA SAHAKARI — STYLE SHEET
   Tokens: deep cooperative blue, warm terracotta-orange
   accent, temple-gold for the blessings signature, and
   a soft beige canvas throughout.
===================================================== */
:root{
  --navy: #0a2f5c;
  --navy-deep: #072143;
  --orange: #e67e22;
  --orange-deep: #c8690f;
  --gold: #c99a3c;
  --beige: #f8f1e9;
  --beige-card: #fffdf8;
  --ink: #23292f;
  --ink-soft: #5b6570;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-kn: "Noto Sans Kannada", "Inter", sans-serif;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(10,47,92,0.08);
  --shadow-card: 0 14px 34px rgba(10,47,92,0.10);
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--beige);
  padding-top: 78px;
}
.eyebrow{
  font-family: var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 0.6rem;
}
.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.lead-text{
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}
section{ padding: 5.5rem 0; }
/* =========== NAVBAR =========== */
.ecofin-navbar{
  background: rgba(248,241,233,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(10,47,92,0.08);
  padding: 0.55rem 0;
  transition: box-shadow .3s ease, background .3s ease;
  z-index: 1030;
}
.brand-logo{
  height: 45px;
  width: auto;
  object-fit: contain;
}
.brand-name{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.15;
}
.navbar-nav .nav-link{
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1rem !important;
  position: relative;
}
.navbar-nav .nav-link::after{
  content:"";
  position:absolute;
  left: 1rem; right: 1rem; bottom: 0.3rem;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar-nav .nav-link:hover::after{ transform: scaleX(1); }
.btn-staff-login{
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  border: 2px solid var(--navy);
  transition: all .25s ease;
}
.btn-staff-login:hover{
  background: transparent;
  color: var(--navy);
}
.btn-members-login{
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  border: 2px solid var(--navy);
  transition: all .25s ease;
}
.btn-members-login:hover{
  background: var(--navy);
  color: #fff;
}
/* =========== HERO =========== */
.hero-section{
  height: 100vh;
  min-height: 520px;
  position: relative;
}
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item{
  height: 100%;
}
.hero-slide{
  width: 100%;
  height: 100%;
  background-color: var(--beige);
  background-size: contain; /* No stretching */
  background-position: center;
  background-repeat: no-repeat;
}
.carousel-indicators [data-bs-target]{
  background-color: var(--navy);
}
.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.scroll-cue{
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--navy);
  font-size: 1.6rem;
  background: rgba(255,255,255,0.7);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2s ease-in-out infinite;
  z-index: 5;
}
@keyframes bob{
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%{ transform: translateX(-50%) translateY(8px); }
}
/* =========== BLESSINGS (signature element) =========== */
.blessings-section{
  background:
    radial-gradient(ellipse at top, rgba(201,154,60,0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: #f3ead9;
  padding: 5rem 0 5.5rem;
}
.blessings-section .eyebrow{ color: var(--gold); }
.blessings-section .section-title{ color: #fff; }
.blessing-frame{
  width: 190px;
  height: 190px;
  border-radius: 50%;
  padding: 6px;
  margin: 1.75rem 0;
  background: conic-gradient(from 180deg, var(--gold), #f3d98a, var(--gold));
  box-shadow: 0 0 0 6px rgba(201,154,60,0.12), 0 20px 40px rgba(0,0,0,0.35);
  position: relative;
}
.blessing-frame::after{
  content:"";
  position:absolute; inset:-14px;
  border-radius: 50%;
  border: 1px solid rgba(201,154,60,0.35);
}
.blessing-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--navy-deep);
}
.blessing-text-en{
  max-width: 720px;
  margin: 0 auto 1rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #e9dfc9;
}
.blessing-text-kn{
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-kn);
  font-size: 1.02rem;
  line-height: 2;
  color: #d8cba4;
}
/* =========== ABOUT =========== */
.stat-card{
  background: var(--beige-card);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
  border-left: 4px solid var(--orange);
}
.stat-num{
  display:block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
}
.stat-label{
  display:block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}
/* =========== CHAIRMAN =========== */
.chairman-section{ background: var(--beige-card); }
.chairman-text{
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.chairman-signoff{
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  margin-top: 1.4rem;
}
.chairman-signoff span{
  display:block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chairman-photo{
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 6px solid #fff;
}
/* =========== LOANS =========== */
.loan-card{
  background: var(--beige-card);
  border-radius: var(--radius);
  padding: 2.1rem 1.6rem;
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  border-top: 4px solid transparent;
}
.loan-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-top-color: var(--orange);
}
.loan-icon{
  font-size: 2.1rem;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.loan-card h3{
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.loan-card p{
  color: var(--ink-soft);
  font-size: 0.92rem;
  min-height: 60px;
}
.btn-loan-apply{
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 1.3rem;
  margin-top: 0.6rem;
  transition: all .2s ease;
}
.btn-loan-apply:hover{
  background: var(--navy);
  color: #fff;
}
/* =========== APPLY FORM =========== */
.apply-section{ background: var(--beige-card); }
.apply-form{
  background: var(--beige);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.apply-form .form-label{
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}
.apply-form .form-control,
.apply-form .form-select{
  border-radius: 8px;
  border: 1px solid #d9cdb8;
  padding: 0.6rem 0.8rem;
}
.apply-form .form-control:focus,
.apply-form .form-select:focus{
  border-color: var(--orange);
  box-shadow: 0 0 0 0.2rem rgba(230,126,34,0.18);
}
.btn-orange{
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 2rem;
  transition: background .2s ease;
}
.btn-orange:hover{ background: var(--orange-deep); color:#fff; }
.form-success{
  margin-top: 1rem;
  color: #1e7a4c;
  font-weight: 600;
}
/* =========== DEPOSITS TABLE =========== */
.fd-table-wrap{
  background: var(--beige-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.fd-table{ margin-bottom: 0; }
.fd-table thead{
  background: var(--navy);
  color: #fff;
}
.fd-table thead th{
  font-weight: 600;
  padding: 1rem;
  border: none;
}
.fd-table tbody td{
  padding: 0.9rem 1rem;
  color: var(--ink);
}
.fd-table tbody tr:nth-child(even){ background: rgba(230,126,34,0.05); }
.fd-note{
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 1rem;
}
/* =========== CALCULATOR =========== */
.calculator-section{ background: var(--beige); }
.calc-card{
  max-width: 900px;
  background: var(--beige-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.calc-tabs{
  justify-content: center;
  gap: 0.6rem;
}
.calc-tabs .nav-link{
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  padding: 0.5rem 1.6rem;
  border: 2px solid var(--navy);
}
.calc-tabs .nav-link.active{
  background: var(--navy);
  color: #fff;
}
.form-range::-webkit-slider-thumb{ background: var(--orange); }
.form-range::-moz-range-thumb{ background: var(--orange); }
.form-range::-webkit-slider-runnable-track{ background: #e3d6bf; }
.calc-result{
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.result-label{
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cfe0f2;
  margin-bottom: 0.2rem;
}
.result-value{
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 1rem;
}
.result-breakup div{
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
}
.result-breakup span{ color: #cfe0f2; }
/* =========== DOWNLOADS =========== */
.downloads-section{ background: var(--beige-card); }
/* =========== BOARD OF DIRECTORS =========== */
.board-card{
  background: var(--beige-card);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.board-card i{
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  display: block;
}
.board-card span{
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
  display: block;
}
.board-card small{
  display: block;
  color: var(--orange-deep);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}
/* =========== LEADERSHIP =========== */
.leadership-section{ background: var(--beige-card); }
.leader-card{
  background: var(--beige);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.leader-card img{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}
.leader-card h3{
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.leader-card p{
  color: var(--orange-deep);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}
/* =========== CONTACT =========== */
.contact-info-card{
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
}
.contact-item{
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
  align-items: flex-start;
}
.contact-item:last-child{ margin-bottom: 0; }
.contact-item i{
  font-size: 1.3rem;
  color: var(--orange);
  margin-top: 0.2rem;
}
.contact-item h4{
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.contact-item p{ margin: 0; color: #d9e3ee; }
.contact-item a{ color: #fff; text-decoration: none; }
.contact-item a:hover{ color: var(--orange); }
.map-wrap{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 320px;
  height: 100%;
}
/* =========== FOOTER =========== */
.site-footer{
  background: var(--navy-deep);
  color: #d9e3ee;
  padding: 2.2rem 0;
  font-size: 0.9rem;
}
.footer-logo{ height: 40px; object-fit: contain; }
/* =========== RESPONSIVE =========== */
@media (max-width: 991.98px){
  body{ padding-top: 68px; }
  .navbar-nav{ text-align: center; padding: 1rem 0; }
  .nav-login-buttons{ justify-content: center; }
  section{ padding: 3.5rem 0; }
  .chairman-photo{ margin-bottom: 1.5rem; }
}
