/* =========================================================
   NuPay na Kalunga – estilos complementares ao Bootstrap 5
   ========================================================= */

:root {
  --np-purple: #820AD1;
  --np-purple-dark: #4A0D8C;
  --np-orange: #000;
  --np-lilac: #FBF5FF;     /* fundo do hero, vantagens, cards e FAQ */
  --np-lilac-2: #E9D5FB;   /* fundo atrás da foto nos painéis */
  --np-ink: #1E1033;
  --np-text: #4A3D5C;

  /* Bootstrap */
  --bs-body-font-family: "Inter", system-ui, sans-serif;
  --bs-body-color: var(--np-ink);
}

/* ---------- Base ---------- */
.np-h2, .np-h3, .np-hero__title, .np-panel__title, .np-topic__title {
  font-family: "Poppins", sans-serif;
  color: var(--np-ink);
}
.np-section { padding: 6rem 0; }
.np-bg-lilac { background: var(--np-lilac); }

.np-h2 { font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; }
.np-h3 { font-weight: 700; font-size: 1.3rem; margin: 0; }
.np-text { font-size: 1.08rem; line-height: 1.65; color: var(--np-text); }

.np-topic:focus-visible, .np-tab:focus-visible, .np-close:focus-visible,
.np-accordion .accordion-button:focus-visible {
  outline: 3px solid var(--np-orange);
  outline-offset: 3px;
  box-shadow: none;
}

/* ---------- SECTION 1 · HERO ---------- */
.np-hero { background: var(--np-lilac); padding-top: 2.5rem; overflow: hidden; }
.np-hero__text > * { max-width: 34rem; }
.np-badge {
  display: inline-block; margin-bottom: 1.5rem;
  background: var(--np-purple); color: #fff;
  font-family: "Poppins", sans-serif; font-weight: 800;
  padding: .35rem .9rem; border-radius: 999px;
}
.np-hero__title {
  color: var(--np-purple); font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 3.6rem); line-height: 1.1;
  margin-bottom: 1.5rem;
}
.np-hero__lead { font-size: 1.25rem; line-height: 1.5; max-width: 30rem; margin-bottom: 2rem; }

.np-hero__media { display: flex; justify-content: center; align-items: flex-end; }
.np-hero__img {                      /* PNG com fundo transparente */
  display: block;
  max-width: 115%;                   /* pode passar um pouco da coluna */
  height: clamp(420px, 38vw, 620px); /* mínima, proporcional à tela, máxima */
  object-fit: contain; object-position: center bottom;
  margin-right: -8%;                 /* 0 = centralizada; mais negativo = mais à direita */
}

/* ---------- SECTION 2 ---------- */
.np-media-box { background: var(--np-lilac); border-radius: 36px; overflow: hidden; }
.np-media-box img { height: 420px; object-fit: cover; }

/* ---------- SECTION 3 · VANTAGENS ---------- */
.np-vcard {
  background: #fff; border-radius: 28px; padding: 2.25rem 1.75rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.np-vcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(76, 10, 133, .16); }
.np-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--np-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- SECTION 4 · CARDS ---------- */
.np-topic {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%;
  background: var(--np-lilac); border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.np-hl { color: var(--np-purple); }   /* destaque roxo nos títulos dos cards */
.np-topic:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(76, 10, 133, .22); }
.np-topic__title {
  padding: 1.75rem 1.75rem 1.25rem;
  font-weight: 700; font-size: 1.35rem; line-height: 1.25; min-height: 6.2rem;
}
.np-topic__media { position: relative; height: 300px; overflow: hidden; margin-top: auto; }
.np-topic__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .5s ease;
}
.np-topic:hover .np-topic__media img { transform: scale(1.05); }
.np-topic__more {
  position: absolute; right: 1.25rem; bottom: 1.25rem;
  background: #fff; color: var(--np-purple); font-weight: 600;
  padding: .7rem 1.2rem; border-radius: 999px;
}

/* Abas */
.np-tab {
  border: 0; border-radius: 999px; min-height: 44px;
  padding: .8rem 1.3rem; font-weight: 600; font-size: .95rem;
  background: var(--np-lilac); color: var(--np-purple-dark);
  transition: background .2s ease, color .2s ease;
}
.np-tab.active { background: var(--np-purple); color: #fff; }

/* Painel expandido */
.np-panel { position: relative; background: var(--np-lilac); border-radius: 40px; overflow: hidden; }
.np-panel__text { padding: 3rem 2.5rem; }
.np-panel__title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; padding-right: 3rem; margin-bottom: 1.25rem; }
.np-panel__media { position: relative; min-height: 380px; background: var(--np-lilac-2); overflow: hidden; }
.np-panel__media img {               /* PNG transparente, mesmo tamanho em todos os painéis */
  position: absolute; bottom: 0; left: 0; right: 0; margin: 0 auto;
  height: 560px;
}

.np-close {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; color: var(--np-ink); font-size: 1.8rem; line-height: 1;
}

.np-steps { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 1.75rem; }
.np-step { position: relative; background: #fff; border-radius: 20px; padding: 1.85rem 1.5rem 1.25rem; }
.np-step p { margin: 0; font-size: .98rem; line-height: 1.6; color: #2E2240; }
.np-step__pill {                     /* etiqueta presa na ponta esquerda do card */
  position: absolute; top: -.95rem; left: 0;
  white-space: nowrap; background: var(--np-purple); color: #fff;
  font-family: "Poppins", sans-serif; font-weight: 600;
  padding: .35rem 1.25rem .35rem 1.1rem;
  border-radius: 999px 999px 999px 0;
}

/* Ao abrir: a foto sobe de baixo, o texto e os passos aparecem em sequência */
.np-panel.is-animating .np-panel__media img { animation: npSlideUp .8s cubic-bezier(.2, .8, .2, 1) both; }
.np-panel.is-animating .np-panel__text { animation: npFadeUp .55s ease .3s both; }
.np-panel.is-animating .np-step { animation: npFadeUp .5s ease both; }
.np-panel.is-animating .np-step:nth-child(1) { animation-delay: .45s; }
.np-panel.is-animating .np-step:nth-child(2) { animation-delay: .58s; }
.np-panel.is-animating .np-step:nth-child(3) { animation-delay: .71s; }

@keyframes npSlideUp { from { transform: translateY(100%); } }
@keyframes npFadeUp { from { transform: translateY(16px); opacity: 0; } }

/* ---------- SECTION 5 · FAQ (accordion do Bootstrap) ---------- */
.np-faq-wrap { max-width: 880px; }
.np-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: var(--np-ink);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-padding-x: 1.5rem;
  --bs-accordion-btn-padding-y: 1.1rem;
  --bs-accordion-body-padding-x: 1.5rem;
}
.np-accordion .accordion-item { border-radius: 18px !important; overflow: hidden; margin-bottom: .75rem; }
.np-accordion .accordion-button { font-weight: 600; font-size: 1.02rem; gap: 1rem; }
.np-accordion .accordion-button::after {   /* seta em círculo */
  width: 32px; height: 32px; border-radius: 50%;
  background-color: var(--np-purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center;
}
.np-accordion .accordion-button:not(.collapsed)::after { background-color: var(--np-orange); }
.np-accordion .accordion-body { color: var(--np-text); line-height: 1.65; padding-top: 0; }

/* ---------- Responsivo ---------- */
@media (min-width: 992px) {
  .np-panel > .row { min-height: 640px; }   /* painéis com a mesma altura */
}

@media (min-width: 992px) and (max-width: 1400px) {   /* posição das fotos dos painéis */
  [data-panel="limite"] .np-panel__media img,
  [data-panel="usar"] .np-panel__media img { left: -50px; right: 50px; }
  [data-panel="credito"] .np-panel__media img,
  [data-panel="debito"] .np-panel__media img { left: 50px; right: -50px; }
}

@media (max-width: 991.98px) {
  .np-section { padding: 4rem 0; }
  .np-hero__img { height: 380px; max-width: 100%; margin-right: 0; }
  .np-panel__text { padding: 2.5rem 1.5rem; }
  .np-panel__media { min-height: 340px; }
  .np-panel__media img { height: 320px; }
  .np-step__pill { white-space: normal; max-width: 90%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
