/* ============================================================
   NVH Intelligence Consultants — "Intelligent Light" Theme
   CSS Custom Properties & Global Overrides
   ============================================================ */

:root {
  --bg-deep:        #F8F9FC;
  --bg-surface:     #FFFFFF;
  --bg-elevated:    #FFFFFF;
  --bg-subtle:      #EEF1F8;
  --bg-navy:        #1B3A6B;
  --bg-navy-light:  #243F73;
  --bg-teal-soft:   #EAF6F8;
  --gold-primary:   #B8860B;
  --gold-light:     #D4A017;
  --gold-muted:     #F0D080;
  --gold-bg:        #FFFBF0;
  --teal-primary:   #0E8A97;
  --teal-light:     #0FA8B8;
  --teal-muted:     #E0F4F6;
  --text-primary:   #0F1A2E;
  --text-secondary: #4A5568;
  --text-tertiary:  #8A96A8;
  --text-on-navy:   #F0F4FF;
  --text-gold-on-navy: #E8BA4A;
  --border-subtle:  rgba(15,26,46,0.08);
  --border-medium:  rgba(15,26,46,0.15);
  --border-gold:    rgba(184,134,11,0.25);
  --border-teal:    rgba(14,138,151,0.25);
  --success:        #059669;
  --warning:        #D97706;
  --danger:         #DC2626;
  --shadow-sm: 0 1px 3px rgba(15,26,46,0.08), 0 1px 2px rgba(15,26,46,0.05);
  --shadow-md: 0 4px 16px rgba(15,26,46,0.08), 0 2px 6px rgba(15,26,46,0.06);
  --shadow-lg: 0 8px 32px rgba(15,26,46,0.10), 0 4px 12px rgba(15,26,46,0.07);
  --shadow-xl: 0 20px 60px rgba(15,26,46,0.12), 0 8px 24px rgba(15,26,46,0.08);
  --shadow-gold: 0 8px 32px rgba(184,134,11,0.15), 0 4px 12px rgba(184,134,11,0.10);
}

/* Global body */
body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* Text selection */
::selection {
  background: rgba(184,134,11,0.20);
  color: var(--text-primary);
}

/* ============================================================
   NVH Accountants & Consultants Ltd — styles.css
   Diagnostic tool styles only — layout handled by Tailwind CSS
   ============================================================ */

/* ── Scroll-reveal animation (used by app.js initScrollReveal) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Diagnostic Tool — rendered dynamically by app.js ── */
.diagnostic-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.diagnostic-header {
  padding: 36px 48px 28px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8faff 0%, #eff6ff 100%);
}
.diagnostic-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}
.diagnostic-header p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* section-label inside diagnostic header */
.diagnostic-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 12px;
}

.diagnostic-progress {
  padding: 20px 48px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
}
.progress-bar-wrap {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  border-radius: 100px;
  transition: width 0.4s ease;
}
.progress-label {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.diagnostic-body {
  padding: 36px 48px 40px;
}

.diag-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.45;
  font-family: 'Inter', sans-serif;
}

.diag-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diag-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.18s ease;
  background: #f8fafc;
  text-align: left;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.diag-option:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}
.diag-option.selected {
  border-color: #1e40af;
  background: #eff6ff;
}

.diag-option-letter {
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.diag-option.selected .diag-option-letter {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}

.diag-option-text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  padding-top: 4px;
}
.diag-option.selected .diag-option-text {
  color: #1e293b;
  font-weight: 500;
}

.diag-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* Buttons rendered by app.js inside diagnostic */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: #1e40af;
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.btn-outline {
  border: 1.5px solid #cbd5e1;
  color: #475569;
  background: transparent;
}
.btn-outline:hover {
  border-color: #1e40af;
  color: #1e40af;
  background: #eff6ff;
}
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* Result styles */
.diag-result {
  text-align: center;
  padding: 8px 0 16px;
}

.result-band {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.result-band.red    { background: rgba(239, 68, 68, 0.1);  color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.result-band.amber  { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.result-band.blue   { background: rgba(59, 130, 246, 0.1); color: #1e40af; border: 1px solid rgba(59,130,246,0.2); }
.result-band.green  { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16,185,129,0.2); }

.result-score {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #1e40af;
  line-height: 1;
  margin-bottom: 8px;
}

.result-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 14px;
}

.result-description {
  font-size: 0.9rem;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.result-recommendations {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: left;
}
.result-recommendations h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1e40af;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.result-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-rec-item {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}
.result-rec-item::before {
  content: '›';
  color: #1e40af;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Navigation dropdown system ── */
.nav-services-dropdown,
.nav-ai-dropdown,
.nav-who-dropdown { position: relative; }

.nav-services-dropdown:hover .services-menu,
.nav-ai-dropdown:hover .ai-menu,
.nav-who-dropdown:hover .who-menu { display: block; }

/* Shared dropdown base */
.services-menu,
.ai-menu,
.who-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #FFFFFF;
  border: 1px solid rgba(15,26,46,0.08);
  border-radius: 0.75rem;
  padding: 8px;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(15,26,46,0.12), 0 8px 24px rgba(15,26,46,0.08);
  min-width: 260px;
}

/* Services menu — wider for grouped layout */
.services-menu { min-width: 340px; }

/* Services group label */
.services-group-label {
  display: block;
  padding: 8px 14px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8A96A8;
  pointer-events: none;
  margin-top: 4px;
}
.services-group-label:first-child { margin-top: 0; }

/* Divider between service groups */
.services-group-divider {
  height: 1px;
  background: rgba(15,26,46,0.07);
  margin: 6px 8px;
}

/* Links inside all dropdowns */
.services-menu a,
.ai-menu a,
.who-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 0.875rem;
  color: #4A5568;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.services-menu a:hover,
.ai-menu a:hover,
.who-menu a:hover {
  background: #EEF1F8;
  color: #0F1A2E;
}

/* AI price badge */
.ai-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: #B8860B;
  background: rgba(184,134,11,0.08);
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* "See all" link in AI menu */
.ai-menu-footer {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  color: #B8860B !important;
  font-weight: 600 !important;
  margin-top: 4px;
  border-top: 1px solid rgba(15,26,46,0.08);
  padding-top: 10px !important;
}
.ai-menu-footer:hover { color: #D4A017 !important; background: #FFFBF0 !important; }

/* Responsive diagnostic */
@media (max-width: 640px) {
  .diagnostic-header,
  .diagnostic-progress,
  .diagnostic-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .diagnostic-header {
    padding-top: 24px;
    padding-bottom: 20px;
  }
}
