/* ==========================================================================
   MSME Guruji - Brand Theme & Design System
   Primary Navy: #123B78 | Dark Navy: #0B2A5B | Accent Orange: #F58220 | Hover: #E56F0A
   ========================================================================== */

:root {
  /* Brand Primary & Secondary Colors */
  --primary-navy: #123B78;
  --dark-navy: #0B2A5B;
  --primary-orange: #F58220;
  --dark-orange: #E56F0A;
  
  /* Neutral Palette */
  --text-dark: #172B4D;
  --text-slate: #334155;
  --text-muted: #64748B;
  --bg-page: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-light-blue: #F1F6FC;
  --bg-surface: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-card: #E2E8F0;
  
  /* Refined Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(11, 42, 91, 0.04);
  --shadow-sm: 0 1px 3px rgba(11, 42, 91, 0.06), 0 1px 2px rgba(11, 42, 91, 0.04);
  --shadow-card: 0 4px 6px -1px rgba(11, 42, 91, 0.05), 0 2px 4px -1px rgba(11, 42, 91, 0.03);
  --shadow-card-hover: 0 10px 15px -3px rgba(11, 42, 91, 0.08), 0 4px 6px -2px rgba(11, 42, 91, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(11, 42, 91, 0.25);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-page);
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Headings Default */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-navy);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header-scrolled {
  box-shadow: 0 2px 10px rgba(11, 42, 91, 0.08);
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
}

.mega-dropdown-wrapper {
  position: static !important;
}

.mega-dropdown-menu {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 80rem !important; /* 1280px max-w-7xl */
  margin-left: auto !important;
  margin-right: auto !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 12px 24px -6px rgba(11, 42, 91, 0.12);
  border-top: 3px solid var(--primary-navy);
  border-radius: 0 0 1rem 1rem;
  background-color: #FFFFFF;
  z-index: 100;
}

.group:hover .mega-dropdown-menu,
.group:focus-within .mega-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-link-item {
  position: relative;
  transition: color 0.15s ease;
  color: #0B2A5B;
}

.nav-link-item:hover {
  color: #123B78;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.2s ease-in-out;
  border-radius: 2px;
}

.nav-link-item:hover::after,
.group:hover .nav-link-item::after {
  width: 100%;
}

/* ==========================================================================
   Standardized Cards & Elevation
   ========================================================================== */
.card-premium,
.service-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 0.875rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-premium:hover,
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-card-hover);
}

/* Step Process Cards */
.step-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 0.875rem;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ==========================================================================
   Button Hierarchy System
   ========================================================================== */
/* 1. Primary Button (Navy Blue #123B78, Text White, Hover #0B2A5B) */
.btn-navy {
  background-color: #123B78;
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(18, 59, 120, 0.2);
  border: 1px solid #123B78;
}

.btn-navy:hover {
  background-color: #0B2A5B;
  border-color: #0B2A5B;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(11, 42, 91, 0.25);
}

.btn-navy:active {
  transform: translateY(0);
}

/* 2. Secondary / Accent Button (Primary Orange #F58220, Text White, Hover #E56F0A) */
.btn-gold,
.btn-accent,
.btn-orange {
  background-color: #F58220;
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(245, 130, 32, 0.25);
  border: 1px solid #F58220;
}

.btn-gold:hover,
.btn-accent:hover,
.btn-orange:hover {
  background-color: #E56F0A;
  border-color: #E56F0A;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(229, 111, 10, 0.32);
}

.btn-gold:active,
.btn-accent:active {
  transform: translateY(0);
}

/* 3. Secondary Outline Button */
.btn-outline-navy {
  background-color: transparent;
  color: #123B78;
  border: 1.5px solid #123B78;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-navy:hover {
  background-color: #123B78;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 4. WhatsApp Quick Contact */
.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Accordion & Interactive Components
   ========================================================================== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.accordion-content.open {
  max-height: 1200px;
  transition: max-height 0.5s ease-in-out;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary-orange);
}

/* ==========================================================================
   Form Controls & Focus States
   ========================================================================== */
input:focus, select:focus, textarea:focus {
  border-color: #123B78 !important;
  box-shadow: 0 0 0 3px rgba(18, 59, 120, 0.12) !important;
}

/* ==========================================================================
   Scrollbars
   ========================================================================== */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #F1F6FC;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-navy);
}

/* ==========================================================================
   Global Search Modal
   ========================================================================== */
.search-modal-backdrop {
  background-color: rgba(11, 42, 91, 0.7);
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease;
}

.search-modal-box {
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.97) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.search-result-item {
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.search-result-item:hover,
.search-result-item.active-item {
  background-color: #F1F6FC;
  border-left-color: var(--primary-orange);
  transform: translateX(3px);
}

/* ==========================================================================
   Multi-Step Application Stepper
   ========================================================================== */
.stepper-progress-bar {
  height: 4px;
  background-color: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.stepper-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0B2A5B 0%, #123B78 50%, #F58220 100%);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-node {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  border: 2px solid #E2E8F0;
  background-color: #FFFFFF;
  color: #64748B;
}

.step-node.active {
  border-color: #F58220;
  background-color: #F58220;
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.2);
}

.step-node.completed {
  border-color: #123B78;
  background-color: #123B78;
  color: #FFFFFF;
}

/* ==========================================================================
   Interactive Calculators & Tools
   ========================================================================== */
.calc-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #E2E8F0;
  outline: none;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #123B78;
  border: 2.5px solid #F58220;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(11, 42, 91, 0.25);
  transition: transform 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-result-badge {
  background: #0B2A5B;
  color: #FFFFFF;
  border: 1px solid #123B78;
  border-radius: 0.875rem;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
#toastNotification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

#toastNotification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Skeleton Loading State
   ========================================================================== */
.skeleton-box {
  background: linear-gradient(90deg, #F1F6FC 25%, #E2E8F0 50%, #F1F6FC 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes skeletonPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
:focus-visible {
  outline: 2px solid #123B78;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
