/**
 * Fire Safety Kumaun - Master Enterprise Stylesheet
 * Architectural & Industrial Fire Protection Styling
 */

:root {
  --fsk-dark: #121820;
  --fsk-charcoal: #1E2630;
  --fsk-card-bg: #242E3B;
  --fsk-red: #D32F2F;
  --fsk-red-hover: #B71C1C;
  --fsk-red-light: #FFEBEE;
  --fsk-amber: #D97706;
  --fsk-amber-light: #FEF3C7;
  --fsk-slate: #475569;
  --fsk-slate-light: #F1F5F9;
  --fsk-border: #E2E8F0;
  --fsk-dark-border: #334155;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: #1E293B;
  background-color: #FFFFFF;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  color: #0F172A;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.font-mono-code {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* Engineering Accent Badges */
.badge-standard {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.badge-red {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.badge-amber {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #92400E;
}

/* Header & Navigation */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 24, 32, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--fsk-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: #E2E8F0;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #F87171;
  border-bottom: 2px solid var(--fsk-red);
}

/* Megamenu / Dropdowns */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #1E2630;
  border: 1px solid #334155;
  border-top: 3px solid var(--fsk-red);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  padding: 0.5rem 0;
  z-index: 70;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block !important;
}

.nav-dropdown:hover > .nav-dropdown-menu.dropdown-grid,
.nav-dropdown:focus-within > .nav-dropdown-menu.dropdown-grid {
  display: grid !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: #CBD5E1;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(211, 47, 47, 0.15);
  color: #FFFFFF;
  padding-left: 1.5rem;
}

/* Hero Section */
.hero-industrial {
  background: linear-gradient(135deg, #0D131A 0%, #1A222D 60%, #111827 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #334155;
}

.hero-industrial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(211, 47, 47, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.1) 0%, transparent 45%),
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

/* Glassmorphism Metric / Trust Cards */
.glass-metric-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.glass-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(211, 47, 47, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* Engineering Lifecycle Pipeline */
.lifecycle-step {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 4px solid #94A3B8;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.lifecycle-step.active, .lifecycle-step:hover {
  border-top-color: var(--fsk-red);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.lifecycle-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.lifecycle-step:hover .lifecycle-number {
  background: var(--fsk-red);
  color: #FFFFFF;
}

/* Industrial Product & Service Cards */
.industrial-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.industrial-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.industrial-card-header {
  border-bottom: 1px solid #F1F5F9;
  padding: 1rem 1.25rem;
  background: #F8FAFC;
}

/* District Matrix Grid */
.district-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #CBD5E1;
  border-radius: 6px;
  text-decoration: none;
  color: #1E293B;
  transition: all 0.2s ease;
}

.district-badge:hover {
  border-left-color: var(--fsk-red);
  background: #F8FAFC;
  transform: translateX(4px);
}

/* Calculator & Wizard Container */
.calculator-panel {
  background: linear-gradient(145deg, #1A222D 0%, #111822 100%);
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
}

.form-input-dark {
  width: 100%;
  background: #0F1722;
  border: 1px solid #334155;
  color: #FFFFFF;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.form-input-dark:focus {
  outline: none;
  border-color: var(--fsk-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25);
}

.form-input-light {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.form-input-light:focus {
  outline: none;
  border-color: var(--fsk-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

/* Buttons */
.btn-fire-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--fsk-red);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
  text-decoration: none;
}

.btn-fire-primary:hover {
  background-color: var(--fsk-red-hover);
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.45);
  transform: translateY(-1px);
}

.btn-fire-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid #64748B;
  cursor: pointer;
  text-decoration: none;
}

.btn-fire-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #CBD5E1;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* Floating Actions Bar */
.floating-actions-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
}

.floating-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
}

/* Modal Styling */
.fsk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fsk-modal-backdrop.active {
  display: flex;
}

.fsk-modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 5px solid var(--fsk-red);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

/* Mobile Persistent Bottom Action Bar */
.mobile-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--fsk-red);
  padding: 0.55rem 0.75rem;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  body {
    padding-bottom: 4.5rem !important;
  }
}

