/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --dark: #111827;
  --dark-lighter: #1f2937;
  --gray: #374151;
  --light-gray: #9ca3af;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray);
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  height: 75px;
}

.nav {
  display: none;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

/* HERO - Banner com faixa inferior moderna */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 2rem 5vh;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.5; /* ajuste conforme contraste desejado */
}

.hero .container {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 2rem 3vh; /* distância da borda inferior */
}

/* Faixa de conteúdo sobreposta */
.hero-content {
  width: 100%;
  max-width: 1200px;
  background-color: rgba(17, 24, 39, 0.45); /* estava 0.85 */
  backdrop-filter: blur(8px);
  padding: 1rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  color: var(--white);
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  max-height: 30vh;
  min-height: 15vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Título e parágrafo */
.hero h1 {
  font-size: 1.3rem;
  font-weight: 380;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.hero p {
  font-size: 1.4rem;
  color: var(--light-gray);
  margin-bottom: 2rem;
  line-height: 1.3;
}

/* Botões centralizados lado a lado */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Botões no mobile - reduzem tamanho, continuam lado a lado */
@media (max-width: 480px) {
  .hero-buttons {
    flex-wrap: nowrap;
  }

  .hero-buttons .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    flex: 1 1 auto;
    white-space: nowrap;
  }
}

/* Responsivo geral */
@media (max-width: 768px) {
  .hero-content {
    padding: 0.8rem 0.8rem;
	min-height: 30vh;
	max-height: 40vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

/* Animação */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade para elementos específicos */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }

/* Botões padrão */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Botão primário com gradiente e efeito suave */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}
/* Botão secundário com visual elegante */
.btn-secondary {
  background: linear-gradient(135deg, var(--gray) 0%, var(--dark-lighter) 100%);
  color: var(--white);
  border: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--gray) 100%);
}
/* Seção Quem Somos */
.about {
  background-color: var(--dark-lighter);
  padding: 5rem 2rem;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--white);
  animation: fadeInUp 0.6s ease forwards;
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--light-gray);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

/* Aumenta fonte em telas maiores */
@media (min-width: 1024px) {
  .about-text {
    font-size: 1.375rem;
  }
}
/* Quem Somos com Impacto Visual */
.about-impact {
  background-color: var(--dark-lighter);
  padding: 5rem 2rem;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  flex: 1;
  color: var(--light-gray);
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.about-content h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.about-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Responsivo: duas colunas lado a lado em telas largas */
@media (min-width: 1024px) {
  .about-grid {
    flex-direction: row;
    align-items: center; /* Agora centraliza verticalmente */
  }

  .about-content {
    padding-right: 2rem;
  }

  .about-content h2 {
    font-size: 2.5rem;
  }

  .about-content p {
    font-size: 1.375rem;
  }
}


/* Seção de Serviços - Reformulada */
.services {
  background-color: var(--dark);
  padding: 5rem 2rem;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--white);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card de serviço com animação e estilo */
.service-card {
  flex: 1 1 100%;
  max-width: 100%;
  background-color: var(--dark-lighter);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.service-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--light-gray);
}

/* Responsividade: 2 colunas em médio, 3 colunas em grande */
@media (min-width: 768px) {
  .service-card {
    flex: 1 1 calc(48% - 2rem);
    max-width: calc(48% - 2rem);
  }
}

@media (min-width: 1024px) {
  .service-card {
    flex: 1 1 calc(31% - 2rem);
    max-width: calc(31% - 2rem);
  }
}


/* Why Choose Us Section */
.why-us {
  background-color: var(--dark-lighter);
  padding: 5rem 0;
}

.why-us h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}
/* Estilo aprimorado dos diferenciais */
.differentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.differential {
  flex: 1 1 100%;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--dark-lighter);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

@media (min-width: 768px) {
  .differential {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

@media (min-width: 1024px) {
  .differential {
    flex: 1 1 calc(40% - 1.5rem);
    max-width: calc(40% - 1.5rem);
  }
}

.differential:nth-child(1) { animation-delay: 0.1s; }
.differential:nth-child(2) { animation-delay: 0.2s; }
.differential:nth-child(3) { animation-delay: 0.3s; }
.differential:nth-child(4) { animation-delay: 0.4s; }

.differential:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.check-icon {
  background-color: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: bold;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.differential p {
  color: var(--light-gray);
  font-size: 1.6rem; /* ~25px */
  font-weight: 500;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .differential p {
    font-size: 1.8rem; /* ~28.8px */
  }
}

/* Animação suave de entrada */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1.25rem;
  text-align: center;
  color: var(--light-gray);
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  max-width: 48rem;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-icon svg {
  transition: opacity 1.8s ease;
  width: 75%;
  height: 75%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.contact-text {
  color: var(--light-gray);
  font-size: 1rem;
}

.contact-item a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--dark-lighter);
  border: none;
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================= */
/* Menu Responsivo - Revisado   */
/* ============================= */

/* Botão hamburguer (visível apenas em telas pequenas) */
.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: block;
  z-index: 1100;
}

/* Navegação (telas pequenas - colapsada) */
.nav {
  position: absolute;
  top: 100%;
  right: 1rem;
  background-color: var(--dark-lighter);
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  display: none;
}

.nav.show {
  display: flex;
}

/* Itens do menu */
.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: color 0.3s, background-color 0.3s;
  border-radius: 0.375rem;
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Estilo do menu em telas maiores */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-link {
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    letter-spacing: 0.5px;
  }
}
/* Compensa o cabeçalho fixo ao rolar até as seções */
.section-offset {
  scroll-margin-top: 100px; /* ajuste conforme altura do seu header */
}
/* ícones sociais */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.1rem;
  color: var(--light-gray);
  transition: color 0.3s ease;
  line-height: 0.2rem;
}

/* Se o item for um link direto (ex: WhatsApp, email) */
.contact-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--light-gray);
  transition: color 0.3s ease;
}

/* Aplicar hover unificado */
.contact-item:hover,
.contact-item a:hover {
  color: var(--primary);
}

/* Ícone redondo */
.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Texto que não está dentro de <a> */
.contact-text {
  color: var(--light-gray);
  font-size: 1rem;
  line-height: 1.4;
}
/* Animação: fade + zoom-in */
@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Aplica a animação suavemente ao logo */
.animate-logo {
  animation: fadeZoomIn 0.8s ease-out;
  animation-fill-mode: both;
}
/* Ícone Flutuante padrão (desktop médio) */
#chat-assistente-botao {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  padding: 1px;
  cursor: pointer;
  z-index: 999;
}
#chat-assistente-botao img {
  width: 120px;
  height: 120px;
}

/* Telas grandes (ex: monitores widescreen) */
@media (min-width: 1400px) {
  #chat-assistente-botao img {
    width: 150px;
    height: 150px;
  }
}

/* Telas pequenas (tablets) */
@media (max-width: 991px) {
  #chat-assistente-botao img {
    width: 100px;
    height: 100px;
  }
}

/* Telas muito pequenas (smartphones) */
@media (max-width: 576px) {
  #chat-assistente-botao img {
    width: 70px;
    height: 70px;
  }

  #chat-assistente-botao {
    bottom: 15px;
    right: 15px;
  }
}
#chat-assistente-botao {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: transparent;
  cursor: pointer;
  z-index: 999;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.texto-assistente {
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 18px;
  white-space: nowrap;
  animation: bounce 0.9s ease-in-out 6;
}
/* Esconde o texto em telas pequenas */
@media (max-width: 768px) {
  .texto-assistente {
    display: none;
  }
}


/* Popup de Chat */
#chat-assistente-popup {
  display: none;
  position: fixed;
  bottom: 170px;
  right: 30px;
  width: 400px;
  height: 500px;
  max-width: 90%;
  max-height: 90vh;
  background: var(--dark-lighter);  /* fundo escuro moderno */
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 1000;
  flex-direction: column;
  display: flex;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.05);
}
#chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
}
#chat-header #chat-fechar {
  cursor: pointer;
  font-size: 22px;
}
#chat-conversa {
  padding: 10px;
  flex: 1;                    /* Agora ocupa todo o espaço disponível */
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#chat-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}
#chat-input {
  flex: 1;
  padding: 10px;
  background-color: var(--dark);
  color: var(--white);
  border: none;
  outline: none;
  font-size: 14px;
}

#chat-enviar {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
}

#chat-enviar:hover {
  background: var(--primary-hover);
}

@media screen and (max-width: 600px) {
  #chat-assistente-popup {
    width: 80%;
    height: 55vh;
    right: 2.5%;
    bottom: 5%;
    border-radius: 16px;
  }
}
.mensagem {
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.usuario {
  background-color: #3b82f6;     /* azul brilhante */
  color: #fff !important; /* força contraste e sobrepõe body */
  align-self: flex-end;
  text-align: right;
  border-radius: 10px;
  padding: 10px;
  max-width: 80%;
}

.assistente {
  background-color: rgba(255,255,255,0.1); /* leve transparência */
  color: #f5f5f5 !important; /* força contraste e sobrepõe body */
  align-self: flex-start;
  text-align: left;
  border-radius: 10px;
  padding: 10px;
  max-width: 80%;
}

/*Re Captcha*/
.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  width: 100%;
}

.g-recaptcha {
  transform: scale(1);
  transform-origin: center;
}

/* Reescalona o captcha em telas pequenas */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.85);
  }
}
@keyframes pulse-logo {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.95; }
  100% { transform: scale(1); opacity: 1; }
}

.logo.animate-logo {
  animation: pulse-logo 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}
/* Footer Base */
.footer {
    background-color: var(--dark-lighter);
    padding: 2rem 0;
	text-align: center; -- Mantenha removido ou neutralizado aqui
}

/* Container do Conteúdo do Rodapé */
.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ESTE GARANTE A CENTRALIZAÇÃO VERTICAL ENTRE ASSINATURA E COPYRIGHT */
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 0 1rem;*/
    flex-wrap: wrap;
}

/* Assinatura TechComp (lado esquerdo, imagem centralizada) */
.assinatura-techcomp {
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRALIZA HORIZONTALMENTE IMAGEM E TEXTO DENTRO DESTA DIV */
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.logo-mini {
    height: 28px;
    width: auto;
    margin-bottom: 2px;
    opacity: 0.7;
}

/* Informações de Copyright (lado direito, texto alinhado à direita) */
.info-copyright {
    /* Por padrão, este será o item da direita devido ao justify-content: space-between e a ordem no HTML */
    text-align: center; /* <-- ADICIONE/MANTENHA ESTA LINHA AQUI */
    flex-grow: 1; /* Permite que o copyright ocupe o espaço restante */
}

.info-copyright p {
    color: var(--light-gray);
    margin: 0; /* Garante que margens padrão não interfiram */
}

/* Ajustes para Responsividade (telas menores) */
@media (max-width: 768px) {
    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .assinatura-techcomp,
    .info-copyright {
        margin-bottom: 1rem;
        width: 100%;
        text-align: center; /* Centraliza o texto e a imagem quando empilhado */
    }
}