/**
 * Kaizen Hilfe — Customizations
 * Overrides and additions to the Finbest template
 */

/* ─── No capitalize/uppercase on nav & titles ───────────────────────────── */
.tp-main-menu ul li a,
.tp-main-menu ul li > a,
.tp-main-menu ul li .has-homemenu .homemenu-btn .menu-btn,
.tp-main-menu-mobile ul li .tp-submenu .homemenu-btn .menu-btn,
.tp-offcanvas-menu ul li a,
.tp-header-btn a,
.tp-btn,
.tp-btn-white,
.tp-section-title-pre,
.tp-hero-title,
.tp-hero-title-2,
.tp-hero-title-3,
.tp-hero-subtitle,
.tp-hero-subtitle-2,
.tp-hero-subtitle-3,
.tp-service-title-2,
.tp-counter-title-2 {
  text-transform: none;
}

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --tp-theme-primary: #00A3C3;
  --tp-theme-secondary: #16243E;
  --tp-theme-dark: #0d1b2e;
  --tp-theme-gradient: linear-gradient(90deg, #004D6E 0%, #00ACCC 100%);
  --tp-font-body: 'Kumbh Sans', sans-serif;
  --tp-font-heading: 'Jost', sans-serif;
}

/* ─── Body ────────────────────────────────────────────────────────────────  */
html {
  overflow-x: hidden;
}
body {
  font-family: var(--tp-font-body);
  color: #555;
  overflow-x: hidden;
}

/* ─── Preloader ─────────────────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
.preloader-inner img {
  height: 60px;
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  from { opacity: 0.5; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* ─── Offcanvas ─────────────────────────────────────────────────────────── */
#offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#offcanvas-overlay.show {
  opacity: 1;
  pointer-events: all;
}
#offcanvas-sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: 9999;
  padding: 30px 25px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: -5px 0 30px rgba(0,0,0,0.15);
}
#offcanvas-sidebar.open {
  right: 0;
}
body.offcanvas-open { overflow: hidden; }
#offcanvas-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  padding: 5px;
}
.tp-offcanvas-menu ul { list-style: none; padding: 0; margin: 0; }
.tp-offcanvas-menu ul li { border-bottom: 1px solid #f0f0f0; }
.tp-offcanvas-menu ul li a {
  display: block;
  padding: 12px 0;
  color: #333;
  font-family: var(--tp-font-heading);
  font-weight: 500;
  text-decoration: none;
}
.tp-offcanvas-menu ul li a:hover { color: var(--tp-theme-primary); }
.tp-offcanvas-contact a { color: #555; text-decoration: none; font-size: 14px; }
.tp-offcanvas-contact a:hover { color: var(--tp-theme-primary); }

/* ─── Header Language Switcher ──────────────────────────────────────────── */
.tp-header-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tp-header-lang a {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.tp-header-lang a:hover,
.tp-header-lang a.active { opacity: 1; }
.tp-header-lang img { border-radius: 2px; }

/* ─── Header Top Info ────────────────────────────────────────────────────  */
.tp-header-top-info a {
  color: var(--tp-theme-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.tp-header-top-info a:hover { color: var(--tp-theme-primary); }
.tp-header-top-info a span { margin-right: 6px; color: var(--tp-theme-primary); }
.tp-header-top-info .me-20 { margin-right: 20px; }

/* ─── Active Nav Item ─────────────────────────────────────────────────────  */
.tp-main-menu-content ul li.active > a {
  color: var(--tp-theme-primary) !important;
  font-weight: 600;
}
.tp-main-menu-content ul li.active > a::after {
  width: 100% !important;
  background: var(--tp-theme-primary) !important;
}

/* ─── Prevent horizontal overflow from absolute shapes ─────────────────── */
.tp-hero-area,
.tp-hero-wrapper-slider,
.tp-about-area,
.tp-testimonial-area {
  overflow: hidden;
}
.tp-hero-badge {
  display: inline-block;
  background: var(--tp-theme-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* ─── Stats / Counter Section ───────────────────────────────────────────── */
.tp-counter-area {
  background: var(--tp-theme-secondary);
  padding: 60px 0;
}
.tp-counter-item {
  text-align: center;
  color: #fff;
}
.tp-counter-item .count-number {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--tp-font-heading);
  color: var(--tp-theme-primary);
  line-height: 1;
}
.tp-counter-item .count-suffix {
  font-size: 32px;
  font-weight: 700;
  color: var(--tp-theme-primary);
}
.tp-counter-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  margin-bottom: 0;
}
.tp-counter-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  height: 80px;
  margin: auto;
}

/* ─── CTA Section ────────────────────────────────────────────────────────  */
.tp-cta-area {
  background: var(--tp-theme-gradient);
  padding: 80px 0;
}
.tp-cta-area h2 { color: #fff; font-family: var(--tp-font-heading); }
.tp-cta-area p { color: rgba(255,255,255,0.85); }
.tp-btn-white {
  background: #fff;
  color: var(--tp-theme-secondary) !important;
  border-radius: 4px;
  padding: 14px 32px;
  font-weight: 600;
  font-family: var(--tp-font-heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.tp-btn-white:hover {
  background: var(--tp-theme-secondary);
  color: #fff !important;
}

/* ─── Process Steps ─────────────────────────────────────────────────────── */
.tp-process-step {
  text-align: center;
  padding: 30px 20px;
}
.tp-process-step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tp-theme-gradient);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--tp-font-heading);
}
.tp-process-step h4 {
  font-family: var(--tp-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--tp-theme-secondary);
  margin-bottom: 10px;
}
.tp-process-step p { font-size: 14px; color: #777; margin: 0; }
.tp-process-arrow {
  font-size: 24px;
  color: var(--tp-theme-primary);
  text-align: center;
  padding-top: 30px;
}

/* ─── WhatsApp Float Button ─────────────────────────────────────────────── */
.tp-whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  z-index: 9990;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tp-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  color: #fff;
}

/* ─── Scroll To Top ─────────────────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 152px;
  right: 24px;
  width: 45px;
  height: 45px;
  background: var(--tp-theme-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  z-index: 9990;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
#scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}
#scroll-top:hover { background: var(--tp-theme-secondary); }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────  */
.tp-breadcrumb-area {
  background: var(--tp-theme-secondary);
  padding: 45px 0 30px;
  position: relative;
  overflow: hidden;
}
.tp-breadcrumb-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../img/breadcrumb/breadcrumb-bg.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}
.tp-breadcrumb-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  font-family: var(--tp-font-heading);
  margin-bottom: 8px;
}
/* Reduce top padding of first content section after breadcrumb */
.tp-breadcrumb-area + section {
  padding-top: 60px !important;
}
.tp-breadcrumb-area + section[class*="pb-"] {
  padding-bottom: 60px !important;
}
.tp-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.tp-breadcrumb-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.tp-breadcrumb-nav a:hover { color: var(--tp-theme-primary); }
.tp-breadcrumb-nav .separator { color: rgba(255,255,255,0.4); }
.tp-breadcrumb-nav .current { color: var(--tp-theme-primary); }

/* ─── Warning Banner (credit legal notice) ──────────────────────────────── */
.tp-warning-banner {
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
  color: #856404;
}

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.tp-contact-form .form-control,
.tp-contact-form .form-select {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 14px 18px;
  font-family: var(--tp-font-body);
  font-size: 14px;
  color: #333;
  background: #f9f9fb;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tp-contact-form .form-control:focus,
.tp-contact-form .form-select:focus {
  border-color: var(--tp-theme-primary);
  box-shadow: 0 0 0 3px rgba(0,163,195,0.12);
  background: #fff;
  outline: none;
}
.tp-contact-form textarea.form-control { min-height: 150px; resize: vertical; }
.tp-contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tp-theme-secondary);
  margin-bottom: 6px;
  display: block;
  font-family: var(--tp-font-heading);
}
.honeypot-field { display: none !important; }

/* ─── Contact Info ────────────────────────────────────────────────────────  */
.tp-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
}
.tp-contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--tp-theme-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.tp-contact-info-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--tp-theme-secondary);
  margin-bottom: 4px;
  font-family: var(--tp-font-heading);
}
.tp-contact-info-text p,
.tp-contact-info-text a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  margin: 0;
}
.tp-contact-info-text a:hover { color: var(--tp-theme-primary); }

/* ─── Alert Messages ─────────────────────────────────────────────────────── */
.tp-alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 14px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tp-alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 14px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Footer Overrides ──────────────────────────────────────────────────── */
.tp-footer-opening-hours { color: rgba(255,255,255,0.7); font-size: 13px; }
.tp-footer-hours-value { color: var(--tp-theme-primary); font-weight: 500; }
.tp-footer-notice { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ─── About Page ─────────────────────────────────────────────────────────── */
.tp-about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.tp-about-feature-icon {
  width: 45px;
  height: 45px;
  background: var(--tp-theme-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.tp-about-feature-text h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--tp-theme-secondary);
  margin-bottom: 4px;
  font-family: var(--tp-font-heading);
}
.tp-about-feature-text p { font-size: 13px; color: #777; margin: 0; }

/* ─── Loan Types Cards ───────────────────────────────────────────────────── */
.tp-loan-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.07);
  padding: 35px 28px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid transparent;
}
.tp-loan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.12);
  border-top-color: var(--tp-theme-primary);
}
.tp-loan-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0,163,195,0.1) 0%, rgba(0,172,204,0.15) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--tp-theme-primary);
  margin-bottom: 20px;
}
.tp-loan-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--tp-theme-secondary);
  margin-bottom: 12px;
  font-family: var(--tp-font-heading);
}
.tp-loan-card p { font-size: 14px; color: #777; line-height: 1.7; }
.tp-loan-card .tp-loan-rate {
  font-size: 22px;
  font-weight: 700;
  color: var(--tp-theme-primary);
  font-family: var(--tp-font-heading);
  margin-top: 15px;
}
.tp-loan-card .tp-loan-rate small {
  font-size: 13px;
  font-weight: 400;
  color: #999;
}

/* ─── FAQ Section ────────────────────────────────────────────────────────── */
.tp-faq-accordion .accordion-button {
  font-family: var(--tp-font-heading);
  font-weight: 600;
  color: var(--tp-theme-secondary);
  background: #f9f9fb;
}
.tp-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--tp-theme-primary);
  background: #fff;
  box-shadow: none;
}
.tp-faq-accordion .accordion-button::after {
  filter: invert(40%) sepia(100%) saturate(500%) hue-rotate(165deg);
}

/* ─── Partner Logos ─────────────────────────────────────────────────────── */
.tp-partner-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 18px 15px;
  background: #fafafa;
  transition: box-shadow 0.2s;
}
.tp-partner-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.tp-partner-item img {
  max-height: 45px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}
.tp-partner-item:hover img { filter: grayscale(0%); opacity: 1; }

/* ─── Responsive Adjustments ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .tp-header-area { display: none; }
  /* Sticky header always visible on mobile (main.css hides it globally) */
  .tp-header-main-sticky {
    display: block !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
}
@media (min-width: 1200px) {
  .tp-header-main-sticky { display: none; }
}
@media (max-width: 767px) {
  .tp-breadcrumb-title { font-size: 28px; }
  .tp-counter-item .count-number { font-size: 36px; }
}
