/* =================================================================
   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-glass: rgba(23, 57, 47, 0.7);
  --hs-border-glass: rgba(128, 186, 165, 0.22);
}

.hs-section {
  position: relative;
  background-color: var(--hs-green-dark);
  padding: 95px 24px;
  overflow: hidden;
  color: var(--hs-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

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

.hs-impact-metric-section {
  background: linear-gradient(180deg, #17392F 0%, #0e241e 100%);
  border-bottom: 1px solid rgba(128, 186, 165, 0.15);
}

.hs-selbetti-solution-section {
  background: radial-gradient(circle at 50% 100%, rgba(0, 117, 74, 0.3) 0%, transparent 60%),
              linear-gradient(180deg, #0e241e 0%, #17392F 100%);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Background Glows */
.section-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

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

.orb-green-top {
  width: 500px;
  height: 500px;
  background: var(--hs-green-mid);
  top: -100px;
  right: -50px;
}

.orb-orange-bottom {
  width: 450px;
  height: 450px;
  background: var(--hs-orange-accent);
  bottom: -100px;
  left: -50px;
  opacity: 0.18;
}

/* Typography & Headers */
.section-header {
  margin-bottom: 50px;
}

.text-center { text-align: center; }

.section-pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hs-green-light);
  background: rgba(128, 186, 165, 0.12);
  border: 1px solid rgba(128, 186, 165, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.pill-brand {
  color: #FFB380;
  background: rgba(239, 137, 67, 0.14);
  border-color: rgba(239, 137, 67, 0.4);
}

.section-h2 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin: 0 0 14px 0;
}

.text-accent-mint {
  color: var(--hs-green-light);
}

.section-body-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto;
}

.max-w-850 { max-width: 850px; }

/* Diagrama de Fluxo */
.flow-diagram-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 50px 0 45px 0;
}

.flow-step-card {
  flex: 1;
  background: var(--hs-card-glass);
  border: 1px solid var(--hs-border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 22px 18px;
  position: relative;
  transition: all 0.3s ease;
  min-height: 185px;
  display: flex;
  flex-direction: column;
}

.flow-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--hs-green-light);
  background: rgba(23, 57, 47, 0.9);
}

.step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--hs-green-light);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--hs-white);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.step-content p {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.flow-arrow {
  color: var(--hs-green-light);
  font-size: 20px;
  opacity: 0.6;
  font-weight: bold;
}

.step-highlight {
  background: linear-gradient(145deg, rgba(0, 117, 74, 0.6) 0%, rgba(23, 57, 47, 0.9) 100%);
  border-color: var(--hs-green-light);
  box-shadow: 0 10px 30px rgba(0, 117, 74, 0.25);
}

.highlight-badge {
  background: var(--hs-orange-accent);
  color: white;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

/* Frase Âncora */
.anchor-quote-banner {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(128, 186, 165, 0.35);
  border-radius: 16px;
  padding: 26px 36px;
  text-align: center;
  position: relative;
}

.quote-symbol {
  font-size: 40px;
  line-height: 1;
  color: var(--hs-green-light);
  opacity: 0.4;
  margin-bottom: -10px;
  font-family: Georgia, serif;
}

.quote-text {
  font-size: 20px;
  line-height: 1.45;
  color: var(--hs-white);
  font-weight: 600;
  margin: 0;
}

.quote-highlight {
  color: #FFB380;
  text-decoration: underline;
  text-decoration-color: var(--hs-orange-accent);
  text-underline-offset: 4px;
}

/* Solução Selbetti - Grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.solution-card {
  background: var(--hs-card-glass);
  border: 1px solid var(--hs-border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 34px 30px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--hs-green-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sol-card-featured {
  border-color: var(--hs-green-mid);
  background: linear-gradient(135deg, rgba(51, 145, 110, 0.25) 0%, rgba(23, 57, 47, 0.85) 100%);
}

.featured-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--hs-orange-accent);
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 100px;
}

.solution-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.solution-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(0, 117, 74, 0.4);
  border: 1px solid var(--hs-border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hs-green-light);
}

.icon-accent {
  background: var(--hs-green-primary);
  color: var(--hs-white);
}

.sol-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--hs-green-light);
  letter-spacing: 0.5px;
}

.tag-accent {
  color: #FFB380;
}

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

.sol-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Callout de Fechamento */
.solution-final-callout {
  background: linear-gradient(135deg, rgba(0, 117, 74, 0.3) 0%, rgba(23, 57, 47, 0.9) 100%);
  border: 1px solid rgba(128, 186, 165, 0.35);
  border-radius: 18px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.callout-spark-icon {
  font-size: 28px;
}

.callout-content-wrap p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--hs-white);
  margin: 0;
}

.callout-content-wrap strong {
  color: var(--hs-green-light);
}

.btn-callout-action {
  background: var(--hs-orange-accent);
  color: var(--hs-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(239, 137, 67, 0.3);
}

.btn-callout-action:hover {
  background: #f09555;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(239, 137, 67, 0.45);
}

/* Responsividade */
@media (max-width: 1024px) {
  .flow-diagram-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  .flow-arrow {
    transform: rotate(90deg);
    margin: -6px 0;
  }
  .flow-step-card {
    width: 100%;
    min-height: auto;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solution-final-callout {
    flex-direction: column;
    text-align: center;
  }
  .btn-callout-action {
    width: 100%;
  }
}
/* =================================================================
   HUBSPOT CUSTOM MODULE - JS PANEL
   Interatividade de Fluxo Sequencial e Destaque Dinâmico
   ================================================================= */

document.addEventListener("DOMContentLoaded", function () {
  const flowCards = document.querySelectorAll(".flow-step-card");

  flowCards.forEach((card, index) => {
    card.addEventListener("mouseenter", function () {
      // Destaque suave em cascata até o card selecionado
      flowCards.forEach((c, i) => {
        if (i <= index) {
          c.style.borderColor = "var(--hs-green-light)";
          c.style.opacity = "1";
        } else {
          c.style.opacity = "0.5";
        }
      });
    });

    card.addEventListener("mouseleave", function () {
      flowCards.forEach((c) => {
        c.style.borderColor = "";
        c.style.opacity = "1";
      });
    });
  });
});