/* =========================================
   THEME VARIABLES — Change theme color here
   ========================================= */
:root {
  --brand-primary: #0284c7; /* sky-600  ← change this ONE value */
  --brand-primary-h: #0369a1; /* sky-700  (hover) */
  --brand-primary-l: #e0f2fe; /* sky-100  (light bg) */
  --brand-primary-xl: #f0f9ff; /* sky-50   (extra light) */
  --brand-accent: #22d3ee; /* cyan-400 (CTA accent) */
  --brand-accent-h: #06b6d4; /* cyan-500 */
  --brand-dark: #0f172a; /* slate-900 */
  --brand-dark-2: #1e293b; /* slate-800 */
  --brand-dark-3: #334155; /* slate-700 */
  --font-heading: "Sora", sans-serif;
  --font-body: "Archivo", sans-serif;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  background: #f8fafc;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary-h);
}

html {
  scroll-behavior: smooth;
}

/* =========================================
   UTILITY: BRAND COLORS (use everywhere)
   ========================================= */
.bg-brand {
  background-color: var(--brand-primary) !important;
}
.bg-brand-h {
  background-color: var(--brand-primary-h) !important;
}
.bg-brand-l {
  background-color: var(--brand-primary-l) !important;
}
.text-brand {
  color: var(--brand-primary) !important;
}
.border-brand {
  border-color: var(--brand-primary) !important;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.top-bar {
  background-color: var(--brand-primary);
}

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 500;
  transition: color 0.25s;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.25s;
}
.nav-link:hover {
  color: var(--brand-primary);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--brand-primary);
}
.nav-link.active::after {
  width: 100%;
}

.call-btn {
  background-color: var(--brand-accent);
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.call-btn:hover {
  background-color: var(--brand-accent-h);
  transform: translateY(-1px);
}

/* =========================================
   MOBILE MENU
   ========================================= */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}
.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
body.menu-open {
  overflow: hidden;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
  background: url("https://img.freepik.com/premium-photo/financial-advisor-explaining-retirement-plans-couple-office_41097-15451.jpg?semt=ais_hybrid&w=740&q=80")
    center/cover no-repeat;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 132, 199, 0.75) 0%,
    rgba(15, 23, 42, 0.6) 100%
  );
  z-index: 1;
}
.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Slider */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.slider-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 1000%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active {
  background: var(--brand-accent);
  width: 28px;
  border-radius: 5px;
}

/* =========================================
   HERO BUTTONS
   ========================================= */
.btn-accent {
  background-color: var(--brand-accent);
  color: #0c1a2e;
  font-weight: 700;
  transition:
    background-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-accent:hover {
  background-color: var(--brand-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.35);
}
.btn-primary {
  background-color: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.btn-primary:hover {
  background-color: var(--brand-primary-h);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* =========================================
   SECTION CARDS
   ========================================= */
.card-hover {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.18);
}

/* =========================================
   STEPS TO APPLY
   ========================================= */
.steps-section {
  background: var(--brand-primary-xl);
}

.step-connector {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 40px;
  height: 2px;
  background: var(--brand-primary);
  transform: translateY(-50%);
  opacity: 0.35;
}

.step-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  border: 1px solid rgba(2, 132, 199, 0.1);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.2);
}
.step-card:hover .step-icon-wrap {
  background: var(--brand-primary);
}
.step-card:hover .step-icon-wrap svg {
  color: #fff;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--brand-primary-l);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background 0.3s;
}
.step-icon-wrap svg {
  color: var(--brand-primary);
  transition: color 0.3s;
}

/* Vertical timeline for mobile */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-primary), transparent);
  transform: translateX(-50%);
  opacity: 0.25;
}

/* =========================================
   SERVICE CARDS
   ========================================= */
.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid #f1f5f9;
  transition:
    transform 0.4s,
    box-shadow 0.4s;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(2, 132, 199, 0.15);
}

/* =========================================
   TESTIMONIAL CARDS
   ========================================= */
.testimonial-card {
  transition: transform 0.3s;
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--brand-primary);
}
.testimonial-card:hover {
  transform: scale(1.02);
}

/* =========================================
   PROGRESS BARS
   ========================================= */
.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  );
  border-radius: 10px;
  transition: width 0.8s ease;
}

/* =========================================
   STAT COUNTERS
   ========================================= */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.stat-counter {
  animation: countUp 0.8s ease-out forwards;
}

/* =========================================
   EMI CALCULATOR — SLIDER CUSTOM
   ========================================= */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #1e293b;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-accent);
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-accent);
  cursor: pointer;
  border: none;
}

/* Number input spin buttons */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* =========================================
   FORM INPUTS
   ========================================= */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
}

/* =========================================
   MODAL
   ========================================= */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#loanFormModal > div {
  animation: modalFadeIn 0.3s ease-out;
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}
a[href*="wa.me"] {
  animation: pulse 2.5s infinite;
}

/* =========================================
   BACK TO TOP
   ========================================= */
#backToTop {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
}
#backToTop:hover {
  background: var(--brand-primary-h);
  transform: translateY(-4px);
}

/* =========================================
   BANK LOGO CARDS
   ========================================= */
.bank-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: 88px;
}
.bank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
}

/* =========================================
   PAGE HERO (About / Contact pages)
   ========================================= */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--brand-dark) 0%,
    var(--brand-primary) 100%
  );
  color: #fff;
  padding: 120px 0 64px;
}

/* =========================================
   SUCCESS TOAST
   ========================================= */
#successToast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #16a34a;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 340px;
}
#successToast.show {
  transform: translateX(0);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}
.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
  .hero-section {
    padding-top: 90px;
    min-height: auto;
  }
  .slider-indicators {
    bottom: 20px;
  }
  #backToTop {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 16px;
  }
  .step-card {
    padding: 22px 16px;
  }
  .step-icon-wrap {
    width: 58px;
    height: 58px;
  }
}
@media (max-width: 640px) {
  .mobile-menu {
    width: 88%;
  }
  .hero-section {
    padding-bottom: 40px;
  }
  #loanFormModal > div {
    max-height: 95vh;
  }
  .page-hero {
    padding: 100px 0 48px;
  }
}

/* =========================================
   PRINT
   ========================================= */
@media print {
  header,
  footer,
  #backToTop,
  a[href*="wa.me"],
  #loanFormModal {
    display: none !important;
  }
}
