/* ============================================
   Zurich Trust Bank - Custom Stylesheet
   A modern fintech design system
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --ztb-primary: #0a2540;
  --ztb-secondary: #1a73e8;
  --ztb-accent: #00c9a7;
  --ztb-accent-dark: #00a88a;
  --ztb-dark: #0a1628;
  --ztb-light: #f7f9fc;
  --ztb-gray: #6b7c93;
  --ztb-border: #e3e8ef;
  --ztb-white: #ffffff;
  --ztb-gradient: linear-gradient(135deg, #0a2540 0%, #1a73e8 100%);
  --ztb-gradient-accent: linear-gradient(135deg, #00c9a7 0%, #1a73e8 100%);
  --ztb-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
  --ztb-shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.12);
  --ztb-radius: 12px;
  --ztb-radius-sm: 8px;
  --ztb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Reset & Base ---------- */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ztb-primary);
  background: var(--ztb-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ztb-secondary); text-decoration: none; transition: var(--ztb-transition); }
a:hover { color: var(--ztb-accent); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--ztb-primary);
  line-height: 1.3;
}

/* ---------- Preloader ---------- */
#ztb-preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--ztb-white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#ztb-preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.ztb-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--ztb-border);
  border-top-color: var(--ztb-secondary);
  border-radius: 50%;
  animation: ztb-spin 0.8s linear infinite;
}

@keyframes ztb-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Top Bar ---------- */
.ztb-topbar {
  background: var(--ztb-primary);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  z-index: 1100;
  position: relative;
}

.ztb-topbar a {
  color: var(--ztb-accent);
  font-weight: 500;
}

.ztb-topbar a:hover { color: var(--ztb-white); }

/* ---------- Navbar ---------- */
.ztb-navbar {
  background: var(--ztb-white);
  box-shadow: 0 1px 8px rgba(10, 37, 64, 0.06);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1090;
  transition: var(--ztb-transition);
}

.ztb-navbar .ztb-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--ztb-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ztb-navbar .ztb-logo .ztb-logo-icon {
  width: 36px; height: 36px;
  background: var(--ztb-gradient-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 18px;
}

.ztb-navbar .nav-link {
  color: var(--ztb-primary) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px !important;
  border-radius: var(--ztb-radius-sm);
  transition: var(--ztb-transition);
}

.ztb-navbar .nav-link:hover {
  color: var(--ztb-secondary) !important;
  background: rgba(26, 115, 232, 0.06);
}

.ztb-navbar .dropdown-menu {
  border: none;
  box-shadow: var(--ztb-shadow-lg);
  border-radius: var(--ztb-radius);
  padding: 8px;
  margin-top: 8px;
}

.ztb-navbar .dropdown-item {
  border-radius: var(--ztb-radius-sm);
  padding: 8px 16px;
  font-size: 14px;
  transition: var(--ztb-transition);
}

.ztb-navbar .dropdown-item:hover {
  background: rgba(26, 115, 232, 0.06);
  color: var(--ztb-secondary);
}

/* ---------- Buttons ---------- */
.btn-ztb-primary {
  background: var(--ztb-gradient);
  color: var(--ztb-white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--ztb-radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--ztb-transition);
  display: inline-block;
}

.btn-ztb-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.3);
  color: var(--ztb-white);
}

.btn-ztb-accent {
  background: var(--ztb-gradient-accent);
  color: var(--ztb-white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--ztb-radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--ztb-transition);
  display: inline-block;
}

.btn-ztb-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 201, 167, 0.3);
  color: var(--ztb-white);
}

.btn-ztb-outline {
  background: transparent;
  color: var(--ztb-white);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 10px 28px;
  border-radius: var(--ztb-radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--ztb-transition);
  display: inline-block;
}

.btn-ztb-outline:hover {
  background: var(--ztb-white);
  color: var(--ztb-primary);
  border-color: var(--ztb-white);
}

.btn-ztb-outline-dark {
  background: transparent;
  color: var(--ztb-primary);
  border: 2px solid var(--ztb-border);
  padding: 10px 28px;
  border-radius: var(--ztb-radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--ztb-transition);
  display: inline-block;
}

.btn-ztb-outline-dark:hover {
  background: var(--ztb-primary);
  color: var(--ztb-white);
  border-color: var(--ztb-primary);
}

/* ---------- Hero Section ---------- */
.ztb-hero {
  background: var(--ztb-gradient);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.ztb-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.ztb-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.ztb-hero h1 {
  color: var(--ztb-white);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.ztb-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 560px;
  line-height: 1.7;
}

.ztb-hero .ztb-hero-content { position: relative; z-index: 2; }

/* ---------- Section Styles ---------- */
.ztb-section {
  padding: 80px 0;
}

.ztb-section-light {
  background: var(--ztb-light);
}

.ztb-section-dark {
  background: var(--ztb-primary);
  color: var(--ztb-white);
}

.ztb-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.ztb-section-title h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.ztb-section-title p {
  color: var(--ztb-gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.ztb-section-dark .ztb-section-title h2 { color: var(--ztb-white); }
.ztb-section-dark .ztb-section-title p { color: rgba(255,255,255,0.65); }

/* ---------- Feature Cards ---------- */
.ztb-feature-card {
  background: var(--ztb-white);
  border-radius: var(--ztb-radius);
  padding: 32px;
  box-shadow: var(--ztb-shadow);
  transition: var(--ztb-transition);
  height: 100%;
  border: 1px solid var(--ztb-border);
}

.ztb-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ztb-shadow-lg);
  border-color: transparent;
}

.ztb-feature-card .ztb-card-icon {
  width: 56px; height: 56px;
  background: rgba(26, 115, 232, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--ztb-secondary);
}

.ztb-feature-card h5 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.ztb-feature-card p {
  color: var(--ztb-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Service Cards ---------- */
.ztb-service-card {
  background: var(--ztb-white);
  border-radius: var(--ztb-radius);
  padding: 28px;
  box-shadow: var(--ztb-shadow);
  transition: var(--ztb-transition);
  border: 1px solid var(--ztb-border);
  height: 100%;
}

.ztb-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ztb-shadow-lg);
}

.ztb-service-card .ztb-svc-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.ztb-service-card .ztb-svc-icon.icon-blue { background: rgba(26, 115, 232, 0.1); color: var(--ztb-secondary); }
.ztb-service-card .ztb-svc-icon.icon-green { background: rgba(0, 201, 167, 0.1); color: var(--ztb-accent); }
.ztb-service-card .ztb-svc-icon.icon-purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.ztb-service-card .ztb-svc-icon.icon-orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.ztb-service-card .ztb-svc-icon.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.ztb-service-card .ztb-svc-icon.icon-teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }

.ztb-service-card h5 { font-size: 1rem; margin-bottom: 8px; }
.ztb-service-card p { color: var(--ztb-gray); font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Stat Banner ---------- */
.ztb-stat-banner {
  background: var(--ztb-gradient);
  padding: 60px 0;
  text-align: center;
}

.ztb-stat-item h3 {
  color: var(--ztb-white);
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.ztb-stat-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- CTA Section ---------- */
.ztb-cta {
  background: var(--ztb-gradient-accent);
  padding: 80px 0;
  text-align: center;
}

.ztb-cta h2 {
  color: var(--ztb-white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.ztb-cta p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.ztb-footer {
  background: var(--ztb-dark);
  padding: 64px 0 0;
  color: rgba(255,255,255,0.65);
}

.ztb-footer h6 {
  color: var(--ztb-white);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ztb-footer a {
  color: rgba(255,255,255,0.6);
  display: block;
  padding: 4px 0;
  font-size: 14px;
  transition: var(--ztb-transition);
}

.ztb-footer a:hover { color: var(--ztb-accent); padding-left: 4px; }

.ztb-footer .ztb-footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--ztb-white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ztb-footer .ztb-footer-logo .ztb-logo-icon {
  width: 32px; height: 32px;
  background: var(--ztb-gradient-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 14px;
}

.ztb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.ztb-social-links {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  gap: 12px;
}

.ztb-social-links li a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: var(--ztb-transition);
}

.ztb-social-links li a:hover {
  background: var(--ztb-accent);
  color: var(--ztb-white);
  padding-left: 0;
}

/* ---------- Back to Top ---------- */
.ztb-back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--ztb-secondary);
  color: var(--ztb-white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
  transition: var(--ztb-transition);
  font-size: 18px;
}

.ztb-back-to-top:hover {
  transform: translateY(-3px);
  color: var(--ztb-white);
}

/* ---------- About Section ---------- */
.ztb-about-img {
  border-radius: var(--ztb-radius);
  box-shadow: var(--ztb-shadow-lg);
  overflow: hidden;
}

.ztb-about-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Breadcrumb Page Header ---------- */
.ztb-page-header {
  background: var(--ztb-gradient);
  padding: 80px 0 60px;
  text-align: center;
}

.ztb-page-header h1 {
  color: var(--ztb-white);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.ztb-page-header .breadcrumb {
  background: transparent;
  justify-content: center;
  margin-bottom: 0;
}

.ztb-page-header .breadcrumb-item a { color: rgba(255,255,255,0.65); }
.ztb-page-header .breadcrumb-item.active { color: var(--ztb-accent); }

/* ---------- Form Styles ---------- */
.ztb-form .form-control {
  border: 1px solid var(--ztb-border);
  border-radius: var(--ztb-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  transition: var(--ztb-transition);
  background: var(--ztb-white);
}

.ztb-form .form-control:focus {
  border-color: var(--ztb-secondary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
  outline: none;
}

.ztb-form label {
  font-weight: 600;
  font-size: 13px;
  color: var(--ztb-gray);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

/* ---------- Login Page Styles ---------- */
.ztb-login-section {
  padding: 60px 0;
}

.ztb-login-card {
  background: var(--ztb-white);
  border-radius: var(--ztb-radius);
  box-shadow: var(--ztb-shadow-lg);
  padding: 40px;
  max-width: 440px;
}

.ztb-login-card h3 {
  margin-bottom: 8px;
}

.ztb-login-card .ztb-login-subtitle {
  color: var(--ztb-gray);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* ---------- Mobile Menu ---------- */
.ztb-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ztb-primary);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 991px) {
  .ztb-mobile-toggle { display: block; }

  .ztb-nav-menu {
    position: fixed;
    top: 0; left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--ztb-white);
    box-shadow: var(--ztb-shadow-lg);
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding: 24px;
  }

  .ztb-nav-menu.active { left: 0; }

  .ztb-nav-menu .navbar-nav { flex-direction: column !important; }
  .ztb-nav-menu .nav-item { margin: 0 !important; }
  .ztb-nav-menu .nav-link { padding: 12px 0 !important; }
  .ztb-nav-menu .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    padding-left: 16px;
  }

  .ztb-nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
  }

  .ztb-nav-overlay.active { display: block; }

  .ztb-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 575px) {
  .ztb-hero { padding: 80px 0 60px; }
  .ztb-hero h1 { font-size: 1.8rem; }
  .ztb-section { padding: 50px 0; }
}

/* ---------- Utilities ---------- */
.text-ztb-accent { color: var(--ztb-accent) !important; }
.text-ztb-secondary { color: var(--ztb-secondary) !important; }
.text-ztb-gray { color: var(--ztb-gray) !important; }
.bg-ztb-light { background: var(--ztb-light) !important; }
