/* =================================================================
   HUBSPOT CUSTOM MODULE - CSS PANEL
   Palette: #00754A | #80BAA5 | #EF8943 | #33916e | #17392F
   ================================================================= */

:root {
  --hs-green-dark: #17392F;
  --hs-green-primary: #00754A;
  --hs-green-mid: #33916e;
  --hs-green-light: #80BAA5;
  --hs-orange-accent: #EF8943;
  --hs-white: #FFFFFF;
  --hs-card-bg-elevated: rgba(23, 57, 47, 0.65);
  --hs-card-border: rgba(128, 186, 165, 0.22);
}

.hs-exposure-section {
  position: relative;
  background-color: #0b1e19;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 117, 74, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, #0c211b 0%, #17392F 100%);
  padding: 100px 24px 110px;
  overflow: hidden;
  color: var(--hs-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.hs-exposure-section * {
  box-sizing: border-box;
}

/* Fundo Glow */
.exposure-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.orb-center {
  width: 600px;
  height: 600px;
  background: var(--hs-green-mid);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Container */
.exposure-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Cabeçalho */
.exposure-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 60px auto;
}

.exposure-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hs-orange-accent);
  background: rgba(239, 137, 67, 0.12);
  border: 1px solid rgba(239, 137, 67, 0.35);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.exposure-title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
  color: var(--hs-white);
}

.exposure-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--hs-white);
  margin: 0 0 16px 0;
  font-weight: 600;
}

.highlight-lead {
  color: var(--hs-green-light);
  border-bottom: 2px solid var(--hs-green-mid);
  padding-bottom: 2px;
}

.exposure-support {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto;
  max-width: 760px;
}

/* Grid de Cards */
.exposure-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Estilo dos Cards Operacionais */
.risk-card {
  background: var(--hs-card-bg-elevated);
  border: 1px solid var(--hs-card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.risk-card:hover {
  transform: translateY(-6px);
  border-color: var(--hs-green-light);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(128, 186, 165, 0.15);
  background: rgba(23, 57, 47, 0.85);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(0, 117, 74, 0.4);
  border: 1px solid rgba(128, 186, 165, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hs-green-light);
  transition: transform 0.3s ease, background 0.3s ease;
}

.risk-card:hover .card-icon-box {
  transform: scale(1.08);
  background: var(--hs-green-primary);
  color: var(--hs-white);
}

.risk-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hs-green-light);
  background: rgba(128, 186, 165, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(128, 186, 165, 0.2);
}

.card-title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--hs-white);
  margin: 0 0 12px 0;
}

.card-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px 0;
  flex: 1;
}

/* Rodapé do Card com Alerta */
.card-footer-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(128, 186, 165, 0.15);
}

.alert-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hs-orange-accent);
}

.alert-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #FFB380;
}

/* Responsividade */
@media (max-width: 900px) {
  .hs-exposure-section {
    padding: 70px 20px 80px;
  }

  .exposure-title {
    font-size: 30px;
  }

  .exposure-lead {
    font-size: 16px;
  }

  .exposure-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .risk-card {
    padding: 24px 22px;
  }
}
/* =================================================================
   HUBSPOT CUSTOM MODULE - JS PANEL
   Interatividade de Foco e Destaque nos Cards de Risco
   ================================================================= */

document.addEventListener("DOMContentLoaded", function () {
  const cards = document.querySelectorAll(".risk-card");

  cards.forEach((card) => {
    // Efeito sutil de foco: atenua os outros cards quando um está em hover
    card.addEventListener("mouseenter", function () {
      cards.forEach((otherCard) => {
        if (otherCard !== card) {
          otherCard.style.opacity = "0.7";
          otherCard.style.transform = "scale(0.99)";
        }
      });
    });

    card.addEventListener("mouseleave", function () {
      cards.forEach((otherCard) => {
        otherCard.style.opacity = "1";
        otherCard.style.transform = "";
      });
    });
  });
});