/* ==========================================================================
   Modern Boilers Pvt. Ltd. - Core Brand Stylesheet
   Flat Directory Architecture: public/css/style.css
   Color Scheme: Exact Logo Colors (#2F6CA5 Royal Blue, #1B4570 Deep Blue, #717171 Slate)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Exact Logo Palette */
  --brand-blue: #2F6CA5;
  --brand-blue-hover: #255887;
  --brand-blue-dark: #1B4570;
  --brand-blue-deepest: #0E253F;
  --brand-blue-light: #EBF3FA;
  --brand-blue-subtle: #F0F6FC;
  --brand-slate: #717171;
  --brand-slate-dark: #334155;
  --brand-slate-light: #94A3B8;
  
  /* Contrast Accents */
  --accent-gold: #D97706;
  --accent-gold-light: #FEF3C7;
  --accent-emerald: #10B981;
  
  /* Layout & Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --neutral-bg: #F8FAFC;
  --card-border: rgba(47, 108, 165, 0.12);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: #1E293B;
  background-color: var(--neutral-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0E253F;
}
::-webkit-scrollbar-thumb {
  background: #2F6CA5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4A88C5;
}

/* Brand Selection */
::selection {
  background-color: #2F6CA5;
  color: #FFFFFF;
}

/* Header Styles */
.header-glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(47, 108, 165, 0.12);
  transition: all 0.3s ease;
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -10px rgba(14, 37, 63, 0.12);
}

/* Navigation Links & Dropdown / Mega Menu System */
.nav-link-item {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 24px 0;
  transition: color 0.18s ease;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: #2F6CA5;
}

/* Active blue underline indicator matching user screenshot */
.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.nav-dropdown-wrapper:hover .nav-link-item::after,
.nav-dropdown-wrapper.open .nav-link-item::after,
.nav-link-item.active::after {
  background-color: #2F6CA5;
}

.dropdown-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease, color 0.18s ease;
  stroke-width: 2.2;
}

.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

/* Invisible hover bridge to prevent premature mouseout */
.nav-dropdown-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

/* Base Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(47, 108, 165, 0.18);
  border-radius: 16px;
  box-shadow: 0 24px 50px -10px rgba(14, 37, 63, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  pointer-events: none;
}

/* Mega Menu Sizing & Positioning */
.mega-menu-products {
  left: 50%;
  transform: translateX(-35%) translateY(10px);
  width: 940px;
  max-width: 94vw;
}

.mega-menu-services {
  left: 50%;
  transform: translateX(-45%) translateY(10px);
  width: 820px;
  max-width: 90vw;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu,
.nav-dropdown-wrapper.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-wrapper:hover .mega-menu-products,
.nav-dropdown-wrapper.open .mega-menu-products {
  transform: translateX(-35%) translateY(0);
}

.nav-dropdown-wrapper:hover .mega-menu-services,
.nav-dropdown-wrapper.open .mega-menu-services {
  transform: translateX(-45%) translateY(0);
}

.nav-dropdown-wrapper:hover .dropdown-chevron,
.nav-dropdown-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
  color: #2F6CA5;
}

.dropdown-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2F6CA5;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(47, 108, 165, 0.12);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1F2937;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background-color: #F0F6FC;
  color: #2F6CA5;
  padding-left: 14px;
}

.dropdown-item-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  background: #EBF3FA;
  color: #2F6CA5;
  letter-spacing: 0.02em;
}

/* Modern Filter Buttons */
.filter-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #2F6CA5;
  color: #2F6CA5;
  background: #F0F6FC;
}

.filter-btn.active {
  background: #2F6CA5;
  border-color: #2F6CA5;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(47, 108, 165, 0.3);
}

/* Glassmorphism Badge Cards */
.hero-glass-card {
  background: rgba(21, 55, 91, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: #EBF3FA;
  color: #1B4570;
  border: 1px solid rgba(47, 108, 165, 0.18);
}

/* Comparison Badges */
.comparison-pill-yes {
  background: #DCFCE7;
  color: #166534;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comparison-pill-no {
  background: #FEE2E2;
  color: #991B1B;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Hover Accent on Interactive Cards */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(47, 108, 165, 0.18);
}

/* Hero Section with Logo Blue Gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0B1C30 0%, #15375B 50%, #205385 100%);
}

.hero-mesh-overlay {
  background-image: 
    radial-gradient(at 10% 20%, rgba(47, 108, 165, 0.35) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(27, 69, 112, 0.4) 0px, transparent 50%),
    linear-gradient(rgba(14, 37, 63, 0.85), rgba(14, 37, 63, 0.95));
}

.grid-blueprint-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Pulse animation for Live Engineering Dispatch */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Floating WhatsApp Support Button (Icon Only - Calmer Subtle Presence) */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -3px rgba(37, 211, 102, 0.45), 0 3px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
  animation: wa-float-breathe 6s infinite ease-in-out;
}

/* Very gentle, calm ambient elevation drift (slight and unobtrusive) */
@keyframes wa-float-breathe {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 22px -3px rgba(37, 211, 102, 0.42), 0 3px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: translateY(-2.5px);
    box-shadow: 0 12px 26px -3px rgba(37, 211, 102, 0.52), 0 4px 10px rgba(0, 0, 0, 0.12);
  }
}

.whatsapp-floating-btn:hover {
  background: linear-gradient(135deg, #28E06D 0%, #19A650 100%);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 28px -4px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.14);
  animation: none;
}

.whatsapp-floating-btn:active {
  transform: scale(0.95);
}

/* Authentic WhatsApp Vector Icon */
.whatsapp-svg-icon {
  width: 30px;
  height: 30px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.whatsapp-floating-btn:hover .whatsapp-svg-icon {
  transform: scale(1.05);
}

/* Calm Live Status Indicator Badge */
.whatsapp-status-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.whatsapp-status-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #34D399;
  opacity: 0.6;
  animation: wa-ping 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.whatsapp-status-core {
  position: relative;
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: #10B981;
  border: 1.5px solid #FFFFFF;
}

@keyframes wa-ping {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  40%, 100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Subtle Desktop Hover Tooltip */
.whatsapp-hover-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #0E253F;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 8px 24px -4px rgba(14, 37, 63, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-hover-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0E253F;
}

@media (min-width: 768px) {
  .whatsapp-floating-btn:hover .whatsapp-hover-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
}

/* Floating WhatsApp Popup Card (Compact & User-Friendly) */
.whatsapp-chat-card {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 312px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 40px -10px rgba(14, 37, 63, 0.28), 0 0 0 1px rgba(14, 37, 63, 0.08);
  z-index: 9998;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
}

.whatsapp-chat-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Product & Service Cards */
.industrial-card {
  background: #FFFFFF;
  border: 1px solid rgba(47, 108, 165, 0.12);
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.industrial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 108, 165, 0.4);
  box-shadow: 0 16px 36px -10px rgba(47, 108, 165, 0.15);
}

.img-contain-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #F8FAFC 0%, #EDF4FB 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(47, 108, 165, 0.08);
}

.img-contain-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.industrial-card:hover .img-contain-box img {
  transform: scale(1.06);
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.15s ease;
  background-color: #FFFFFF;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 108, 165, 0.18);
}

/* FAQ Accordion Transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
  max-height: 600px;
  transition: max-height 0.4s ease-in-out;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Print Cleanliness */
@media print {
  .whatsapp-floating-btn,
  .whatsapp-chat-card,
  header {
    display: none !important;
  }
}

/* Subpage & Modal View Transitions */
#subpage-view {
  animation: fadeInSubpage 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSubpage {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#rfq-modal-backdrop {
  transition: opacity 0.25s ease;
}

#rfq-modal {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#rfq-modal > div {
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mega Menu Hover Preview Transitions */
.mega-menu-products .col-span-3.bg-gradient-to-b {
  min-height: 290px;
  transition: all 0.25s ease;
}

