/* =============================================
   E-Previdenciário - CSS Principal
   Cores: Verde (#1B7B3E) e Amarelo (#F5C100)
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #1B7B3E;
  --green-dark:  #145F30;
  --green-light: #EAF5EE;
  --yellow:      #F5C100;
  --yellow-dark: #D4A800;
  --dark:        #1A2744;
  --gray:        #5A6478;
  --gray-light:  #F4F6F9;
  --white:       #FFFFFF;
  --radius:      10px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BOTÕES ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn--green  { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,123,62,0.35); }
.btn--yellow { background: var(--yellow); color: var(--dark); }
.btn--yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,193,0,0.4); }
@keyframes piscar-header {
  0%, 100% { background: var(--green); box-shadow: none; }
  50% { background: #1db954; box-shadow: 0 0 16px 4px rgba(29,185,84,0.6); }
}
.btn--header { background: var(--green); color: var(--white); padding: 11px 22px; font-size: 14px; animation: piscar-header 1.2s ease-in-out infinite; }
.btn--header:hover { animation: none; background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,123,62,0.35); }
.btn--hero   { font-size: 17px; padding: 16px 36px; }
.btn--large  { font-size: 18px; padding: 18px 44px; }

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8ecf0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 40px;
}
.logo__img {
  height: 60px;
  width: auto;
  display: block;
}
.logo__nome {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.3px;
}
.logo__nome strong {
  font-weight: 800;
  color: var(--green);
}
.logo__img--footer {
  filter: brightness(0) invert(1);
}
.logo__nome--footer {
  color: rgba(255,255,255,0.85);
}
.logo__nome--footer strong {
  color: var(--white);
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav a:hover { color: var(--green); }
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
  margin-left: auto;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid #e8ecf0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 16px 24px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
}
.nav-mobile .btn { margin: 16px 24px; text-align: center; }

/* ---- HERO ---- */
.hero {
  position: relative;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  padding: 100px 0 80px;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  padding: 0 24px;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,30,20,0.90) 0%, rgba(10,30,20,0.75) 38%, rgba(10,30,20,0.55) 58%, rgba(10,30,20,0.45) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
}
.hero__label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero__title .highlight {
  color: var(--yellow);
  display: block;
}
.hero__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}
.hero__proof {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.proof__item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proof__google {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}
.proof__stars {
  color: #FBBC04;
  font-size: 16px;
}
.proof__text {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  line-height: 1.4;
}
.proof__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
}
.proof__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.3);
}

/* ---- STATS ---- */
.stats {
  background: var(--green);
  padding: 40px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--yellow);
}
@keyframes pulsar-gratis {
  0%, 100% { transform: scale(1); text-shadow: none; }
  50% { transform: scale(1.12); text-shadow: 0 0 18px rgba(255,223,0,0.85); }
}
.stat__number--gratis {
  animation: pulsar-gratis 1.4s ease-in-out infinite;
  display: inline-block;
}
.stat__label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
  font-weight: 600;
}

/* ---- SEÇÕES GENÉRICAS ---- */
.section__label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.section__subtitle {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 48px;
  max-width: 560px;
}

/* ---- SERVIÇOS ---- */
.servicos {
  padding: 80px 0;
  background: var(--white);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 0;
  border: 2px solid transparent;
  transition: all 0.25s;
  overflow: hidden;
}
.card__img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.card__icon,
.card__title,
.card__text,
.card__link {
  margin-left: 24px;
  margin-right: 24px;
}
.card__icon { margin-top: 20px; }
.card__link { display: inline-block; margin-bottom: 24px; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
@keyframes borda-loop {
  0%   { box-shadow: 0 0 0 2px transparent; border-color: transparent; }
  25%  { box-shadow: 0 -3px 0 0 var(--green); border-color: var(--green); }
  50%  { box-shadow: 0 0 8px 2px rgba(27,123,62,0.4); border-color: var(--green); }
  75%  { box-shadow: 0 3px 0 0 var(--green); border-color: var(--green); }
  100% { box-shadow: 0 0 0 2px transparent; border-color: transparent; }
}
.card--anim {
  animation: borda-loop 3s ease-in-out infinite;
}
.card__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--green);
}
.card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.card__text {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.6;
}
.card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.card__link:hover { text-decoration: underline; }

/* ---- COMO FUNCIONA ---- */
.como-funciona {
  padding: 80px 0;
  background: var(--green-light);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
}
.step {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 6px 24px rgba(27,123,62,0.13);
}
.step__number {
  font-family: 'Montserrat', sans-serif;
  font-size: 54px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 12px;
  line-height: 1;
}
.step__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.step__text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
}
.step__btn {
  display: inline-block;
  font-size: 13px;
  padding: 10px 18px;
}
@keyframes seta-pulsar {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: 0.6; }
}
.step__arrow {
  font-size: 28px;
  color: var(--green);
  padding-top: 32px;
  animation: seta-pulsar 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ---- ARTIGOS ---- */
.artigos {
  padding: 80px 0;
  background: var(--white);
}
.artigos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.artigo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.25s;
}
.artigo-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.artigo-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.artigo-card__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.artigo-card__tag {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.artigo-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.4;
  flex: 1;
}
.artigo-card__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

/* ---- CTA FINAL ---- */
.cta-final {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-final__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-final__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  padding: 40px 0;
}
.footer__inner {
  text-align: center;
}
.logo--footer { justify-content: center; display: flex; margin-bottom: 12px; }
.footer__text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.footer__cnpj {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.footer__legal {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---- WHATSAPP FLUTUANTE ---- */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6), 0 4px 20px rgba(37,211,102,0.4); }
  60%  { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 4px 20px rgba(37,211,102,0.4); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 4px 20px rgba(37,211,102,0.4); }
}
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 72px;
  height: 72px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 999;
  transition: transform 0.2s;
  animation: wa-pulse 2s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); animation: none; }
.whatsapp-float svg { width: 38px; height: 38px; }

/* ---- RESPONSIVO ---- */
@media (max-width: 900px) {
  .nav { display: none; }
  .btn--header { display: none; }
  .hamburger { display: block; }
  .hero { padding: 70px 0 60px; min-height: 480px; }
  .hero .container { justify-content: center; }
  .hero__inner { width: 100%; padding: 0 24px; text-align: center; align-items: center; }
  .hero__proof { justify-content: center; }
  .hero__title { font-size: 30px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; }
  .step__arrow { display: none; }
  .artigos__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero__title { font-size: 26px; }
  .section__title { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .artigos__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-final__title { font-size: 26px; }
}
