/* ==========================================================================
   DESIGN SYSTEM & ESTILOS — CLONE ELITE MEU INSS
   ========================================================================== */

/* 1. RESET E DIRETIVAS GERAIS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Cores Oficial Gov.br / INSS */
  --primary-color: #1351b4;
  --primary-dark: #0f2f5f;
  --primary-light: #e1e7f1;
  --gov-bg-dark: #071d41;
  --gov-bg-gray: #f8f8f8;
  --gov-border: #e0e0e0;
  
  /* Cores de Apoio */
  --text-dark: #333333;
  --text-muted: #666666;
  --white: #ffffff;
  
  /* Sombras Modernas */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(19, 81, 180, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  
  /* Transições suaves */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-weight: inherit;
  font-family: inherit;
}

/* 2. BARRA BRASIL (Governo Federal) */
.barra-brasil-container {
  background-color: var(--gov-bg-dark);
  height: 40px;
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.conteudo-barra-brasil {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-govbr {
  display: flex;
  align-items: center;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  transition: var(--transition-fast);
}

.logo-govbr:hover {
  opacity: 0.85;
}

.gov-dot {
  color: #fddb00; /* Ponto amarelo do gov.br */
}

.links-barra-brasil ul {
  display: flex;
  align-items: center;
  gap: 12px;
}

.links-barra-brasil a {
  color: var(--white);
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.75;
  transition: var(--transition-fast);
}

.links-barra-brasil a:hover {
  opacity: 1;
}

.links-barra-brasil .separator {
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .links-barra-brasil {
    display: none; /* Oculta em telas pequenas para manter limpo */
  }
}

/* 3. SKIPLIND ACESSIBILIDADE */
.br-skiplink {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 10px;
  z-index: 1001;
  transition: top 0.2s;
}

.br-skiplink:focus-within {
  top: 40px;
}

.br-skiplink .br-item {
  color: var(--white);
  margin-right: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 4. CABEÇALHO DO MEU INSS */
.meu-inss-header {
  background-color: var(--primary-color);
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--gov-border);
}

.container-header {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.logo-container img {
  height: 60px;
  object-fit: contain;
}

.text-container h1 {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.text-container h2 {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .meu-inss-header {
    padding: 24px 0 16px;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .logo-container img {
    height: 50px;
  }
  .text-container h1 {
    font-size: 1.8rem;
  }
  .text-container h2 {
    font-size: 0.95rem;
  }
}

/* 5. CONTEÚDO PRINCIPAL */
.main-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* Seção de Login Gov.br */
.login-section {
  margin-bottom: 30px;
}

.login-wrapper {
  display: flex;
  justify-content: flex-end; /* Alinha à direita no desktop */
  width: 100%;
}

.login-form {
  max-width: 320px;
  width: 100%;
  text-align: right;
}

.btn-govbr {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 400;
  border-radius: 100px; /* Estilo de pílula oficial */
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-govbr:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-govbr .semibold {
  font-weight: 700;
  margin-left: 5px;
}

.login-instruction {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding-right: 12px;
}

@media (max-width: 600px) {
  .login-wrapper {
    justify-content: center;
  }
  .login-form {
    max-width: 100%;
    text-align: center;
  }
  .login-instruction {
    padding-right: 0;
  }
}

/* 6. CARROSSEL DE BANNERS INTERATIVO */
.carousel-section {
  margin-bottom: 40px;
}

.br-carousel {
  position: relative;
  width: 100%;
  background-color: var(--primary-light);
  border-radius: 8px;
  height: 137px; /* Altura exata do banner original */
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.carousel-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  width: calc(100% - 100px);
  max-width: 760px;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.slide-button {
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-button img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  z-index: 20;
  transition: var(--transition-fast);
}

.carousel-nav-btn:hover {
  background-color: var(--white);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 25;
}

.carousel-indicators .dot {
  width: 8px;
  height: 8px;
  background-color: rgba(19, 81, 180, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-indicators .dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .br-carousel {
    height: 113px; /* Altura exata do banner original em dispositivos móveis */
  }
  .carousel-track {
    width: 100%;
  }
  .carousel-nav-btn {
    display: none; /* Oculta setas no mobile para carrossel limpo touch */
  }
}

/* 7. GRADE DE SERVIÇOS SEM SENHA */
.services-section {
  background-color: var(--gov-bg-gray);
  border-radius: 12px;
  padding: 30px 24px;
  margin-bottom: 40px;
  border: 1px solid var(--gov-border);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colunas */
  gap: 16px;
}

.service-card {
  background-color: var(--white);
  border: 1.5px solid var(--gov-border);
  border-radius: 10px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon-wrapper {
  background-color: var(--primary-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.service-card:hover .card-icon-wrapper {
  background-color: var(--primary-color);
  color: var(--white);
}

.service-card:hover .card-icon-wrapper svg {
  stroke: var(--white);
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #3f454d;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 coluna no mobile */
  }
  .services-section {
    padding: 20px 16px;
  }
  .service-card {
    padding: 14px 18px;
  }
}

/* 8. SEÇÃO DE AJUDA E ASSISTENTE HELÔ */
.help-section {
  margin-bottom: 30px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.help-card {
  background-color: var(--white);
  border: 1.5px solid var(--gov-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.help-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Card Helô */
.primary-help {
  gap: 20px;
}

.avatar-wrapper {
  flex-shrink: 0;
}

.avatar-helo {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.help-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.help-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.help-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.3;
}

.help-card-desc.space-lg {
  margin-bottom: 36px;
}

.help-card-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  justify-content: flex-end;
}

.help-card-action svg {
  transition: transform 0.2s;
}

.help-card:hover .help-card-action svg {
  transform: translateX(4px);
}

/* Card Outros Canais */
.secondary-help {
  justify-content: space-between;
  align-items: center;
}

.secondary-help .help-card-title {
  color: var(--text-dark);
}

.arrow-indicator {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.help-card:hover .arrow-indicator {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
  .help-card {
    padding: 20px;
  }
  .avatar-helo {
    width: 60px;
    height: 60px;
  }
}

/* 9. RODAPÉ DE LIGAÇÃO E SERVIÇOS */
.meu-inss-footer {
  background-color: var(--gov-bg-dark);
  color: var(--white);
  padding: 60px 0;
  border-top: 4px solid var(--primary-color);
}

.footer-container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: var(--transition-fast);
  line-height: 1.4;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .meu-inss-footer {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 10. ELEMENTOS FLUTUANTES (VIBRAS & CHAT HELÔ) */

/* VLibras Widget */
.enabled-libras {
  position: fixed !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 9999 !important;
}

.vp-access-button {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: block;
}

.vp-access-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-chat-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--white);
  border: 1px solid var(--gov-border);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition-normal);
}

.whatsapp-chat-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.25);
  border-color: #25D366;
}

.whatsapp-chat-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gov-bg-dark);
  transition: var(--transition-fast);
}

.whatsapp-chat-floating:hover .whatsapp-chat-text {
  color: #25D366;
}

.whatsapp-chat-btn {
  width: 44px;
  height: 44px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  transition: var(--transition-fast);
}

.whatsapp-chat-floating:hover .whatsapp-chat-btn {
  transform: scale(1.05);
  background-color: #128C7E;
}

@media (max-width: 600px) {
  .whatsapp-chat-floating {
    bottom: 16px;
    right: 16px;
    padding: 4px 4px 4px 14px;
  }
}
