/* Cards de risco — seção abaixo do hero */

.section--hero-risks {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--bg-page);
}

.section--hero-risks .section-header--compact {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

.section--hero-risks .section-title {
  color: var(--navy);
}

.section--hero-risks .section-subtitle {
  color: var(--ink-muted, #4a5d73);
  margin-top: 0.5rem;
}

.hero-risks-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-risks {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: min(76rem, 100%);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero-risks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.hero-risk {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0.9rem;
  border-radius: var(--radius-ui);
  background: linear-gradient(145deg, rgba(8, 42, 82, 0.92) 0%, rgba(13, 58, 110, 0.88) 100%);
  border: 1px solid rgba(30, 111, 217, 0.35);
  box-shadow: 0 8px 24px rgba(13, 58, 110, 0.2);
}

.hero-risk__body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hero-risk__title {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.hero-risk__desc {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #fff;
  font-weight: 500;
}

.hero-risk__cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* theme-light .section p força navy — textos dos cards sempre brancos */
.theme-light .section--hero-risks .hero-risk__title,
.theme-light .section--hero-risks .hero-risk__desc,
.theme-light .section--hero-risks .hero-risk__body p,
.theme-light .section--hero-risks .hero-risk__cta {
  color: #fff;
}

.hero-risk__cta:hover {
  color: var(--orange);
}

.hero-risk__icon {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(8, 42, 82, 0.95);
  border: 1px solid rgba(30, 111, 217, 0.55);
  box-shadow:
    0 0 14px rgba(30, 111, 217, 0.55),
    inset 0 0 12px rgba(30, 111, 217, 0.15);
}

.hero-risk__icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 111, 217, 0.45) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-risk__icon::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  background-color: var(--blue-cta);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.hero-risk__icon--calendar::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 2v2H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-2V2h-2v2h-4V2H8zm10 6H6v10h12V8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 2v2H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-2V2h-2v2h-4V2H8zm10 6H6v10h12V8z'/%3E%3C/svg%3E");
}

.hero-risk__icon--alert::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2L1 21h22L12 2zm0 4.5L19.5 19h-15L12 6.5zM11 10h2v5h-2v-5zm0 6h2v2h-2v-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2L1 21h22L12 2zm0 4.5L19.5 19h-15L12 6.5zM11 10h2v5h-2v-5zm0 6h2v2h-2v-2z'/%3E%3C/svg%3E");
}

.hero-risk__icon--lock::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 8h-1V6a4 4 0 00-8 0v2H7a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V10a2 2 0 00-2-2zm-3 0H10V6a2 2 0 014 0v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 8h-1V6a4 4 0 00-8 0v2H7a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V10a2 2 0 00-2-2zm-3 0H10V6a2 2 0 014 0v2z'/%3E%3C/svg%3E");
}

/* Mobile: caixas menores + respiro nas laterais */
@media (max-width: 767px) {
  .hero-risks-wrap {
    margin-top: 1rem;
    padding-inline: var(--gutter);
  }

  .hero-risks {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    gap: 0.55rem;
  }

  .hero-risk {
    padding: 0.7rem 0.65rem;
    gap: 0.65rem;
    border-radius: 0.75rem;
  }

  .hero-risk__icon {
    width: 2.85rem;
    height: 2.85rem;
  }

  .hero-risk__icon::after {
    inset: 0.62rem;
  }

  .hero-risk__icon::before {
    inset: -7px;
  }

  .hero-risk__title {
    font-size: 0.82rem;
  }

  .hero-risk__desc {
    font-size: 0.74rem;
    margin-bottom: 0.25rem;
  }

  .hero-risk__cta {
    font-size: 0.7rem;
  }
}
