/* ==========================================================================
   Before / After Interactive Comparison Slider
   Crony Electronics Pvt Ltd - Elastoclad HR Thermal Auditing
   Line is centered at exactly 50% on load and refresh.
   ========================================================================== */

.ba-comparison-wrapper {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

/* Main Viewport */
.ba-viewport {
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #0d274d;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  outline: none;
}

.ba-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* After Layer (Underneath / Right side) */
.ba-layer-after {
  z-index: 1;
}

/* Before Layer (Clipped / Left side) */
.ba-layer-before {
  z-index: 2;
  clip-path: polygon(0 0, var(--ba-pos, 50%) 0, var(--ba-pos, 50%) 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, var(--ba-pos, 50%) 0, var(--ba-pos, 50%) 100%, 0 100%);
}

.ba-viewport.animating .ba-layer-before,
.ba-viewport.animating .ba-divider-line,
.ba-viewport.animating .ba-handle {
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Divider Line Centered at 50% */
.ba-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 200, 11, 0.9);
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

/* Handle Knob Centered at 50% */
.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--ba-pos, 50%);
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #FFC80B;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: grab;
  color: #0d274d;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Blinking expanding radar halo on handle */
.ba-handle::before,
.ba-handle::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid #FFC80B;
  pointer-events: none;
  animation: baRadarPulse 2s infinite ease-out;
}

.ba-handle::after {
  animation-delay: 1s;
}

@keyframes baRadarPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.ba-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(255, 200, 11, 0.4);
}

.ba-viewport.is-dragging .ba-handle {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.15);
}

.ba-handle-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 14px;
  color: #0d274d;
}

/* Floating Badges */
.ba-badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.25s ease;
}

.ba-badge-before {
  left: 14px;
  background: rgba(220, 38, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ba-badge-after {
  right: 14px;
  background: rgba(0, 154, 78, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Bottom Hint */
.ba-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 39, 77, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Auto-Scanning Indicator Badge */
.ba-auto-status {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 39, 77, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ba-blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFC80B;
  box-shadow: 0 0 8px #FFC80B;
  animation: baPulseDot 1.4s infinite ease-in-out;
}

@keyframes baPulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.65);
  }
}


/* Metrics Comparison Grid */
.ba-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.ba-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.ba-metric-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.ba-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.ba-metric-diff {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

.ba-val-before {
  color: #dc2626;
  font-weight: 700;
  text-decoration: line-through;
  opacity: 0.85;
}

.ba-val-arrow {
  color: #94a3b8;
  font-size: 11px;
}

.ba-val-after {
  color: #009A4E;
  font-weight: 800;
  font-size: 14px;
}

.ba-val-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 2px;
  width: 100%;
}

.ba-tag-green {
  background: rgba(0, 154, 78, 0.12);
  color: #009A4E;
}

.ba-tag-blue {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.ba-tag-amber {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .ba-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ba-metrics-grid {
    grid-template-columns: 1fr;
  }
  .ba-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
  .ba-handle {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   About Us Interactive Thermal Difference & Toggle Switch
   ========================================================================== */

.about-diff-section {
  padding: 70px 0;
  background: #ffffff;
}

.about-eyebrow {
  display: block;
  font-family: var(--font-montserrat, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #000000;
  margin-bottom: 8px;
  text-align: center;
}

.about-main-heading {
  font-family: var(--font-montserrat, 'Montserrat', sans-serif);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  color: #0b1c33;
  text-align: center;
  margin-bottom: 35px;
  line-height: 1.25;
}

.about-story-title {
  font-family: var(--font-montserrat, 'Montserrat', sans-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  color: #0b1c33;
  line-height: 1.3;
  margin-bottom: 18px;
}

.about-story-title span.text-orange {
  color: #f05a28;
}

.about-story-lead {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 24px;
}

.about-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
}

.about-check-item i {
  color: #0284c7;
  font-size: 17px;
  margin-top: 3px;
  flex-shrink: 0;
}

.about-check-item strong {
  color: #0f172a;
}

/* Toggle Switch Bar */
.crony-diff-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 14px;
}

@media (max-width: 991px) {
  .crony-diff-toggle-wrap {
    align-items: center;
    margin-top: 25px;
  }
}

.toggle-hint-curve {
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crony-switch-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.switch-label {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.25s ease;
  cursor: pointer;
}

.switch-label.active {
  color: #f05a28;
}

.crony-toggle-switch {
  position: relative;
  width: 58px;
  height: 32px;
  background: #f05a28;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(240, 90, 40, 0.4);
  transition: background-color 0.3s ease;
  outline: none;
}

.crony-toggle-switch .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crony-toggle-switch.is-with .toggle-knob {
  transform: translateX(26px);
}

/* 1:1 Aspect Ratio Viewport for House Graphic */
.about-house-viewport {
  aspect-ratio: 1 / 1 !important;
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
}

.about-ba-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Unified Menubar: Same Base Color (#ffffff), Yellow (#FFC80B) on Click, Active & Hover */
.navbar-links li > a {
  color: #ffffff;
  border-bottom: 5px solid transparent;
  transition: color 0.25s ease, border-bottom 0.25s ease;
}

.navbar-links li:hover > a,
.navbar-links li > a:hover,
.navbar-links li > a:focus,
.navbar-links li > a:active,
.navbar-links li.active > a,
.navbar-links li > a.active {
  color: #FFC80B !important;
  border-bottom: 5px solid #FFC80B !important;
}

.mobile-nav > ul > li > a:hover,
.mobile-nav > ul > li > a:focus,
.mobile-nav > ul > li > a:active,
.mobile-nav > ul > li.active > a,
.mobile-nav > ul > li > a.active {
  color: #FFC80B !important;
}

/* Perfect Width Alignment for Footer Subscribe Form & Brochure Box */
.subscribe form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 14px !important;
  box-sizing: border-box !important;
}

.subscribe form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 16px !important;
  box-sizing: border-box !important;
  gap: 12px !important;
}

.subscribe input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 52px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  outline: none !important;
  background-color: #ffffff !important;
  border: 1.5px solid transparent !important;
  border-radius: 6px !important;
  color: #1e293b !important;
  font-size: 15px !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
}

.subscribe input:focus {
  border-color: #FFC80B !important;
  box-shadow: 0 0 0 3px rgba(255, 200, 11, 0.3) !important;
}

.subscribe form .btn,
.subscribe form .btn-subscribe {
  height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  padding: 0 32px !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  background-color: var(--theme-colour, #FFC80B) !important;
  color: #0b1c33 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  border: none !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.subscribe form .btn:before,
.subscribe form .btn:after,
.subscribe form .btn-subscribe:before,
.subscribe form .btn-subscribe:after {
  display: none !important;
  content: none !important;
}

.subscribe form .btn:hover,
.subscribe form .btn-subscribe:hover {
  background-color: #0b1c33 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}

.footer-brochure-box {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-top: 18px !important;
  backdrop-filter: blur(4px) !important;
  transition: all 0.25s ease !important;
}

.footer-brochure-box:hover {
  border-color: rgba(255, 200, 11, 0.6) !important;
  background: rgba(0, 0, 0, 0.24) !important;
}

.footer-brochure-box > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.footer-brochure-box h5 {
  color: #ffffff !important;
  font-size: 14px !important;
  margin-bottom: 3px !important;
  font-weight: 700 !important;
}

.footer-brochure-box p {
  color: #e2e8f0 !important;
  font-size: 12.5px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.btn-download-brochure {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background-color: var(--theme-colour, #FFC80B) !important;
  color: #0b1c33 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  height: 48px !important;
  padding: 0 24px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  position: relative !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  text-decoration: none !important;
}

.btn-download-brochure:before,
.btn-download-brochure:after {
  display: none !important;
  content: none !important;
}

.btn-download-brochure:hover {
  background-color: #0b1c33 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}

@media (max-width: 576px) {
  .subscribe form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .subscribe form .btn,
  .subscribe form .btn-subscribe {
    width: 100% !important;
  }
  .footer-brochure-box {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    gap: 12px !important;
  }
  .btn-download-brochure {
    width: 100% !important;
  }
}

