/* =============================================================
   SUPERAPROVEITE — Hero Section
   ============================================================= */
/* ── Variáveis (herda do sa-header.css se já estiver carregado) ── */
:root {
  --sa-brand:       #febe00;
  --sa-brand-dark:  #e0a800;
  --sa-brand-light: #fff8dc;
  --sa-brand-text:  #1a1a1a;
  --sa-dark:        #1a1a1a;
  --sa-text:        #1a1a1a;
  --sa-muted:       #555555;
  --sa-border:      #e5e5e5;
  --sa-bg:          #f8f8f8;
  --sa-white:       #ffffff;
}

/* =============================================================
   HERO WRAPPER
   ============================================================= */
.sa-hero {
  background: var(--sa-dark);
  background-image:
    radial-gradient(ellipse at 0% 100%,  rgba(254,190,0,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%,  rgba(254,190,0,0.10) 0%, transparent 50%);
  padding: 48px 0 52px;
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}

/* Linha diagonal decorativa no topo */
.sa-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--sa-bg); /* mesma cor do fundo da página */
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.sa-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* =============================================================
   COLUNA DE TEXTO
   ============================================================= */

/* Badge animado */
.sa-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254,190,0,0.12);
  border: 1px solid rgba(254,190,0,0.35);
  color: var(--sa-brand);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  animation: sa-fade-down 0.5s ease both;
}

.sa-hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--sa-brand);
  border-radius: 50%;
  animation: sa-pulse 2s ease infinite;
}

/* Título */
.sa-hero__content h2.sa-hero__title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: var(--sa-white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  animation: sa-fade-down 0.5s 0.1s ease both;
}

.sa-hero__content h2.sa-hero__title em {
  font-style: normal;
  color: var(--sa-brand);
  position: relative;
}

/* Sublinhado decorativo no texto em destaque */
.sa-hero__content h2.sa-hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: var(--sa-brand);
  border-radius: 2px;
  opacity: 0.5;
}

/* Subtítulo */
.sa-hero__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 32px;
  animation: sa-fade-down 0.5s 0.2s ease both;
}

/* =============================================================
   3 PASSOS
   ============================================================= */
.sa-hero__steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: sa-fade-down 0.5s 0.3s ease both;
}

.sa-hero__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sa-hero__step-num {
  width: 28px;
  height: 28px;
  background: var(--sa-brand);
  color: var(--sa-brand-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.sa-hero__step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-hero__step-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--sa-white);
  line-height: 1.3;
}

.sa-hero__step-text span,
.sa-hero__step-text:not(strong) {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  display: block;
}

/* =============================================================
   CTAs
   ============================================================= */
.sa-hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: sa-fade-down 0.5s 0.4s ease both;
}

.sa-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.sa-hero__btn--primary {
  background: var(--sa-brand);
  color: var(--sa-brand-text);
  box-shadow: 0 4px 20px rgba(254,190,0,0.35);
}

.sa-hero__btn--primary:hover {
  background: var(--sa-brand-dark);
  color: var(--sa-brand-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(254,190,0,0.45);
}

.sa-hero__btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(254,190,0,0.3);
}

.sa-hero__btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 13px 22px;
}

.sa-hero__btn--ghost:hover {
  color: var(--sa-white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* =============================================================
   CARD VISUAL (coluna direita)
   ============================================================= */
.sa-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: sa-fade-up 0.6s 0.2s ease both;
}

.sa-hero__card {
  background: var(--sa-white);
  border-radius: 22px;
  padding: 22px 20px;
  width: 100%;
  max-width: 320px;
  box-shadow:
    0 0 0 1px rgba(254,190,0,0.15),
    0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}

.sa-hero__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sa-border);
}

.sa-hero__card-avatar {
  width: 42px;
  height: 42px;
  background: var(--sa-brand-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sa-hero__card-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--sa-text);
  line-height: 1.2;
}

.sa-hero__card-sub {
  font-size: 11px;
  color: var(--sa-muted);
  margin-top: 2px;
}

/* Saldo de pontos */
.sa-hero__card-pts {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.sa-hero__card-pts-val {
  font-size: 40px;
  font-weight: 900;
  color: var(--sa-brand-text);
  line-height: 1;
  letter-spacing: -1px;
}

.sa-hero__card-pts-label {
  font-size: 12px;
  color: var(--sa-muted);
  margin-top: 4px;
}

/* Barra de progresso */
.sa-hero__card-progress {
  margin-bottom: 16px;
}

.sa-hero__card-progress-bar {
  height: 6px;
  background: var(--sa-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.sa-hero__card-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--sa-brand-dark), var(--sa-brand));
  border-radius: 6px;
  animation: sa-fill-bar 1.2s 0.8s ease forwards;
}

.sa-hero__card-progress-label {
  font-size: 11px;
  color: var(--sa-brand-dark);
  font-weight: 700;
  text-align: center;
  display: block;
}

/* Gift card disponível */
.sa-hero__card-gift {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sa-brand-light);
  border: 1.5px solid rgba(254,190,0,0.4);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 14px;
}

.sa-hero__card-gift-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.sa-hero__card-gift-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-hero__card-gift-info strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--sa-text);
  line-height: 1.2;
}

.sa-hero__card-gift-info span {
  font-size: 10.5px;
  color: var(--sa-brand-dark);
  font-weight: 600;
}

.sa-hero__card-gift-arrow {
  font-size: 15px;
  color: var(--sa-brand-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* Histórico de transações simulado */
.sa-hero__card-history {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sa-hero__card-tx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--sa-bg);
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
}

.sa-hero__card-tx--1 { animation: sa-tx-appear 0.4s 1.0s ease forwards; }
.sa-hero__card-tx--2 { animation: sa-tx-appear 0.4s 1.2s ease forwards; }
.sa-hero__card-tx--3 { animation: sa-tx-appear 0.4s 1.4s ease forwards; }

.sa-hero__card-tx-store {
  font-size: 12px;
  font-weight: 600;
  color: var(--sa-text);
}

.sa-hero__card-tx-pts {
  font-size: 12px;
  font-weight: 800;
  color: var(--sa-brand-dark);
}

/* Bolhas decorativas */
.sa-hero__bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--sa-brand);
  opacity: 0.08;
  z-index: 1;
}

.sa-hero__bubble--1 {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
}

.sa-hero__bubble--2 {
  width: 100px;
  height: 100px;
  bottom: -30px;
  left: -20px;
}

/* =============================================================
   ANIMAÇÕES
   ============================================================= */
@keyframes sa-fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sa-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sa-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

@keyframes sa-fill-bar {
  from { width: 0; }
  to   { width: 87%; } /* 3480 / 4000 pts simulado */
}

@keyframes sa-tx-appear {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =============================================================
   RESPONSIVIDADE
   ============================================================= */

/* Mobile: card escondido, só texto */
.sa-hero__visual { display: none; }

/* Tablet+ (768px): aparece o card, layout de 2 colunas */
@media (min-width: 768px) {
  .sa-hero__visual { display: flex; }

  .sa-hero__inner {
    grid-template-columns: 1fr 340px;
    gap: 48px;
  }

  .sa-hero {
    padding: 60px 0 68px;
  }
}

/* Desktop (1024px+): aumenta padding e título */
@media (min-width: 1024px) {
  .sa-hero__inner {
    padding: 0 32px;
    grid-template-columns: 1fr 360px;
  }

  .sa-hero {
    padding: 72px 0 80px;
  }
}

/* =============================================================
   PREFERÊNCIA POR MENOS MOVIMENTO (acessibilidade)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .sa-hero__badge,
  .sa-hero__title,
  .sa-hero__subtitle,
  .sa-hero__steps,
  .sa-hero__ctas,
  .sa-hero__visual,
  .sa-hero__card-tx,
  .sa-hero__card-progress-fill {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .sa-hero__card-progress-fill { width: 87%; }
}