/* Refined & Balanced Corporate Styling Engine for BlackLeaf Ventures */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-handwriting: 'Caveat', cursive;
}

body {
  font-family: var(--font-sans);
  color: #18181b;
  background-color: #fafafa;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.font-handwriting {
  font-family: var(--font-handwriting);
}

/* Glassmorphism Header */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px -2px rgba(5, 150, 105, 0.06);
  border-bottom-color: #e4e4e7;
}

.nav-link.active {
  color: #059669 !important;
  background-color: #ecfdf5;
  font-weight: 800;
}

/* CARDS HOVER ANIMATIONS */
.brand-card, .journey-card, .workflow-card, .culture-card, .job-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover, .journey-card:hover, .workflow-card:hover {
  transform: translateY(-4px);
}

.scale-108 {
  transform: scale(1.08) translateY(-6px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* LUXURY SCROLL REVEAL ANIMATIONS */
.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ANIMATED CHECKMARK TICK ICON */
@keyframes checkmarkDraw {
  0% {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    transform: scale(0.4) rotate(-10deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  80% {
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    stroke-dasharray: 40;
    stroke-dashoffset: 0;
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    transform: scale(0.85);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(1);
  }
}

.animate-checkmark-circle {
  animation: pulseGlow 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-checkmark-icon {
  animation: checkmarkDraw 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Scale Up Animation for Modals & Tickers */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleUp {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* FAQ Accordion Expansion */
.faq-toggle[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background-color: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Toast Notifications */
.toast-msg {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  height: 6px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f4f4f5;
}

::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Compact Mobile Slide Down Animation */
@keyframes slideDownCompact {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-slide-down-compact {
  animation: slideDownCompact 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Persistent Selected Partnership Card Styles */
.partnership-card.selected-active {
  background-color: rgba(236, 253, 245, 0.65) !important;
  border-color: #10b981 !important;
  border-width: 2px !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
}

.partnership-card.selected-active h4 {
  color: #047857 !important;
}

.partnership-card.selected-active .card-num-badge {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.partnership-card.selected-active .mobile-email-btn-wrapper {
  display: block !important;
  animation: slideDownCompact 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
