/* ========================================
   Nyanda M Group - Custom Styles
   TailwindCSS CDN handles utility classes
   ======================================== */

/* --- Glassmorphism --- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark-glass {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Font Display --- */
.font-display {
  font-family: 'Montserrat', sans-serif;
}

/* --- Slow Zoom Animation (Hero BG) --- */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

.animate-slow-zoom {
  animation: slowZoom 30s ease-in-out infinite alternate;
}

/* --- Fade / Slide In Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Brand Colors --- */
:root {
  --brand-primary: #2d3194;
  /* Corporate Blue */
  --brand-accent: #c8952c;
  /* Gold Accent */
  --brand-hover: #1e216b;
  /* Darker shade for hover */
}

/* --- Brand Overrides --- */
/* Force new brand color on existing blue classes */
.bg-blue-700 {
  background-color: var(--brand-primary) !important;
}

.text-blue-700 {
  color: var(--brand-primary) !important;
}

.border-blue-700 {
  border-color: var(--brand-primary) !important;
}

/* Map blue-600 to primary (or slightly lighter) */
.bg-blue-600 {
  background-color: var(--brand-primary) !important;
}

.text-blue-600 {
  color: var(--brand-primary) !important;
}

.border-blue-600 {
  border-color: var(--brand-primary) !important;
}

/* Map blue-500 to Gold Accent for highlights */
.text-blue-500 {
  color: var(--brand-accent) !important;
}

.bg-blue-500 {
  background-color: var(--brand-accent) !important;
}

.hover\:bg-blue-800:hover {
  background-color: var(--brand-hover) !important;
}

.hover\:text-blue-800:hover {
  color: var(--brand-hover) !important;
}

/* Custom utility for gold checks/accents if needed */
.text-brand-gold {
  color: var(--brand-accent) !important;
}

html {
  scroll-behavior: smooth;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out both;
}

.animate-fade-in-left {
  animation: fadeInLeft 1s ease-out both;
}

.animate-fade-in {
  animation: fadeIn 0.7s ease-out both;
}

.animate-zoom-in {
  animation: zoomIn 0.5s ease-out both;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-700 {
  animation-delay: 0.7s;
}

/* --- Navbar transition --- */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-top {
  background: transparent;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* --- Mobile Menu Slide --- */
.mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}



/* --- Service Tab Active --- */
.tab-btn.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

/* --- Division Card Hover --- */
.division-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.division-card:hover .icon-box {
  background: #2563eb;
  color: white;
}

/* --- Service Card Equal Height --- */
.service-card {
  height: 100%;
}

/* --- Service Card Hover --- */
.service-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card:hover .view-btn {
  background: #1d4ed8;
}

/* --- Feature Card Hover --- */
.feature-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.feature-card:hover .feature-icon {
  background: #2563eb;
  color: white;
}

/* --- Standing Card Hover --- */
.standing-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

.standing-card:hover .standing-icon {
  transform: scale(1.1);
  background: #2563eb;
}

/* --- Compliance Card Hover --- */
.compliance-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.compliance-card:hover .compliance-icon {
  background: #2563eb;
  color: white;
  transform: scale(1.1);
}

/* --- Trust Icon Hover --- */
.trust-icon:hover .trust-icon-box {
  background: #2563eb;
  color: white;
}

/* --- Documents CTA Hover --- */
.docs-cta:hover .docs-overlay {
  transform: translateY(0);
}

/* --- Form Success --- */
.form-success {
  display: none;
}

.form-success.active {
  display: block;
}

.contact-form.hidden {
  display: none;
}

/* --- Map Marker Bounce --- */
@keyframes markerBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.map-marker {
  animation: markerBounce 2s ease-in-out infinite;
}

.map-marker:nth-child(2) {
  animation-delay: 0.3s;
}

/* --- Scroll-triggered reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}