/* FinCore Advisory custom.css - Bootstrap 5 Style Overrides & Aesthetic Extensions */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Light Theme Colors (Tallies with Logo) */
  --bg-primary: hsl(210, 40%, 98%);
  --bg-secondary: hsl(210, 30%, 95%);
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-modal: rgba(255, 255, 255, 0.95);
  
  --text-primary: hsl(220, 50%, 15%);
  --text-secondary: hsl(215, 25%, 40%);
  --text-muted: hsl(215, 16%, 60%);
  
  --primary: hsl(217, 100%, 36%); /* logo.png FinCore Blue (#0047BA) */
  --primary-hover: hsl(217, 100%, 28%);
  --primary-light: hsl(217, 100%, 96%);
  
  --accent: hsl(175, 100%, 38%); /* logo.png ADVISORY Teal (#00C2B2) */
  --accent-hover: hsl(175, 100%, 30%);
  --accent-light: hsl(175, 100%, 96%);
  
  --border-color: rgba(226, 232, 240, 0.8);
  --border-color-focus: hsl(175, 100%, 38%);
  
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(0, 71, 186, 0.04);
  
  --shadow-sm: 0 2px 8px rgba(0, 71, 186, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 71, 186, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 71, 186, 0.1);
  --shadow-accent: 0 8px 24px rgba(0, 194, 178, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Base Body Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
}

.main-content-offset {
  padding-top: 80px; /* Offset fixed header */
}

/* Glassmorphism Cards */
.glass-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

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

/* Global Custom Styles for Header Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background-color var(--transition-normal);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary) !important;
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-weight: bold;
  font-size: 1.1rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary) !important;
}

.nav-link.active::after {
  width: 100%;
}

/* Custom Buttons Styling */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: none;
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.4);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Theme Toggle Button styling */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background-color: var(--bg-card);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--text-primary);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-slow);
}

.theme-toggle-btn:active svg {
  transform: rotate(360deg);
}

/* Full-Screen Hero Carousel */
.hero-fullscreen {
  height: 100vh;
  min-height: 600px;
}

.hero-fullscreen .carousel-inner,
.hero-fullscreen .carousel-item {
  height: 100%;
}

.hero-slide {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 80, 0.85) 0%, rgba(0, 71, 186, 0.6) 50%, rgba(0, 194, 178, 0.3) 100%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: heroFadeIn 1s ease forwards;
}

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

.hero-fullscreen .hero-tag {
  display: inline-block;
  background-color: rgba(0, 194, 178, 0.2);
  color: #00C2B2;
  border: 1px solid rgba(0, 194, 178, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.hero-fullscreen .hero-slide-content .text-accent {
  color: #00C2B2;
}

.hero-fullscreen .carousel-indicators {
  z-index: 3;
}

.hero-fullscreen .carousel-indicators button {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.hero-fullscreen .carousel-indicators button.active {
  background: #00C2B2;
  width: 60px;
}

.hero-fullscreen .carousel-control-prev,
.hero-fullscreen .carousel-control-next {
  z-index: 3;
  width: 60px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-fullscreen:hover .carousel-control-prev,
.hero-fullscreen:hover .carousel-control-next {
  opacity: 1;
}

.hero-fullscreen .carousel-control-prev-icon,
.hero-fullscreen .carousel-control-next-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  background-size: 50%;
}

/* Hero Stats Bar */
.hero-stats-bar {
  background: linear-gradient(135deg, hsl(217, 100%, 36%), hsl(217, 100%, 28%));
  padding: 2rem 0;
  color: white;
  position: relative;
  z-index: 2;
}

.hero-stats-bar h3 {
  font-size: 2rem;
  color: #00C2B2;
}

.hero-stats-bar p {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .hero-fullscreen {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero-fullscreen .hero-slide-content h1 {
    font-size: 2rem;
  }
  
  .hero-fullscreen .hero-slide-content .lead {
    font-size: 1rem;
  }
  
  .hero-stats-bar h3 {
    font-size: 1.5rem;
  }
}

/* Stats Counter Section */
.stats-counter-section {
  background: linear-gradient(135deg, hsl(217, 100%, 36%), hsl(217, 100%, 28%));
}

.stat-counter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-counter-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #00D2C4;
  line-height: 1.1;
}

.stat-counter-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

@media (max-width: 576px) {
  .stat-counter-num {
    font-size: 2rem;
  }
  .stat-counter-label {
    font-size: 0.75rem;
  }
}

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

/* Feature elements */
.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.glass-card:hover .feature-icon-wrapper {
  background-color: var(--accent-light);
  color: var(--accent);
}

.bg-secondary-theme {
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-normal);
}

/* Modals overlays custom styles */
.custom-modal-content {
  background-color: var(--bg-modal);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}

.border-color {
  border-color: var(--border-color) !important;
}

/* Form Styling overrides */
.form-control {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  background-color: var(--bg-card);
  border-color: var(--border-color-focus);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-status {
  display: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-status.success {
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: hsl(0, 84%, 60%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer Styling overrides - Logo Blue Background with White Text */
.footer {
  background-color: hsl(217, 100%, 36%);
  border-top: 4px solid #00D2C4;
  transition: background-color var(--transition-normal);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00D2C4, #0047BA, #00D2C4);
  z-index: 1;
}

.footer, .footer * {
  color: rgba(255, 255, 255, 0.9);
}

.footer .logo-img {
  filter: brightness(0) invert(1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00D2C4;
}

.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

/* About Us Section Styles */
.about-hero {
  background: radial-gradient(circle at 10% 20%, var(--primary-light), transparent 40%);
}

.story-illust {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

/* Custom Table Styles for admin */
.table {
  color: var(--text-secondary);
}

.table > :not(caption) > * > * {
  background-color: transparent;
  color: var(--text-secondary);
  border-bottom-color: var(--border-color);
}

.table-light {
  --bs-table-bg: var(--bg-secondary);
  --bs-table-color: var(--text-primary);
}

.table-hover > tbody > tr:hover > * {
  --bs-table-color-state: var(--text-primary);
  --bs-table-bg-state: rgba(0, 0, 0, 0.02);
}


/* Theme SUN / MOON Icon switches */
.theme-sun-icon, .theme-moon-icon {
  animation: spinIn 0.5s ease;
}

@keyframes spinIn {
  from { transform: rotate(-90deg) scale(0); opacity: 0; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

/* Preloader Screen Overlay styling */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  visibility: visible;
  opacity: 1;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Testimonial Section styles */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.rating-stars {
  color: hsl(45, 100%, 51%); /* Glow Gold */
}

.client-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Value Proposition Section Background Overlay */
.value-prop-section {
  position: relative;
}

.value-prop-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('value_proposition_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.08; /* Low opacity to keep text perfectly readable */
  z-index: 1;
  pointer-events: none;
}

.value-prop-section .container {
  position: relative;
  z-index: 2;
}




/* ================= MOBILE NAVIGATION ================= */

/* Hamburger Button */
.mobile-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1060;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background: hsl(220, 50%, 15%);
  border-radius: 4px;
  transition: all 0.35s cubic-bezier(0.77, 0.2, 0.05, 1);
  transform-origin: center;
}

.mobile-hamburger.is-active .line-1 {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-hamburger.is-active .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-hamburger.is-active .line-3 {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Overlay Backdrop */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 20, 50, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Offcanvas Panel */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: var(--bg-primary);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel.is-open {
  transform: translateX(0);
}

/* Panel Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.mobile-menu-close {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

/* Nav Links */
.mobile-nav-links {
  list-style: none;
  padding: 16px 12px;
  margin: 0;
  flex-grow: 1;
}

.mobile-nav-item {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: calc(var(--item-index, 0) * 0.08s + 0.15s);
}

.mobile-menu-panel.is-open .mobile-nav-item {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 4px 0;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 0 4px 4px 0;
  transition: width 0.25s ease;
}

.mobile-nav-link svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.mobile-nav-link:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding-left: 24px;
}

.mobile-nav-link:hover svg {
  color: var(--primary);
}

.mobile-nav-link.active {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: var(--primary);
}

.mobile-nav-link.active::before {
  width: 4px;
}

.mobile-nav-link.active svg {
  color: var(--primary);
}

/* Divider */
.mobile-menu-divider {
  height: 1px;
  margin: 0 24px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Contact Info */
.mobile-menu-contact {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mobile-contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* CTA Button */
.mobile-menu-cta {
  padding: 12px 24px;
  flex-shrink: 0;
}

.mobile-menu-cta .btn {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

/* Footer */
.mobile-menu-footer {
  padding: 16px 24px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-menu-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

