/********************************************************
 * Nova Paleta de Cores e Gradientes                   *
 ********************************************************/
 :root {
  --color-bg-dark: #025282;              /* Fundo Escuro Principal */
  --color-cta: #3eb5fc;                  /* Ações Importantes */
  --color-bg-light: #7cccfc;             /* Background Claro/Auxiliar */
  --color-grayish: #7c7c7c;              /* Tom de texto neutro */
  --color-offwhite: #d9dfe1;             /* Tom claro para fundos */

  /* Novos Tons e Gradientes */
  --color-blue-gradient-start: #003954;   /* Azul mais intenso */
  --color-blue-gradient-end: #3eb5fc;     /* Azul mais claro/CTA */
  --color-blue-darker: #01324a;          /* Azul escuro adicional */
}

/* Corpo */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--color-grayish);
  background-color: var(--color-offwhite);
  margin: 0;
  padding: 0;
}

p {
  font-size: 1.2rem;
}

/* Navbar */
.bg-primary-custom {
  background-color: var(--color-bg-dark) !important; /* Fundo escuro da navbar */
}
.navbar-brand,
.nav-link,
.footer-text {
  color: #fff !important;
}
.navbar-brand {
  font-weight: bold;
}
.navbar .nav-link:hover {
  text-decoration: underline;
}

/* Botões e Links */
.btn-custom {
  background-color: var(--color-cta);
  color: #fff;
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  transition: background-color 0.3s ease;
}
.btn-custom:hover {
  background-color: var(--color-bg-light);
}

/********************************************************
 * Hero Section com vídeo de fundo e overlay
 ********************************************************/
.hero-section {
  position: relative;
  padding: 6rem 1rem;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background-color: #0b1a2e;
}

/* Vídeo / poster de fundo */
.hero-bg-poster,
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
}

/* Overlay escuro — texto sempre legível acima do vídeo/poster */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 1;
  pointer-events: none;
}

.hero-section > .container {
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.hero-section .lead {
  font-size: 1.3rem;
  color: #f1f1f1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
#dynamicText {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  min-height: 2.8em;
}

i.bi {
  display: inline-block;
  min-width: 1em;
  min-height: 1em;
  vertical-align: -0.125em;
}

.whatsapp-float {
  contain: layout;
}

/* Acelera Speed Index: não pinta abaixo do fold no primeiro frame */
#problemas,
#solucoes,
#app-leitor,
.screenshots-section,
#faq,
#cta-final {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* Destaques */
.text-highlight {
  color: var(--color-cta);
  font-weight: 600;
}

/* Frase Dinâmica */
#dynamicText {
  font-style: italic;
  margin: 1rem 0;
  font-size: 1.2rem;
  color: #fffd; /* cor levemente transparente */
}

/* Seções Gerais */
.features-section {
  background: #f9f9f9; /* fundo mais claro para melhor contraste */
  padding: 2rem 0;
  color: var(--color-grayish);
}
.solutions-section {
  background: var(--color-offwhite);
  padding: 2rem 0;
}

/* Títulos de Seções */
h2 {
  color: var(--color-bg-dark);
}

/* Ícones */
.icon-box i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-cta);
}

/* Subtítulos */
.section-subtitle {
  color: var(--color-bg-dark);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Cards de Solução */
.solution-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.solution-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.solution-card h4 {
  color: var(--color-bg-dark);
  margin-bottom: 1rem;
}

/* Exemplo de aplicação de gradiente em um texto maior */
.gradient-text {
  background: linear-gradient(90deg, var(--color-blue-gradient-start), var(--color-blue-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Sessão de Destaque de Screenshots */
.screenshots-section {
  background-color: #fff;
  padding: 2rem 0;
}

/* FAQ Styles */
.accordion-button {
  color: var(--color-bg-dark);
  font-weight: 500;
}
.accordion-button:not(.collapsed) {
  font-weight: 700;
  /*color: var(--color-cta);*/
}

/* Chamada para Ação (CTA) */
.bg-primary-custom-cta {
  /* Novo gradiente no CTA */
  background: linear-gradient(135deg, var(--color-blue-darker) 0%, var(--color-bg-dark) 70%);
  color: #fff;
  padding: 4rem 1rem;
}

/* Footer */
footer.bg-dark {
  background-color: var(--color-bg-dark) !important;
}
.footer-text {
  font-size: 0.9rem;
}

/************************************************************
 * Ícone flutuante do WhatsApp (canto inferior direito)
 ************************************************************/
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.whatsapp-float i {
  color: #fff;
  font-size: 30px;
}
.whatsapp-float:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float i {
    font-size: 25px;
  }
}

.hover-overlay {
  position: relative;
  /* Para “cortar” as bordas do overlay e da imagem */
  overflow: hidden;
  /* Ajuste o valor para o mesmo arredondamento que desejar */
  border-radius: .5rem;
}

/* Tirar margens ou espaçamentos padrões */
.hover-overlay img {
  display: block;
  width: 100%;
  transition: 0.3s ease-in-out;
}

/* Overlay */
.hover-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Invisível até hover */
  background: rgba(0, 0, 0, 0.5); /* Escurece levemente */
  color: #fff;
  transition: 0.3s ease-in-out;
  text-align: center;
  pointer-events: none; /* não rouba o clique para si */
}

/* Efeito ao passar o mouse */
.hover-overlay:hover img {
  filter: brightness(70%);
}

.hover-overlay:hover .hover-title {
  opacity: 1;
}


.divider-with-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #646464;
  position: relative;
}

.divider-with-text::before,
.divider-with-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccc;
  margin: 0 1rem;
}

.divider-with-text span {
  font-weight: bold;
  font-size: 1.2rem;
}

/********************************************************
 * Seção do Aplicativo
 ********************************************************/
.app-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.app-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background-image: url('media/3.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  transform: rotate(15deg);
  z-index: 0;
  pointer-events: none;
}

.app-section .container {
  position: relative;
  z-index: 1;
}

.app-info h3 {
  color: var(--color-bg-dark);
  font-weight: 600;
}

.features-list .feature-item {
  transition: transform 0.2s ease;
}

.features-list .feature-item:hover {
  transform: translateX(5px);
}

.app-cta .btn {
  box-shadow: 0 4px 15px rgba(62, 181, 252, 0.3);
  transition: all 0.3s ease;
}

.app-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 181, 252, 0.4);
}

/* Botão Google Play com cores oficiais */
.btn-google-play {
  background: linear-gradient(135deg, #01875f 0%, #00d084 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(1, 135, 95, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-google-play:hover {
  background: linear-gradient(135deg, #016b4d 0%, #00b874 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 135, 95, 0.4);
  text-decoration: none;
}

.btn-google-play:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(1, 135, 95, 0.3);
}

.btn-google-play i {
  font-size: 1.2rem;
  margin-right: 8px;
}

.app-screenshots img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid #fff;
}

.app-screenshots img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Estilos modernos para o carrossel */
#appCarousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

#appCarousel .carousel-item {
  background: #fff;
  padding: 0px;
  position: relative;
}

#appCarousel .carousel-item img {
  max-height: 450px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

#appCarousel .carousel-item:hover img {
  transform: scale(1.02);
}

#appCarousel .carousel-caption {
  background: linear-gradient(135deg, rgba(2, 82, 130, 0.95) 0%, rgba(62, 181, 252, 0.95) 100%);
  border-radius: 16px;
  padding: 20px;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 320px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#appCarousel .carousel-caption h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

#appCarousel .carousel-caption p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

#appCarousel .carousel-indicators {
  bottom: 0px;
  gap: 8px;
}

#appCarousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  margin: 0;
  transition: all 0.3s ease;
}

#appCarousel .carousel-indicators button.active {
  background-color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#appCarousel .carousel-control-prev,
#appCarousel .carousel-control-next {
  width: 8%;
  opacity: 0;
  transition: all 0.3s ease;
}

#appCarousel:hover .carousel-control-prev,
#appCarousel:hover .carousel-control-next {
  opacity: 1;
}

#appCarousel .carousel-control-prev-icon,
#appCarousel .carousel-control-next-icon {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 12px;
  width: 44px;
  height: 44px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

#appCarousel .carousel-control-prev-icon:hover,
#appCarousel .carousel-control-next-icon:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#appCarousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}

#appCarousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
  .app-section .row {
    flex-direction: column-reverse;
  }

  .app-info {
    margin-top: 2rem;
  }

  .app-screenshots .col-6 {
    margin-bottom: 1rem;
  }

  .app-section::before {
    width: 80%;
    right: -40%;
    opacity: 0.05;
  }

    /* Ajustes do carrossel para mobile */
  #appCarousel {
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  #appCarousel .carousel-item {
    padding: 20px;
  }

  #appCarousel .carousel-item img {
    max-height: 280px;
    border-radius: 12px;
  }

  #appCarousel .carousel-caption {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(2, 82, 130, 0.95) 0%, rgba(62, 181, 252, 0.95) 100%);
    border-radius: 12px;
    padding: 15px;
  }

  #appCarousel .carousel-caption h5 {
    font-size: 1.1rem;
    font-weight: 600;
  }

  #appCarousel .carousel-caption p {
    font-size: 0.9rem;
  }

  #appCarousel .carousel-control-prev,
  #appCarousel .carousel-control-next {
    width: 12%;
    opacity: 1;
  }

  #appCarousel .carousel-control-prev-icon,
  #appCarousel .carousel-control-next-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  #appCarousel .carousel-indicators {
    bottom: 15px;
  }

  #appCarousel .carousel-indicators button {
    width: 6px;
    height: 6px;
  }
}

/********************************************************
 * Páginas institucionais / legais
 ********************************************************/
.page-hero {
  background: linear-gradient(135deg, var(--color-blue-darker) 0%, var(--color-bg-dark) 55%, #0369a0 100%);
  color: #fff;
  padding: 3.5rem 1rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(62, 181, 252, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(0, 57, 84, 0.35), transparent 50%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-cta);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #fff;
}
.page-hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin: 0;
}

.page-content {
  padding: 3rem 0 4rem;
}
.page-content article {
  max-width: 48rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 24px rgba(2, 82, 130, 0.08);
  border: 1px solid rgba(2, 82, 130, 0.06);
}
.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-bg-dark);
  margin: 2rem 0 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(2, 82, 130, 0.1);
}
.page-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.page-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1rem;
}
.page-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.page-content ul li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #555;
  border-bottom: 1px solid rgba(2, 82, 130, 0.07);
}
.page-content ul li:last-child {
  border-bottom: none;
}
.page-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cta);
}
.page-content strong {
  color: var(--color-bg-dark);
}
.page-content a {
  color: var(--color-bg-dark);
  font-weight: 600;
}
.page-content a:hover {
  color: var(--color-cta);
}

@media (max-width: 576px) {
  .page-hero {
    padding: 2.5rem 1rem 2rem;
  }
  .page-content {
    padding: 1.5rem 0 3rem;
  }
  .page-content article {
    padding: 1.5rem 1.15rem;
    border-radius: 8px;
  }
}


