/* 2026 UI Modern Design System - SIGOGNAC FINANCE */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0A2540;
  --primary-light: #184173;
  --secondary: #00D4FF;
  --background: #F8FAFC;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border-light: rgba(255, 255, 255, 0.5);
  --border-glass: rgba(255, 255, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background-color: var(--background) !important;
  color: var(--text-dark) !important;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.glass-navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.glass-card {
  background: var(--surface-solid);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Buttons */
.btn-modern {
  background: var(--primary);
  color: white !important;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(10, 37, 64, 0.2);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-modern:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 37, 64, 0.3);
}

.btn-modern-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-modern-outline:hover {
  background: var(--primary);
  color: white !important;
}

/* Hero Section Modernized */
.hero-modern {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: #f8fafc;
  overflow: hidden;
  padding: 100px 0;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%; width: 70%; height: 100%;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, rgba(248,250,252,0) 70%);
  z-index: 0;
}

.hero-modern::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%; width: 50%; height: 80%;
  background: radial-gradient(circle, rgba(24,65,115,0.05) 0%, rgba(248,250,252,0) 70%);
  z-index: 0;
}

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

.hero-image-wrapper {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Services Grid */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(10, 37, 64, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.glass-card:hover .icon-box {
  background: var(--primary);
  color: white;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 35px;
  margin: 15px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}

.testimonial-initials {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.stars-active {
  color: #FF9E0F;
  margin-bottom: 12px;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00B67A;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 15px;
}

.trustpilot-header {
  margin-bottom: 50px;
  text-align: center;
}

.trustpilot-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Carousel Controls */
.testimony-section {
  position: relative;
}

.tns-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  transform: translateY(-50%);
}

.tns-controls button {
  pointer-events: auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: var(--shadow-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0; /* Hide default text */
}

.tns-controls button:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.tns-controls button[data-controls="prev"]::before {
  content: '\f104'; /* Ionicon or FontAwesome arrow */
  font-family: 'FontAwesome';
  font-size: 24px;
}

.tns-controls button[data-controls="next"]::before {
  content: '\f105';
  font-family: 'FontAwesome';
  font-size: 24px;
}

.tns-nav {
  text-align: center;
  margin-top: 30px;
}

.tns-nav button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  margin: 0 5px;
  padding: 0;
  transition: var(--transition);
}

.tns-nav button.tns-nav-active {
  background: var(--primary);
  width: 25px;
  border-radius: 10px;
}

/* Utils */
.badge-modern {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.mt-large { margin-top: 8rem; }
.mb-large { margin-bottom: 8rem; }

/* ========================================================
   NAVBAR OVERRIDES - Fix alignment against legacy style.css
   ======================================================== */
.glass-navbar .navbar-nav {
  margin-left: auto !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.glass-navbar .navbar-collapse {
  flex-grow: 0 !important;
  margin-left: auto !important;
}
.glass-navbar .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}
.glass-navbar .nav-link:hover {
  color: var(--primary) !important;
}

/* Navbar Dropdown Modernization */
.glass-navbar .dropdown-menu {
  background: var(--surface-solid);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 1rem 0.5rem;
  margin-top: 10px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-navbar .dropdown-item {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.glass-navbar .dropdown-item:hover {
  background: rgba(10, 37, 64, 0.05);
  color: var(--primary) !important;
  transform: translateX(5px);
}

.glass-navbar .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: middle;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.3s ease;
}

.glass-navbar .show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* ========================================================
   FOOTER OVERRIDES - Premium Dark Theme (Rougerie Inspired)
   ======================================================== */
.footer-modern {
  background: #0A0A0B !important;
  color: #E2E8F0 !important;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 100px 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-modern a {
  color: #94A3B8 !important;
  transition: all 0.3s ease;
  text-decoration: none !important;
  font-size: 0.95rem;
}

.footer-modern a:hover {
  color: #FFFFFF !important;
  padding-left: 5px;
}

.footer-modern h3 {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-bottom: 30px;
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}

.footer-modern h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 25px;
  height: 2px;
  background: var(--secondary);
}

.footer-modern p {
  color: #94A3B8 !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-modern .footer-col {
  margin-bottom: 40px;
}

.footer-modern ul li {
  margin-bottom: 12px;
}

.footer-modern .fa {
  color: var(--secondary);
  font-size: 14px;
}

/* Fix for overlapping icons in footer contact */
.footer-modern .footer-col ul li.d-flex {
  align-items: flex-start !important;
}

.footer-modern .footer-col ul li.d-flex span.fa {
  width: 25px; /* Fixed width for icons to prevent overlap */
  display: inline-block;
  margin-right: 15px !important;
  text-align: center;
  flex-shrink: 0;
  margin-top: 4px !important;
}

.footer-modern .footer-col ul li.d-flex span:not(.fa) {
  flex: 1;
}

/* Sub-footer for Legal/Regulatory info */
.sub-footer {
  background: #000000;
  padding: 50px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 30px;
}

.sub-footer p {
  font-size: 0.75rem !important;
  color: #64748B !important;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
}

.footer-bottom-links {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links .small {
  color: #475569 !important;
  font-weight: 500;
}

/* Ensure 4 columns on Desktop */
@media (min-width: 992px) {
  .footer-modern .footer-col {
    padding-right: 20px;
  }
}

/* Contact Page Sidebar Refinement */
.contact-sidebar-premium .glass-card {
    background: linear-gradient(135deg, #0A2540 0%, #184173 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dbox-premium {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dbox-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dbox-premium .icon-box {
    width: 45px;
    height: 45px;
    background: var(--secondary) !important;
    color: var(--primary) !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.dbox-premium .text-content p {
    margin-bottom: 0;
}

.dbox-premium .text-content .label-small {
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.dbox-premium .text-content .value-text {
    font-size: 1rem !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.dbox-premium .text-content .value-text a {
    color: #FFFFFF !important;
}

/* Horizontal Contact Info Section */
.contact-info-horizontal {
    margin-top: 40px;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0A2540 0%, #184173 100%);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.contact-info-horizontal::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info-horizontal .dbox-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .contact-sidebar-premium {
        margin-top: 30px;
    }
    .contact-info-horizontal .dbox-premium {
        margin-bottom: 15px;
    }
}

/* ========================================================
   Responsive Adjustments
   ======================================================== */
@media (max-width: 991.98px) {
  .hero-modern {
    padding: 60px 0;
    text-align: center;
    min-height: auto;
  }
  .glass-navbar .navbar-nav {
    flex-direction: column !important;
    margin-left: 0 !important;
    align-items: center;
    width: 100%;
    padding: 20px 0;
  }
  .glass-navbar .nav-item {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  .glass-navbar .navbar-collapse {
    background: var(--surface-solid);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 10px;
    box-shadow: var(--shadow-hover);
  }
  .glass-navbar .collapse.navbar-collapse {
    margin-left: 0 !important;
    justify-content: center !important;
  }
  .navbar-toggler {
    background-color: rgba(10, 37, 64, 0.08) !important;
    border: none !important;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
  }
  .navbar-toggler span.fa-bars {
    color: var(--primary) !important;
    font-size: 1.25rem;
  }
  .glass-card {
    padding: 1.5rem;
  }
  .hero-content .d-flex {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2.25rem !important;
  }
  .footer-modern {
    padding: 50px 0 20px;
    text-align: center;
  }
  .footer-modern h3 {
    margin-top: 2rem;
  }
  .footer-modern .row > [class*="col-"] {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }
  .footer-modern ul {
    width: 100%;
    padding-left: 0;
  }
  .footer-modern ul li.d-flex {
    justify-content: center;
    text-align: left;
  }
  .top-wrap {
    text-align: center;
  }
  .top-wrap .col-md-6:last-child {
    text-align: center !important;
    justify-content: center !important;
  }
  .btn-modern, .btn-modern-outline {
    width: 100%;
    justify-content: center;
  }
}


