/* ═══════════════════════════════════════════════════════════
   HVAC & AHU MONITORING PAGE
   page-hvac.css
════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.hvac-hero {
  background: var(--color-white);
  padding: 130px 0 60px;
  overflow: hidden;
  position: relative;
}

.hvac-hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hvac-hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(14,42,94,.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hvac-hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}

/* Tags */
.hvac-hero__tags { display: flex; gap: 8px; margin-bottom: 18px; }

.hvac-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: .72rem; font-weight: 700;
  background: rgba(14,42,94,.06);
  border: 1px solid rgba(14,42,94,.12);
  color: var(--color-navy);
}

.hvac-tag--teal {
  background: rgba(0,194,168,.08);
  border-color: rgba(0,194,168,.25);
  color: var(--color-teal);
}

.hvac-hero__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.hvac-accent { color: var(--color-teal); }

.hvac-hero__desc {
  font-size: .95rem; line-height: 1.75;
  color: var(--color-slate);
  max-width: 440px; margin-bottom: 24px;
}

.hvac-hero__stats {
  display: flex; gap: 28px;
  margin-bottom: 28px;
}

.hvac-stat { display: flex; flex-direction: column; gap: 3px; }

.hvac-stat strong {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 900;
  color: var(--color-teal); line-height: 1;
}

.hvac-stat span {
  font-family: var(--font-heading);
  font-size: .68rem; color: var(--color-slate);
}

.hvac-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Floor Plan Visual ── */
.hvac-floorplan {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hvac-fp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
}

.hvac-fp-title {
  font-family: var(--font-heading);
  font-size: .75rem; font-weight: 600;
  color: var(--color-charcoal);
  display: flex; align-items: center; gap: 7px;
}

.hvac-fp-title i { color: var(--color-teal); }

.hvac-fp-live {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-heading);
  font-size: .72rem; font-weight: 700;
  color: #ef4444;
}

.hvac-fp-live span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: livePulse 1.2s ease-in-out infinite;
}

.hvac-fp-svg { width: 100%; display: block; }

/* Alarm Ticker */
.hvac-ticker {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  background: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  min-height: 38px;
}

.hvac-ticker__label {
  font-family: 'Courier New', monospace;
  font-size: .62rem; font-weight: 700;
  color: var(--color-teal);
  letter-spacing: .1em;
  flex-shrink: 0;
  border: 1px solid rgba(0,194,168,.3);
  padding: 2px 7px; border-radius: 3px;
}

.hvac-ticker__items { flex: 1; position: relative; height: 20px; }

.hvac-tick {
  position: absolute; top: 0; left: 0;
  font-family: 'Courier New', monospace;
  font-size: .68rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .4s ease;
  display: flex; align-items: center; gap: 6px;
}

.hvac-tick.is-active { opacity: 1; }

.hvac-tick--crit { color: #ef4444; }
.hvac-tick--warn { color: #d97706; }
.hvac-tick--info { color: #2563eb; }

/* ── Comparison Section ── */
.hvac-compare-wrap {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: start;
}

.hvac-compare-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
}

.hvac-compare-panel--old {
  border-color: rgba(239,68,68,.3);
  background: #0f0f0f;
}

.hvac-compare-panel--argus {
  border-color: rgba(0,194,168,.3);
  background: var(--color-white);
}

.hvac-compare-panel__badge {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 700;
}

.hvac-compare-panel__badge--bad  { background: rgba(239,68,68,.1);  color: #fca5a5; border-bottom: 1px solid rgba(239,68,68,.2); }
.hvac-compare-panel__badge--good { background: rgba(0,194,168,.08); color: var(--color-teal); border-bottom: 1px solid rgba(0,194,168,.15); }

/* Old BMS console */
.hvac-old-console {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hvac-old-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hvac-old-title {
  font-family: 'Courier New', monospace;
  font-size: .68rem; font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
}

.hvac-old-count {
  font-family: 'Courier New', monospace;
  font-size: .7rem; font-weight: 700;
  color: #ef4444;
  animation: livePulse 1.5s ease-in-out infinite;
}

.hvac-old-alarms {
  max-height: 260px; overflow: hidden;
  position: relative;
}

.hvac-old-alarms::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, #0a0a0a);
  pointer-events: none;
}

.hvac-old-alarm {
  display: grid;
  grid-template-columns: 56px 1fr 44px;
  gap: 8px;
  padding: 5px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  align-items: center;
}

.hoa-time {
  font-family: 'Courier New', monospace;
  font-size: .62rem; color: rgba(255,255,255,.3);
}

.hoa-code {
  font-family: 'Courier New', monospace;
  font-size: .65rem; color: rgba(255,255,255,.55);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hoa-val {
  font-family: 'Courier New', monospace;
  font-size: .62rem; font-weight: 700;
  text-align: right;
}

.hvac-old-alarm--red   .hoa-val { color: #ef4444; }
.hvac-old-alarm--amber .hoa-val { color: #f59e0b; }

.hoa-flash { animation: rowFlash 1.5s ease-in-out infinite; }

@keyframes rowFlash {
  0%,100% { background: transparent; }
  50% { background: rgba(239,68,68,.08); }
}

.hvac-old-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px;
  font-family: 'Courier New', monospace;
  font-size: .62rem; color: rgba(255,255,255,.25);
}

.hvac-old-mute { color: rgba(239,68,68,.5); }

/* Pain / win lists */
.hvac-pain-list, .hvac-win-list {
  display: flex; flex-direction: column; gap: 0;
}

.hvac-pain, .hvac-win {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  font-family: var(--font-heading);
  font-size: .78rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hvac-pain { color: rgba(255,255,255,.5); }
.hvac-win  { color: var(--color-charcoal); border-bottom-color: var(--color-border); }

.hvac-pain i { color: #ef4444; flex-shrink: 0; }
.hvac-win  i { color: #22c55e; flex-shrink: 0; }

/* VS divider */
.hvac-vs {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: 80px;
  gap: 0;
}

.hvac-vs__circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: white;
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  flex-shrink: 0;
}

.hvac-vs__line {
  width: 2px; flex: 1;
  background: linear-gradient(to bottom, rgba(14,42,94,.5), transparent);
}

/* Argus console */
/* .hvac-argus-console {} */

.hvac-argus-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
}

.hvac-argus-title {
  font-family: var(--font-heading);
  font-size: .78rem; font-weight: 700;
  color: var(--color-charcoal);
  display: flex; align-items: center; gap: 7px;
}

.hvac-argus-counts { display: flex; gap: 8px; }

.hac-crit, .hac-warn, .hac-ack {
  font-family: var(--font-heading);
  font-size: .68rem; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-pill);
}

.hac-crit { background: rgba(239,68,68,.1);  color: #ef4444; }
.hac-warn { background: rgba(245,158,11,.1); color: #f59e0b; }
.hac-ack  { background: rgba(16,185,129,.1); color: #10b981; }

.hvac-argus-alarms {
  display: flex; flex-direction: column; gap: 0;
}

.hvac-argus-alarm {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
  transition: background var(--transition);
}

.hvac-argus-alarm:hover { background: var(--color-off-white); }

.hvac-argus-alarm--crit { border-left: 3px solid #ef4444; }
.hvac-argus-alarm--warn { border-left: 3px solid #f59e0b; }
.hvac-argus-alarm--ack  { border-left: 3px solid #10b981; opacity: .75; }

.haa-left { display: flex; flex-direction: column; gap: 4px; }

.haa-sev {
  font-family: var(--font-heading);
  font-size: .65rem; font-weight: 800;
  display: flex; align-items: center; gap: 4px;
  letter-spacing: .04em;
}

.haa-sev--crit { color: #ef4444; }
.haa-sev--warn { color: #f59e0b; }
.haa-sev--ack  { color: #10b981; }

.haa-time {
  font-family: var(--font-heading);
  font-size: .62rem; color: var(--color-slate);
}

.haa-main { display: flex; flex-direction: column; gap: 3px; }

.haa-title {
  font-family: var(--font-heading);
  font-size: .82rem; font-weight: 700;
  color: var(--color-navy);
}

.haa-loc {
  font-family: var(--font-heading);
  font-size: .7rem; color: var(--color-slate);
  display: flex; align-items: center; gap: 4px;
}

.haa-context {
  font-size: .75rem; line-height: 1.5;
  color: var(--color-slate);
  margin-top: 2px;
}

.haa-context strong { color: var(--color-navy); }

.haa-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.haa-ack-btn {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: .68rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: all var(--transition);
}

.haa-ack-btn--crit { background: rgba(239,68,68,.1); color: #ef4444; border: 1px solid rgba(239,68,68,.25); }
.haa-ack-btn--crit:hover { background: #ef4444; color: white; }
.haa-ack-btn--warn { background: rgba(245,158,11,.1); color: #f59e0b; border: 1px solid rgba(245,158,11,.25); }
.haa-ack-btn--warn:hover { background: #f59e0b; color: white; }

.haa-owner {
  font-family: var(--font-heading);
  font-size: .65rem; color: var(--color-slate);
  white-space: nowrap;
}

.haa-owner--ack { color: #10b981; }

.haa-badge-wo {
  padding: 3px 9px;
  background: rgba(37,99,235,.1);
  color: #2563eb;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: .65rem; font-weight: 700;
}

.hvac-argus-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  background: rgba(0,194,168,.04);
  border-top: 1px solid rgba(0,194,168,.12);
  font-family: var(--font-heading);
  font-size: .74rem; color: var(--color-slate);
  flex-wrap: wrap; gap: 8px;
}

.hvac-argus-footer strong { color: var(--color-navy); }

/* ── Systems Grid ── */
.hvac-systems { background: var(--color-midnight); }

.hvac-systems-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.hvac-sys-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.hvac-sys-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(0,194,168,.2);
  transform: translateY(-2px);
}

.hvac-sys-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}

.hvac-sys-card__body { display: flex; flex-direction: column; gap: 3px; flex: 1; }

.hvac-sys-card__name {
  font-family: var(--font-heading);
  font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.85);
}

.hvac-sys-card__full {
  font-family: var(--font-heading);
  font-size: .68rem; color: rgba(255,255,255,.35);
}

.hvac-sys-card__params {
  font-family: 'Courier New', monospace;
  font-size: .62rem;
  color: rgba(0,194,168,.6);
  line-height: 1.5; margin-top: 2px;
}

/* ── Intelligence cards ── */
.hvac-intel-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.hvac-intel-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.hvac-intel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.hvac-intel-card--dark {
  background: var(--color-midnight);
  border-color: rgba(255,255,255,.08);
}

.hvac-intel-card--dark h3 { color: white; }
.hvac-intel-card--dark p  { color: rgba(255,255,255,.5); }

.hvac-intel-card__num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-heading);
  font-size: 2.5rem; font-weight: 900;
  color: rgba(255,255,255,.04);
  line-height: 1;
}

.hvac-intel-card--dark .hvac-intel-card__num { color: rgba(255,255,255,.06); }

.hvac-intel-card__icon {
  font-size: 1.6rem; margin-bottom: 16px; display: block;
}

.hvac-intel-card h3 {
  font-size: .95rem; font-weight: 700;
  color: var(--color-navy); margin-bottom: 8px;
}

.hvac-intel-card p {
  font-size: .82rem; line-height: 1.7;
  color: var(--color-slate); margin-bottom: 16px;
}

.hvac-intel-metric {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.hvac-intel-card:not(.hvac-intel-card--dark) .hvac-intel-metric { border-top-color: var(--color-border); }

.hvac-intel-metric strong {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 900;
  color: var(--color-teal);
}

.hvac-intel-metric span {
  font-family: var(--font-heading);
  font-size: .7rem; color: rgba(255,255,255,.35);
}

.hvac-intel-card:not(.hvac-intel-card--dark) .hvac-intel-metric span { color: var(--color-slate); }

/* ── Metrics strip ── */
.hvac-metrics {
  background: var(--color-navy);
  padding-block: 48px;
}

.hvac-metrics__grid {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}

.hvac-metric-item {
  flex: 1; text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  min-width: 110px;
}

.hvac-metric-item > i {
  font-size: 1.2rem; color: var(--color-teal); margin-bottom: 2px;
}

.hvac-metric-item strong {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 900;
  color: white; line-height: 1;
}

.hvac-metric-item span {
  font-size: .72rem; color: rgba(255,255,255,.5);
  font-family: var(--font-heading); font-weight: 500;
}

/* ── CTA ── */
.hvac-cta__inner {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
}

.hvac-cta__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0,194,168,.1); color: var(--color-teal);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.hvac-cta__inner h2 {
  font-size: 1.9rem; font-weight: 800;
  color: var(--color-navy); margin-bottom: 12px; line-height: 1.2;
}

.hvac-cta__inner p {
  font-size: .95rem; color: var(--color-slate);
  max-width: 520px; margin: 0 auto 28px; line-height: 1.7;
}

.hvac-cta__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .hvac-systems-grid  { grid-template-columns: repeat(3,1fr); }
  .hvac-intel-grid    { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 1024px) {
  .hvac-hero__inner   { grid-template-columns: 1fr; }
  .hvac-hero__visual  { display: none; }
  .hvac-compare-wrap  { grid-template-columns: 1fr; gap: 24px; }
  .hvac-vs            { display: none; }
  .hvac-systems-grid  { grid-template-columns: repeat(2,1fr); }
  .hvac-intel-grid    { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .hvac-systems-grid { grid-template-columns: 1fr; }
  .hvac-intel-grid   { grid-template-columns: 1fr; }
  .hvac-argus-alarm  { grid-template-columns: 1fr; }
  .hvac-metrics__grid{ justify-content: center; }
  .hvac-cta__inner   { padding: 32px 20px; }
}

/* ── Hamburger dark on light header ── */
@media (max-width: 768px) {
  .site-header:not(.is-scrolled) .hamburger__line {
    background: var(--color-navy);
  }
}
