/**
 * ============================================================================
 * AlfaNewTech — Theme (redesign)
 * ----------------------------------------------------------------------------
 * Este arquivo NÃO substitui assets/css/main.css — ele é carregado depois e
 * sobrescreve/estende o template original (BootstrapMade "LeadPage") com a
 * identidade visual real da AlfaNewTech. Isso preserva 100% dos componentes
 * já existentes (grid, cards, isotope, glightbox, swiper...) e concentra
 * tudo que é "nosso" num único lugar, fácil de achar e editar depois.
 *
 * FASE 1 deste redesign: Design System + Header + Hero.
 * As próximas fases (Empresa, Soluções, Serviços, Diferenciais, Processo,
 * Portfólio, Parceiros, CTA, Contato, Footer) vão somar novos blocos aqui.
 * ============================================================================
 */

/* ----------------------------------------------------------------------------
   1) PALETA DE MARCA
   Cores extraídas diretamente da logo oficial da AlfaNewTech (não inventadas).
---------------------------------------------------------------------------- */
:root {
  --an-primary: #004797;        /* azul navy da logo ("Alfa") */
  --an-primary-dark: #00335f;   /* navy mais escuro — hover / profundidade */
  --an-primary-light: #e8f0fa;  /* tint muito claro do navy — fundos suaves */
  --an-secondary: #7f96a6;      /* cinza-azulado da logo ("newtech") */
  --an-dark: #0a1622;           /* navy quase-preto — seções escuras / rodapé */
  --an-dark-2: #142333;         /* um degrau acima do --an-dark, para cards em seção escura */
  --an-text: #22303f;           /* texto padrão (cinza-grafite com leve tom azul) */
  --an-muted: #64748b;          /* texto secundário */
  --an-light: #f4f7fa;          /* fundo claro neutro */
  --an-white: #ffffff;

  --an-radius: 14px;
  --an-radius-sm: 8px;
  --an-shadow-sm: 0 2px 24px rgba(10, 22, 34, 0.08);
  --an-shadow-md: 0 16px 48px rgba(10, 22, 34, 0.14);
  --an-transition: 0.3s ease;
}

/* ----------------------------------------------------------------------------
   2) RETEMA AS VARIÁVEIS DO TEMPLATE
   O template original já é 100% orientado a variáveis CSS — em vez de reescrever
   cada componente, apenas trocamos os valores. Isso re-tematiza o site inteiro
   (botões, links, hovers, menu) preservando todo o comportamento existente.
---------------------------------------------------------------------------- */
:root {
  --accent-color: var(--an-primary);       /* era #c85716 (laranja) */
  --default-color: var(--an-text);         /* era #1a1715 */
  --heading-color: #0e1b2c;                /* era #110a06 */
  --nav-hover-color: var(--an-primary);
  --nav-dropdown-hover-color: var(--an-primary);
}

.light-background {
  --background-color: var(--an-light);     /* era um tom quente (#fffaf2) */
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: var(--an-dark);      /* era #000000 puro */
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: var(--an-dark-2);
  --contrast-color: #ffffff;
}

/* Acessibilidade: nunca usar --an-primary como texto/ícone sobre fundo escuro
   (contraste insuficiente). Nesses casos, usar --an-secondary ou branco. */

/* ----------------------------------------------------------------------------
   3) HEADER
   Transparente sobre o Hero -> sólido ao rolar (usa a classe .scrolled que o
   main.js já aplica no <body>). Sombra discreta, logo com troca automática
   entre a versão branca (sobre o vídeo) e a versão colorida (fundo sólido).
---------------------------------------------------------------------------- */
.header {
  padding: 22px 0 0 0;
}

.header .logo img {
  display: block;
  height: 40px;
  width: auto;
  transition: var(--an-transition);
}

.header .logo .logo-color { display: none; }
.header .logo .logo-white { display: block; }

.scrolled .header {
  --background-color: #ffffff;
  --nav-color: var(--an-text);
  padding: 12px 0 0 0;
  box-shadow: var(--an-shadow-sm);
}

.scrolled .header .logo-color { display: block; }
.scrolled .header .logo-white { display: none; }
.scrolled .header .logo img { height: 34px; }

.scrolled .header .nav-wrap {
  background-color: transparent;
  margin-top: 2px;
}

/* Ações do header: WhatsApp + CTA */
.header .header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header .header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 19px;
  text-decoration: none;
  transition: var(--an-transition);
}

.header .header-whatsapp:hover {
  background-color: #25d366;
  border-color: #25d366;
  color: #ffffff;
  transform: translateY(-1px);
}

.scrolled .header .header-whatsapp {
  background-color: var(--an-light);
  border-color: transparent;
  color: var(--an-primary);
}

.scrolled .header .header-whatsapp:hover {
  background-color: #25d366;
  color: #ffffff;
}

.header .btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  background-color: var(--an-primary);
  color: #ffffff !important;
  font-family: var(--nav-font);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--an-transition);
  box-shadow: 0 4px 14px rgba(0, 71, 151, 0.25);
}

.header .btn-header-cta:hover {
  background-color: var(--an-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 71, 151, 0.32);
}

/* Abaixo do breakpoint em que o menu vira hambúrguer (mesmo breakpoint que o
   template já usa para o menu mobile), escondemos as ações do header: o botão
   ".mobile-nav-toggle" é fixed no canto superior direito e essas ações
   colidiriam com ele. O CTA reaparece dentro do próprio menu mobile
   (.nav-cta-mobile) e o WhatsApp continua sempre acessível pelo botão
   flutuante já existente no site. */
@media (max-width: 1199px) {
  .header .header-actions { display: none; }
}

/* CTA extra dentro do menu mobile (some no desktop) */
.navmenu .nav-cta-mobile {
  background-color: var(--an-primary) !important;
  color: #ffffff !important;
  border-radius: var(--an-radius-sm);
  justify-content: center !important;
  font-weight: 600;
  margin-top: 6px;
}

/* ----------------------------------------------------------------------------
   4) HERO
   Overlay em gradiente (mais contraste e leitura do texto), eyebrow, título
   em duas linhas, indicadores de confiança abaixo dos botões.
---------------------------------------------------------------------------- */
.hero .video-overlay {
  background: linear-gradient(180deg,
    rgba(10, 22, 34, 0.55) 0%,
    rgba(10, 22, 34, 0.75) 55%,
    rgba(10, 22, 34, 0.92) 100%);
}

.hero .hero-eyebrow {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--an-secondary);
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
  color: var(--an-secondary);
}

.hero .hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 34px 0 0 0;
  padding: 20px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero .hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
}

.hero .hero-trust li i {
  color: var(--an-secondary);
  font-size: 17px;
  line-height: 0;
}

@media (max-width: 576px) {
  .hero .hero-trust {
    gap: 10px 18px;
    font-size: 13.5px;
  }
}

/* ---- Faixa de clientes (marquee) — seção própria, logo abaixo do Hero ---- */
.hero-logos-section {
  padding: 42px 0;
}

.hero-logos-label {
  display: block;
  text-align: center;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.hero-logos-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hero-logos-track {
  display: flex;
  width: max-content;
  animation: hero-logos-scroll 16s linear infinite;
}

.hero-logos-viewport:hover .hero-logos-track {
  animation-play-state: paused;
}

.hero-logos-slide {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-logos-slide img {
  height: 62px;
  width: auto;
  margin: 0 20px;
  border-radius: 6px;
  opacity: 1;
  transition: transform 0.35s ease;
}

.hero-logos-slide img:hover {
  transform: translateY(-3px);
}

@keyframes hero-logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 576px) {
  .hero-logos-slide img {
    height: 46px;
    margin: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logos-track {
    animation: none;
  }
  .hero-logos-viewport {
    overflow-x: auto;
  }
}

/* ----------------------------------------------------------------------------
   5) ACESSIBILIDADE
---------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--an-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------------------------
   6) EMPRESA (SOBRE)
---------------------------------------------------------------------------- */
.about-company .subtitle {
  display: block;
  color: var(--an-primary);
  font-family: var(--nav-font);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.about-company h2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--an-dark);
}

.about-company p.lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--an-text);
}

.about-company-media {
  position: relative;
  border-radius: var(--an-radius);
  overflow: hidden;
}

.about-company-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--an-radius);
}

.about-company-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 22, 34, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: var(--an-radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.about-company-badge i {
  font-size: 26px;
  color: var(--an-secondary);
  flex-shrink: 0;
}

.about-indicators > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--an-text);
}

.about-indicators i {
  font-size: 20px;
  color: var(--an-primary);
}

/* ----------------------------------------------------------------------------
   7) SOLUÇÕES
---------------------------------------------------------------------------- */
.solucao-card {
  background: var(--an-white);
  border-radius: var(--an-radius);
  padding: 32px 26px;
  height: 100%;
  box-shadow: var(--an-shadow-sm);
  transition: var(--an-transition);
  border: 1px solid rgba(10, 22, 34, 0.06);
}

.solucao-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--an-shadow-md);
}

.solucao-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--an-primary-light);
  color: var(--an-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.solucao-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--an-dark);
}

.solucao-card p {
  font-size: 14.5px;
  color: var(--an-muted);
  margin-bottom: 16px;
}

.solucao-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--an-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--an-transition);
}

.solucao-link i {
  font-size: 13px;
  transition: var(--an-transition);
}

.solucao-link:hover i {
  transform: translateX(3px);
}

/* ----------------------------------------------------------------------------
   8) SERVIÇOS (categorias)
---------------------------------------------------------------------------- */
.servico-categoria {
  background: var(--an-white);
  border: 1px solid rgba(10, 22, 34, 0.08);
  border-radius: var(--an-radius);
  padding: 30px 28px;
  height: 100%;
  transition: var(--an-transition);
}

.servico-categoria:hover {
  border-color: var(--an-primary);
  box-shadow: var(--an-shadow-sm);
}

.servico-categoria-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.servico-categoria-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--an-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.servico-categoria-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--an-dark);
}

.servico-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}

.servico-lista li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--an-text);
}

.servico-lista li::before {
  content: "\F633";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--an-primary);
  font-size: 13px;
}

/* ----------------------------------------------------------------------------
   9) DIFERENCIAIS
---------------------------------------------------------------------------- */
.diferencial-card {
  text-align: center;
  padding: 34px 24px;
  height: 100%;
  border-radius: var(--an-radius);
  background: var(--an-white);
  transition: var(--an-transition);
}

.diferencial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--an-shadow-sm);
}

.diferencial-card i {
  font-size: 34px;
  color: var(--an-primary);
  margin-bottom: 16px;
  display: inline-block;
}

.diferencial-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--an-dark);
}

.diferencial-card p {
  font-size: 14.5px;
  color: var(--an-muted);
  margin: 0;
}

/* ----------------------------------------------------------------------------
   10) PROCESSO
---------------------------------------------------------------------------- */
.processo-step {
  text-align: center;
  padding: 10px 14px;
  position: relative;
}

.processo-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--an-primary);
  color: var(--an-primary);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.processo-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--an-dark);
}

.processo-step p {
  font-size: 13.5px;
  color: var(--an-muted);
  margin: 0;
}

@media (min-width: 992px) {
  .processo-step::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: color-mix(in srgb, var(--an-primary), transparent 80%);
  }

  .col-lg:last-child .processo-step::after {
    display: none;
  }
}

/* ----------------------------------------------------------------------------
   11) PORTFÓLIO — categoria badge
---------------------------------------------------------------------------- */
.portfolio-category {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--an-primary);
  margin-bottom: 6px;
}

/* ----------------------------------------------------------------------------
   12) TECNOLOGIA (seção escura)
---------------------------------------------------------------------------- */
.tecnologia .subtitle {
  display: block;
  color: var(--an-secondary);
  font-family: var(--nav-font);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.tecnologia h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tecnologia-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.tecnologia-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--an-radius-sm);
}

.tecnologia-lista i {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--an-secondary);
  color: var(--an-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@media (max-width: 576px) {
  .tecnologia-lista { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------------------
   13) CTA FINAL
---------------------------------------------------------------------------- */
.cta-final {
  background: linear-gradient(135deg, var(--an-primary) 0%, var(--an-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-final h2 {
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cta-final .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.cta-final .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
}

.cta-final .btn-primary {
  background: #fff;
  color: var(--an-primary);
}

.cta-final .btn-primary:hover {
  background: var(--an-light);
  transform: translateY(-2px);
}

.cta-final .btn-outline-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-final .btn-outline-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cta-final .cta-contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 14.5px;
}

.cta-final .cta-contact-info a,
.cta-final .cta-contact-info span {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.cta-final .cta-contact-info a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ----------------------------------------------------------------------------
   14) FOOTER — colunas, links, contato
---------------------------------------------------------------------------- */
.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14.5px;
  transition: var(--an-transition);
}

.footer-links a:hover {
  color: var(--an-secondary);
  padding-left: 3px;
}

.footer-contact p {
  margin-bottom: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--an-transition);
}

.footer-contact a:hover {
  color: var(--an-secondary);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--an-transition);
}

.footer-social a:hover {
  background: var(--an-secondary);
  color: var(--an-dark);
}

/* ----------------------------------------------------------------------------
   15) BOTÃO FLUTUANTE WHATSAPP (compartilhado entre páginas)
---------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 84px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

@media (max-width: 575px) {
  .whatsapp-float {
    bottom: 74px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}
