/* =========================================================================
   HeatExchange.in - Clean Modern Industrial Light Theme Stylesheet
   Theme: High-Performance Thermal Engineering & Heat Transfer Solutions (Light Mode)
   Colors: Clean Slate/White (#FFFFFF, #F8FAFC), Deep Navy Text (#0F172A),
           Hot Thermal Orange (#EA580C / #C2410C), Cooling Cyan-Blue (#0284C7 / #0369A1),
           Precision Border (#E2E8F0)
   ========================================================================= */

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

:root {
  --primary-navy: #0F172A;
  --primary-blue: #0284C7;
  --accent-orange: #EA580C;
  --accent-orange-hover: #C2410C;
  --accent-cyan: #0284C7;
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F1F5F9;
  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);

  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* Global Inter Typography */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display) !important;
  letter-spacing: -0.025em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Hide scrollbar for carousels & sliders */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Thermal Glow & Gradients */
.gradient-thermal {
  background: linear-gradient(135deg, #EA580C 0%, #D97706 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-blue-cyan {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-light-radial {
  background: radial-gradient(circle at 90% 10%, rgba(234, 88, 12, 0.06) 0%, transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(2, 132, 199, 0.06) 0%, transparent 45%);
}

.bg-grid-pattern-light {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* Light Theme Cards */
.light-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.light-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.light-card-orange:hover {
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 12px 30px -8px rgba(234, 88, 12, 0.18);
  transform: translateY(-3px);
}

.light-card-cyan:hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 12px 30px -8px rgba(2, 132, 199, 0.18);
  transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #FFFFFF;
  color: #0F172A !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: 1px solid #CBD5E1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #0284C7;
  color: #0284C7 !important;
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  text-decoration: none;
  cursor: pointer;
}

.btn-cyan:hover {
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  transform: translateY(-2px);
}

/* Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-orange {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}

.badge-cyan {
  background: #F0F9FF;
  color: #0369A1;
  border: 1px solid #E0F2FE;
}

.badge-emerald {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #D1FAE5;
}

/* Animated Heat Line */
@keyframes flowPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-heatline {
  background: linear-gradient(90deg, #EA580C, #F59E0B, #0284C7, #0284C7, #EA580C);
  background-size: 300% 300%;
  animation: flowPulse 6s ease infinite;
}

/* Modals */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
}

/* Floating WhatsApp & RFQ Widget */
.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-whatsapp {
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

.floating-rfq {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #EA580C, #C2410C);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
  transition: var(--transition);
}

.floating-rfq:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.6);
}

.font-mono-tech {
  font-family: var(--font-mono);
}

/* Pulse indicator */
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
}
.live-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* =========================================================================
   Mobile Responsiveness & Viewport Optimization
   ========================================================================= */

/* Prevent horizontal viewport scroll */
html, body {
  max-width: 100vw;
  overflow-x: clip;
}

/* Ensure all media stays within bounds */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Text wrap safety for prose and body content */
p {
  overflow-wrap: break-word;
}

/* Header & Navigation Single-Line Integrity */
.top-utility-bar,
.top-utility-bar *,
#mainHeader,
#mainHeader nav > a,
#mainHeader nav > div > a,
.btn-primary, .btn-secondary, .btn-cyan {
  white-space: nowrap !important;
  word-break: normal !important;
}

#mainHeader nav .group div a div,
#mainHeader nav .group div a span {
  white-space: normal !important;
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  /* Buttons touch optimization */
  .btn-primary, .btn-secondary, .btn-cyan {
    padding: 10px 16px;
    font-size: 0.8rem;
    min-height: 42px;
    text-align: center;
  }

  /* Compact floating contact widget on mobile */
  .floating-contact-btn {
    bottom: 16px;
    right: 14px;
    gap: 8px;
    z-index: 45;
  }

  .floating-whatsapp, .floating-rfq {
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .floating-whatsapp svg, .floating-rfq svg, .floating-rfq i {
    width: 20px;
    height: 20px;
  }

  /* Modals on small screens */
  .modal-backdrop {
    padding: 12px;
  }

  /* Tables horizontal scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

