/* ============================================================
   Setor Seguro — Padrão figurativo (base visual)
   Referência: pills da seção "Proteção para tudo o que importa"
   (objeto real + escudo verde, card teal, fundo atmosférico)

   Escopo atual: home (/) e programa-de-indicacoes
   NÃO aplicar automaticamente em home-nova (preview isolada).
============================================================ */

:root {
  --ss-fig-ink: #002730;
  --ss-fig-ink-deep: #001a20;
  --ss-fig-teal: #003a47;
  --ss-fig-teal-hover: #0a4d5c;
  --ss-fig-gold: #ffd002;
  --ss-fig-lime: #7cff9a;
  --ss-fig-paper: #f4f7f8;
  --ss-fig-white: #ffffff;
  --ss-fig-muted: rgba(248, 250, 252, 0.82);
}

/* ---------- Protect band (fundo Rio + overlay) ---------- */
.ss-fig-protect {
  position: relative;
  padding: clamp(2.8rem, 5vw, 4rem) 0 clamp(2.4rem, 4vw, 3.4rem);
  color: #f8fafc;
  overflow: hidden;
}

.ss-fig-protect__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.78) 0%, rgba(14, 58, 66, 0.82) 100%),
    url("/assets/img/figurative/protect-bg.webp") center / cover no-repeat;
  z-index: 0;
}

.ss-fig-protect__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.ss-fig-protect__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.ss-fig-protect__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
}

.ss-fig-protect__head p {
  margin: 0.7rem 0 0;
  color: var(--ss-fig-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.ss-fig-protect__more {
  margin: 1.5rem 0 0;
  text-align: center;
}

.ss-fig-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ss-fig-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ---------- Pill grid (base) ---------- */
.ss-fig-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.ss-fig-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 78px;
  padding: 0.75rem 1rem;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--ss-fig-teal), var(--ss-fig-ink-deep));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ss-fig-pill:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, var(--ss-fig-teal-hover), #01323d);
}

.ss-fig-pill__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.ss-fig-pill span {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #fff;
}

.ss-fig-pill__arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.75;
  color: var(--ss-fig-gold);
}

/* Variação: 3 colunas (regras / passos) */
.ss-fig-pills--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Variação: cards verticais (canais / benefícios) */
.ss-fig-pills--stack .ss-fig-pill {
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  padding: 1.1rem 1rem 1.2rem;
  gap: 0.55rem;
}

.ss-fig-pills--stack .ss-fig-pill__icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.ss-fig-pills--stack .ss-fig-pill__arrow {
  align-self: flex-end;
  margin-top: 0.15rem;
}

.ss-fig-pill__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.ss-fig-pill__text strong {
  font-size: 1.05rem;
  color: #fff;
}

.ss-fig-pill__text small {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.4;
}

/* Variação: superfície clara com ícone figurativo (seções paper) */
.ss-fig-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1rem 0.85rem 1.15rem;
  border-radius: 22px;
  background: var(--ss-fig-white);
  border: 1px solid rgba(7, 17, 31, 0.08);
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.ss-fig-tile:hover { transform: translateY(-3px); }

.ss-fig-tile__art {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ss-fig-paper);
  overflow: hidden;
}

.ss-fig-tile__art img {
  width: min(140px, 78%);
  height: auto;
  object-fit: contain;
}

.ss-fig-tile h3 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  color: var(--ss-fig-ink);
}

.ss-fig-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: #5b6b76;
  line-height: 1.45;
}

.ss-fig-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.ss-fig-tiles--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* SEO / links secundários sob a grade principal */
.ss-fig-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.ss-fig-seo-links a {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ss-fig-seo-links a:hover {
  color: #fff;
  border-bottom-color: var(--ss-fig-gold);
}

@media (max-width: 980px) {
  .ss-fig-pills,
  .ss-fig-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-fig-pills--3,
  .ss-fig-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .ss-fig-pills,
  .ss-fig-pills--3,
  .ss-fig-pills--stack,
  .ss-fig-tiles,
  .ss-fig-tiles--3 { grid-template-columns: 1fr; }
}
