@import url("https://cdn.jsdelivr.net/npm/@fontsource/junction/index.css");

/* Reset básico e tipografia */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Junction", Helvetica, Arial, sans-serif;
  background-color: #fcfcfc;
  min-height: 200vh;
  /* Permite rolar a página para teste sem necessidade de texto no HTML */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Estilo Geral do Header (Mais fino - 54px) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #e6e6e6;
  /* Fundo cinza claro conforme imagem */
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Estado Scrolled do Header */
.site-header.scrolled {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  /* Header mais fino */
  position: relative;
  /* Necessário para o posicionamento absoluto da logo central */
}

/* Alinhamento dos menus */
.nav-menu {
  margin-right: auto;
  margin-left: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  color: #38b0f8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #0ea5e9;
}

/* Logo Centralizado */
.logo-centered {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Exibe a logo no scroll */
.site-header.scrolled .logo-centered {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.logo-img {
  height: 32px;
  /* Logo proporcional ao tamanho do header mais fino */
  max-width: 120px;
  object-fit: contain;
}

/* Ações do Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  /* Botão compacto para o header mais fino */
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: #38b0f8;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0ea5e9;
}

.nav-link-login {
  font-size: 16px;
  font-weight: 400;
  color: #38b0f8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link-login:hover {
  color: #0ea5e9;
  text-decoration: underline;
}

/* Estilos da Seção Hero */
.hero-section {
  position: relative;
  width: 100%;
  height: 55vh;
  /* Altura da seção Hero configurada para 50vh */
  margin-top: 54px;
  /* Permite começar logo abaixo do header de 54px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  z-index: 1;
  /* Cria o contexto de empilhamento local */
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  /* Vídeo com altura preenchendo os 50vh do contêiner */
  z-index: -2;
  /* Fica atrás de tudo dentro do hero-section */
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 204, 0.5);
  /* Filtro azulado conforme solicitado */
  z-index: -1;
  /* Fica acima do vídeo mas atrás do conteúdo */
}

.hero-content {
  position: relative;
  z-index: 1;
  /* Fica no topo do empilhamento */
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  padding: 40px 24px;
}

.hero-logo {
  margin-bottom: 24px;
}

.hero-logo-img {
  height: 120px;
  /* Logo em destaque no Hero */
  max-width: 275px;
  object-fit: contain;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 38px;
  margin-bottom: 38px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #ffffff;
  opacity: 0.9;
}

.hero-desc {
  font-size: 18px;
  font-weight: 400;
  max-width: none;
  /* Remove a limitação de largura */
  white-space: nowrap;
  /* Impede quebras de linha */
  margin-bottom: 36px;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.85;
}

/* Botão Verde Conheça Mais */
.btn-green {
  background-color: #558f59;
  /* Verde correspondente ao botão do Hero */
  color: #ffffff;
  padding: 20px 28px;
  font-size: 20px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-green:hover {
  background-color: #4b7f52;
}

/* Seção de Gestão de XML */
.xml-management-section {
  background-color: #f1f2f2;
  /* Fundo cinza bem claro */
  padding: 60px 0 80px 0;
  text-align: center;
}

.xml-section-title {
  font-size: 36px;
  font-weight: 700;
  color: #005fa3;
  /* Azul escuro do título */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 50px;
}

.xml-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.xml-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.xml-icon-circle {
  width: 150px;
  height: 150px;
  border: 8px solid rgb(214, 239, 195);
  border-radius: 1000px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(121, 189, 68);
  font-family: "Junction", Helvetica, Arial, sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 135px;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 0;
  box-sizing: border-box;
  transition: border-color 0.3s ease-in-out;
  -webkit-font-smoothing: antialiased;
}

.xml-item:hover .xml-icon-circle,
.feature-item:hover .xml-icon-circle {
  border-color: #79BD44;
}

.xml-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #005fa3;
  /* Azul do título do item */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 15px;
  margin-bottom: 30px;
  position: relative;
}

/* Linha verde abaixo do título */
.xml-item-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: #72b055;
  /* Cor verde da linha */
  margin: 8px auto 0 auto;
}

.xml-item-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.5;
}

/* Responsividade para a seção XML */
@media (max-width: 768px) {
  .xml-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Seção Emissão de NFe e CTe */
.emission-section {
  background-color: #f1f2f2;
  padding: 70px 0 80px 0;
  text-align: center;
}

.emission-title {
  font-size: 32px;
  font-weight: 700;
  color: #005fa3;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.emission-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #38b0f8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.emission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.emission-list li {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
}

.btn-emission {
  background-color: #38b0f8;
  color: #ffffff;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  transition: background-color 0.2s ease;
}

.btn-emission:hover {
  background-color: #0ea5e9;
}

/* Seção Contabilidade Externa e Empresas (Split banner com background de imagem) */
.double-banner-section {
  position: relative;
  width: 100%;
  background-image: url("../contents/banner_duplo.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
}

.banner-col {
  width: 50%;
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.banner-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.banner-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 520px;
}

.banner-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 540px;
}

.banner-list li {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.bullet-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: #ffffff; /* Ícones brancos por cima do fundo colorido */
}

/* Seção Funcionalidades Diferenciadas */
.features-section {
  background-color: #f1f2f2;
  padding: 70px 0 80px 0;
  text-align: center;
}

.features-title {
  font-size: 32px;
  font-weight: 700;
  color: #005fa3;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-name {
  font-size: 15px;
  font-weight: 700;
  color: #005fa3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 18px;
  margin-bottom: 6px;
  position: relative;
}

.feature-name::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: #72b055;
  margin: 8px auto 0 auto;
}

.feature-desc {
  font-size: 13px;
  color: #555555;
  line-height: 1.6;
  margin-top: 14px;
  margin-bottom: 14px;
  max-width: 280px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  max-width: 280px;
  width: 100%;
}

.feature-list li {
  font-size: 13px;
  color: #555555;
  line-height: 1.5;
}

.features-tagline {
  font-size: 18px;
  font-weight: 600;
  color: #38b0f8;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Seção Outras Funcionalidades do SINFe */
.other-features-section {
  background-color: #f1f2f2;
  padding: 60px 0 80px 0;
  text-align: center;
}

.other-features-title {
  font-size: 28px;
  font-weight: 400;
  color: #38b0f8;
  margin-bottom: 50px;
}

.other-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  text-align: left;
}

.other-features-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.other-feature-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.other-feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 2px solid #a8d88a;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #72b055;
}

.other-feature-item span {
  font-size: 14px;
  color: #555555;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .other-features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Responsividade para o banner duplo */
@media (max-width: 900px) {
  .double-banner-section {
    flex-direction: column;
  }
  .banner-col {
    width: 100%;
    padding: 50px 30px;
  }
}

/* Seção Nosso Planos */
.plans-section {
  background-color: #f1f2f2;
  padding: 60px 0 70px 0;
  text-align: center;
}

.plans-title {
  font-size: 30px;
  font-weight: 400;
  color: #38b0f8;
  margin-bottom: 40px;
}

.plans-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plans-carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.plans-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Cada card ocupa exatamente 1/3 do viewport */
.plan-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.plan-card-top {
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-card-mid {
  background-color: #ffffff;
  padding: 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.plan-card-bot {
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Variante: Gratuito (azul claro) */
.plan-card--light .plan-card-top,
.plan-card--light .plan-card-bot {
  background-color: #89d4f5;
}

.plan-label {
  font-size: 14px;
  color: #5a9fc0;
  margin-bottom: 4px;
}

.plan-name {
  font-size: 26px;
  font-weight: 700;
  color: #1a5c8a;
}

.plan-price-free {
  font-size: 24px;
  font-weight: 700;
  color: #1a5c8a;
}

/* Variante: Azul (planos pagos) */
.plan-card--blue .plan-card-top,
.plan-card--blue .plan-card-bot {
  background-color: #38b0f8;
}

.plan-label--white {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.plan-number {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.plan-price {
  font-size: 26px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 2px;
}

.plan-price-sub {
  font-size: 12px;
  color: #1a3a5c;
}

.plan-contact {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

/* Variante: Verde (Escritórios Contábeis) */
.plan-card--green .plan-card-top,
.plan-card--green .plan-card-bot {
  background-color: #5a9a2c;
}

.plan-card-mid--green {
  background-color: #6db035 !important;
}

/* Badge "o mais solicitado" */
.plan-card--featured {
  overflow: visible;
}

.plan-badge {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, #f5c842, #d4a017);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #5a3a00;
  line-height: 1.3;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Arrows */
.carousel-arrow {
  background: none;
  border: none;
  font-size: 22px;
  color: #9db0c8;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition:
    color 0.2s,
    opacity 0.2s;
  line-height: 1;
}

.carousel-arrow:hover {
  color: #38b0f8;
}
.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Pagination dots */
.plans-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.plans-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #c0cdd8;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s;
}

.plans-dot.active {
  background-color: #6a8aaa;
}

/* Texto abaixo do carrossel */
.plans-no-fidelity {
  font-size: 14px;
  font-weight: 700;
  color: #38b0f8;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.plans-disclaimer {
  font-size: 14px;
  color: #555;
  margin-bottom: 28px;
}

.btn-plans {
  background-color: #38b0f8;
  color: #ffffff;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-plans:hover {
  background-color: #0ea5e9;
}

@media (max-width: 768px) {
  .plan-card {
    flex: 0 0 calc(100% - 8px);
  }
}

/* Seção Contate-nos */
.contact-section {
  background-color: #f1f2f2;
  padding: 60px 0 70px 0;
  text-align: center;
}

.contact-title {
  font-size: 26px;
  font-weight: 700;
  color: #38b0f8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.contact-location {
  font-size: 15px;
  color: #444;
  margin-bottom: 32px;
}

.contact-list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
}

.contact-icon {
  flex-shrink: 0;
  color: #555;
}

.contact-whatsapp {
  color: #38b0f8;
  text-decoration: none;
}

.contact-whatsapp:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #1b3a5c;
  padding: 14px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: #c8d8e8;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #c8d8e8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: #ffffff;
}

.footer-azure {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-powered-by {
  font-size: 10px;
  color: #8aaac8;
  display: block;
  line-height: 1;
  margin-right: 2px;
}

.footer-azure-icon {
  color: #c8d8e8;
  flex-shrink: 0;
}

.footer-azure-label {
  font-size: 13px;
  color: #c8d8e8;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =============================================
   RESPONSIVIDADE MOBILE (max-width: 768px)
   ============================================= */
/* Links exclusivos do menu mobile — escondidos no desktop */
.nav-mobile-cadastro,
.nav-mobile-login {
  display: none;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #38b0f8;
  border-radius: 2px;
}

@media (max-width: 768px) {
  /* Header */
  .hamburger {
    display: flex;
  }
  .btn-primary {
    display: none;
  }
  .nav-link-login {
    display: none;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    background-color: #e6e6e6;
    padding: 8px 0 16px;
    z-index: 999;
  }
  .nav-menu.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-link {
    font-size: 16px;
    display: block;
    padding: 12px 20px;
  }
  .nav-mobile-cadastro {
    display: inline-block;
    margin: 8px 20px 0;
    padding: 10px 24px;
    background-color: #38b0f8;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
  }
  .nav-mobile-login {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    color: #38b0f8;
    text-decoration: none;
  }

  /* Hero */
  .hero-section {
    height: auto;
    min-height: 55vh;
  }
  .hero-logo-img {
    height: 70px;
  }
  .hero-title {
    font-size: 28px;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-desc {
    white-space: normal;
    font-size: 13px;
    text-align: center;
  }
  .btn-green {
    font-size: 16px;
    padding: 14px 22px;
  }

  /* XML section */
  .xml-section-title {
    font-size: 22px;
  }

  /* Emission */
  .emission-title {
    font-size: 20px;
  }
  .emission-subtitle {
    font-size: 14px;
  }

  /* Features */
  .features-title {
    font-size: 20px;
    margin-bottom: 36px;
  }

  /* Plans carousel */
  .plan-card {
    flex: 0 0 calc(85% - 8px);
  }
  .plans-title {
    font-size: 22px;
  }
  .plans-disclaimer {
    padding: 0 16px;
  }

  /* Contact */
  .contact-list {
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* Sections padding */
  .xml-management-section,
  .emission-section,
  .features-section,
  .other-features-section,
  .plans-section,
  .contact-section {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .banner-col {
    padding: 40px 20px;
  }
}
