/* ---------------------------
   GLOBAL STYLING
---------------------------- */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}

a {
    text-decoration: none;
}

/* ============================
   FIX WHITE GAP ABOVE HERO
============================ */

/* Remove body white bleed */
html, body {
    margin: 0;
    padding: 0;
}



/* ---------------------------
   TOP BAR
---------------------------- */
.topbar {
    background: #101820;
    color: #fff;
    padding: 5px 0;
    font-size: 14px;
}

/* ---------------------------
   NAVBAR
---------------------------- */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.navbar-brand .brand-name {
    font-size: 20px;
    font-weight: 700;
}

.navbar-brand span.text-success {
    color: #35c24a !important;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #35c24a !important;
}


/* ---------------------------
   HERO SECTION (UPDATED)
---------------------------- */
.hero {
    position: relative;
    background-image: url("../img/hero.jpg");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: #fff;

    /* REMOVE full-screen */
    min-height: auto;

    padding-top: 140px;
    padding-bottom: 40px;
}


/* REMOVE overlay */
.hero::after {
    display: none;
}

.hero .container,
.hero .card {
    position: relative;
    z-index: 10;
}

/* Loan form card */
.hero .card {
    border: none;
    border-radius: 10px;
}

/* =====================================
   HERO PROFESSIONAL ANIMATION
   (Cinematic Zoom + Soft Lift)
===================================== */

/* Enable JS animations safely */
.js .hero {
    overflow: hidden;
}

/* Background image slow zoom */
.js .hero {
    animation: heroBgZoom 12s ease-out forwards;
}

/* Hero content animation */
.js .hero .container,
.js .hero .card {
    opacity: 0;
    transform: translateY(30px);
    animation: heroContentLift 1s ease-out forwards;
}

/* Delay card slightly for depth */
.js .hero .card {
    animation-delay: 0.35s;
}

/* =====================
   KEYFRAMES
===================== */

@keyframes heroBgZoom {
    from {
        background-size: 110%;
    }
    to {
        background-size: 100%;
    }
}

@keyframes heroContentLift {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ---------------------------
   ABOUT PREVIEW
---------------------------- */
section img.img-fluid {
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

/* =====================================
   ABOUT SECTION – CORPORATE SPLIT REVEAL
===================================== */

/* Safe default (hidden before reveal) */
.js .py-5 .col-md-6,
.js .py-5 .col-md-5 {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Text column – slide from left */
.js .py-5 .col-md-6 {
    transform: translateX(-40px);
}

/* Image column – slide from right */
.js .py-5 .col-md-5 {
    transform: translateX(40px);
}

/* Reveal when section is visible */
.js .py-5.show .col-md-6,
.js .py-5.show .col-md-5 {
    opacity: 1;
    transform: translateX(0);
}

/* Slight stagger for polish */
.js .py-5.show .col-md-6 { transition-delay: 0.15s; }
.js .py-5.show .col-md-5 { transition-delay: 0.3s; }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .js .py-5 .col-md-6,
    .js .py-5 .col-md-5 {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =====================================
   IMAGE PROFESSIONAL ANIMATION
   (Soft Focus Reveal)
===================================== */

/* Default state before reveal */
.js section img.img-fluid {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* When visible */
.js section.show img.img-fluid {
    opacity: 1;
    transform: scale(1);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .js section img.img-fluid {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Section layout */
.why-choose-us {
    padding: 60px 0;
    background: #ffffff;
}

/* Heading */
.choose-heading {
    text-align: center;
    margin-bottom: 40px;
}

.choose-heading h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.choose-heading p {
    color: #777;
    font-size: 14px;
}

/* Cards grid */
.choose-grid {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* Individual card */
.choose-card {
    position: relative;
    background: #fff;
    padding: 40px 20px 25px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.08);
    transition: .3s ease;
}

/* Card hover effect */
.choose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 16px 40px rgba(0,0,0,0.12);
}

/* Icons */
.choose-icon {
    width: 65px;
    height: 65px;
    background: #8cc63f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    margin: auto;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.choose-icon img {
    width: 32px;
    height: 32px;
}

/* Text inside cards */
.choose-card h3 {
    margin-top: 50px;
    font-size: 18px;
    font-weight: 700;
}

.choose-card p {
    color: #777;
    font-size: 14px;
    margin-top: 10px;
}

/* =====================================
   WHY CHOOSE US – PROFESSIONAL ANIMATION
   (Soft Rise + Stagger Reveal)
===================================== */

/* Safe default: hide only before reveal */
.js .choose-heading,
.js .choose-card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When section becomes visible */
.js .why-choose-us.show .choose-heading {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

.js .why-choose-us.show .choose-card {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger cards */
.js .choose-card:nth-child(1) { transition-delay: 0.15s; }
.js .choose-card:nth-child(2) { transition-delay: 0.3s; }
.js .choose-card:nth-child(3) { transition-delay: 0.45s; }
.js .choose-card:nth-child(4) { transition-delay: 0.6s; }
.js .choose-card:nth-child(5) { transition-delay: 0.75s; }
.js .choose-card:nth-child(6) { transition-delay: 0.9s; }

/* Optional: reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .js .choose-heading,
    .js .choose-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ================= SERVICES HERO ================= */

.services-page {
  padding-top: 0 !important;
  overflow-x: hidden; /* IMPORTANT: prevents mobile grey gap */
}

/* remove bootstrap container side effects ONLY for hero */
.services-page > .container {
  padding-left: 0;
  padding-right: 0;
}

/* restore padding for content below hero */
.services-page > .container > :not(h2):not(p) {
  padding-left: 15px;
  padding-right: 15px;
}

/* ================= HERO TITLE ================= */

.services-page h2 {
  position: relative;

  /* full width edge-to-edge */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;

  /* height */
 padding: 240px 100px 260px;


  /* background */
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("../img/home.jpg") center center / cover no-repeat;

  color: #ffffff;
  font-size: 46px;
  font-weight: 700;
  text-align: center;

  z-index: 1;

  /* animations */
  animation:
    heroZoom 14s ease-in-out infinite alternate,
    titleFade 1.2s ease-out forwards;
}

/* ================= HERO SUBTITLE ================= */

.services-page h2 + p {
  max-width: 760px;

  /* pull subtitle ONTO hero */
  margin: -90px auto 60px;

  padding: 14px 22px;

  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;

  font-size: 16px;
  text-align: center;
  border-radius: 6px;

  position: relative;
  z-index: 2;

  opacity: 0;
  animation: subtitleFade 1.4s ease-out forwards;
  animation-delay: 0.5s;
}

/* ================= ANIMATIONS ================= */

@keyframes heroZoom {
  from {
    background-size: 100%;
  }
  to {
    background-size: 108%;
  }
}

@keyframes titleFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtitleFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .services-page h2 {
    padding: 130px 16px 100px;
    font-size: 36px;
  }

  .services-page h2 + p {
    margin-top: -70px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .services-page h2 {
    padding: 110px 14px 90px;
    font-size: 26px;
  }

  .services-page h2 + p {
    margin-top: -60px;
    font-size: 14px;
  }
}






/* ================= SERVICES PAGE HEADER BACKGROUND ================= */


/* ---------------------------
   SERVICE CARDS
---------------------------- */
.service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}


/* =============================
   LOAN CATEGORY SINGLE GRID
============================= */
.loan-heading {
    text-align: center;
    padding: 60px 20px 40px;
}

.loan-heading h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.loan-heading p {
    font-size: 14px;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}


/* =============================
   LOAN GRID LAYOUT
============================= */
.loan-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
}


/* =============================
   LOAN BOX
============================= */
.loan-box {
    position: relative;
    height: 310px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}


/* Overlay */
.loan-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: .35s ease;
}

.loan-box:hover::before {
    background: rgba(0,0,0,0.60);
}


/* Loan info */
.loan-info {
    position: absolute;
    bottom: 25px;
    left: 20px;
    color: #ffffff;
    z-index: 2;
}


/* Title */
.loan-info h4 {
    margin: 0 0 10px;
}


/* Number styling */
.loan-info span {
    color: #9dff00;
    margin-right: 5px;
}


/* =============================
   BUTTON (HOVER ANIMATION)
============================= */
.loan-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;

    opacity: 0;
    transform: translateY(30px);
    transition: all .35s ease;
}

.loan-box:hover .loan-btn {
    opacity: 1;
    transform: translateY(0);
    border-color: #9dff00 !important;
    color: #9dff00 !important;
}


/* =============================
   RESPONSIVE BREAKPOINTS
============================= */

/* MOBILE */
@media (max-width: 576px) {

    .loan-row {
        grid-template-columns: 1fr !important;
    }

    .loan-box {
        height: 220px;
    }

    .loan-heading h2 {
        font-size: 26px;
    }

    .loan-heading p {
        font-size: 13px;
    }

    .loan-info h4 {
        font-size: 16px;
    }

    .loan-btn {
        opacity: 1;              /* show button on mobile */
        transform: translateY(0);
    }
}


/* TABLET */
@media (max-width: 768px) {

    .loan-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .loan-box {
        height: 260px;
    }

    .loan-heading h2 {
        font-size: 30px;
    }
}


/* SMALL LAPTOP */
@media (max-width: 992px) {

    .loan-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .loan-box {
        height: 280px;
    }
}


/* LARGE DESKTOP */
@media (min-width: 993px) {

    .loan-row {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}




/* =========================
   WHY CHOOSE US SECTION
========================= */
.why-choose-us {
    padding: 70px 20px;
    background: #ffffff;
}

/* Heading */
.choose-heading {
    text-align: center;
    margin-bottom: 50px;
}

.choose-heading h2 {
    font-size: 36px;
    font-weight: 700;
}

.choose-heading p {
    font-size: 14px;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================
   GRID (DEFAULT = DESKTOP)
========================= */
.choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.choose-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.choose-card:hover {
    transform: translateY(-6px);
}

/* Icon */
.choose-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #8cc63f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choose-icon img {
    width: 36px;
    height: 36px;
}

/* =========================
   RESPONSIVE (CORRECT ORDER)
========================= */

/* TABLET */
@media (max-width: 768px) {
    .choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .choose-grid {
        grid-template-columns: 1fr;
    }

    .choose-heading h2 {
        font-size: 26px;
    }
}

/* ==============================
   TESTIMONIAL SECTION (NO SLIDER)
============================== */

.testimonials-section {
    padding: 120px 0 80px;
    background: #021838;
    text-align: center;
}

/* Heading */
.testimonial-heading h2 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
}

.testimonial-heading p {
    font-size: 15px;
    color: #cfd6e4;
    margin-top: 10px;
    margin-bottom: 60px;
}
/* ==============================
   TESTIMONIAL SECTION (NO SLIDER – FINAL)
============================== */

.testimonials-section {
    padding: 120px 0 80px;
    background: #021838;
    text-align: center;
}

/* Heading */
.testimonial-heading h2 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
}

.testimonial-heading p {
    font-size: 15px;
    color: #cfd6e4;
    margin-top: 10px;
    margin-bottom: 60px;
}

/* ==============================
   KILL SLIDER BEHAVIOR COMPLETELY
============================== */
.testimonial-slider {
    overflow: visible !important;
    transform: none !important;
}

/* ==============================
   TESTIMONIAL GRID
============================== */
.testimonial-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
    transform: none !important;
}

/* ==============================
   TESTIMONIAL CARD
============================== */
.testimonial-card {
    background: #ffffff;
    padding: 65px 22px 30px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
    text-align: center;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

/* ==============================
   AVATAR
============================== */
.testimonial-img {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ==============================
   TEXT
============================== */
.testimonial-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-top: 10px;
}

.testimonial-card .role {
    font-size: 13px;
    color: #8cc63f;
    font-weight: 600;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ==============================
   RESPONSIVE
============================== */

/* Tablet */
@media (max-width: 1024px) {
    .testimonial-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile – ONE CARD ONLY */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 70px 0 50px;
    }

    .testimonial-wrapper {
        grid-template-columns: 1fr;
    }
}








/* ================================
   COUNTERS SECTION
=================================== */

.counters-section {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

/* Counter box */
.counter-box img {
    width: 55px;
    margin-bottom: 10px;
}

.counter-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.counter-box p {
    font-size: 14px;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {

    .testimonial-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .counters-section {
        flex-direction: column;
        gap: 35px;
    }
}

/* =====================================
   COUNTERS – PROFESSIONAL ANIMATION
   (Confidence Rise + Soft Scale)
===================================== */

/* Initial hidden state */
.js .counter-box {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reveal on scroll */
.js .counters-section.show .counter-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger timing */
.js .counter-box:nth-child(1) { transition-delay: 0.15s; }
.js .counter-box:nth-child(2) { transition-delay: 0.3s; }
.js .counter-box:nth-child(3) { transition-delay: 0.45s; }
.js .counter-box:nth-child(4) { transition-delay: 0.6s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .js .counter-box {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ---------------------------
   FOOTER
---------------------------- */
.site-footer {
    background: #16233E;
    color: #d5e1f7;
    font-size: 14px;
}

.site-footer h5, 
.site-footer h6 {
    color: #fff;
}

.site-footer a {
    color: #9fb6d9;
}

.site-footer a:hover {
    color: #fff;
}

/* Footer bottom */
.site-footer hr {
    border-color: #2c3d60;
}

/* ---------------------------
   RESPONSIVE ADJUSTMENTS
---------------------------- */
@media (max-width: 768px) {

    .hero {
       padding: 0 0 40px;
        text-align: center;
    }

    .hero .card {
        margin-top: 20px;
    }

    .service-card {
        margin-bottom: 15px;
    }
}


/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 90px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  line-height: 56px;
  z-index: 9999;
}

/* Call Button */
.call-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 26px;
  line-height: 56px;
  z-index: 9999;
}

/* Force icon color */
.whatsapp-float i,
.call-float i {
  color: #ffffff !important;
}


.contact-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.popup-box {
  background: #fff;
  width: 320px;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.popup-box h4 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 600;
}

.popup-box p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.popup-actions {
  display: flex;
  gap: 15px;
}

.popup-btn {
  flex: 1;
  padding: 14px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.popup-btn.call {
  background: #007bff;
}

.popup-btn.whatsapp {
  background: #25D366;
}

.popup-btn:hover {
  opacity: 0.9;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}



