/* style.css - Validus QA (versão limpa e otimizada) */

:root {
  --orange: #FF6200;
  --orange-light: #FFA500;
  --black: #0F0F0F;
  --dark: #1A1A1A;
  --gray: #2A2A2A;
  --white: #FFFFFF;
  --text: #E0E0E0;

  /* Novas variáveis para DRY */
  --glow-orange: 0 0 15px var(--orange);
  --glow-orange-strong: 0 0 20px var(--orange), 0 0 40px rgba(255, 98, 0, 0.4);
  --shadow-neon: 0 10px 30px rgba(255, 98, 0, 0.3);
  --border-neon: 1px solid rgba(255, 98, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--white);
}

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

/* ============================================= */
/* HERO / BANNER */
/* ============================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(15, 15, 15, 0.85), rgba(15, 15, 15, 0.7)),
              url('src/images/banner/banner.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  background-color: var(--black); /* fallback sólido */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 98, 0, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  animation: fadeIn 1.5s ease-out;
}

/* Logo do hero apenas — não misturar com .navbar-logo-img (evita margem extra e barra alta) */
.hero-content .logo,
#logo-img {
  max-width: 220px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(var(--glow-orange));
  image-rendering: -webkit-optimize-contrast;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
  text-shadow: var(--glow-orange-strong);
  color: var(--orange);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ============================================= */
/* BOTÕES */
/* ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neon);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 98, 0, 0.4);
}

.btn-danger {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-danger:hover {
  background: #cc0000;
}

/* ============================================= */
/* SEÇÕES GERAIS */
/* ============================================= */
section {
  padding: 100px 0;
}

h2 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--orange);
}

h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--white);
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--gray);
  padding: 40px 30px;
  border-radius: 16px;
  border: var(--border-neon);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--orange);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-card h4 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--orange);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
  margin-top: 60px;
}

.stat-item span {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}

/* ============================================= */
/* FALE CONOSCO - seção de contato */
/* ============================================= */
.contact {
  text-align: center;
}

.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  margin: 40px 0 60px;
  text-align: center;
}

.contact-info p {
  font-size: 1.3rem;
  margin: 15px 0;
  color: var(--text);
}

/* ============================================= */
/* MODAL DE CONTATO */
/* ============================================= */
.modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-y: auto;
  padding: 24px 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.78);
}

.modal[hidden] {
  display: none !important;
}

.modal-content {
  background: var(--dark);
  margin: auto;
  padding: 30px;
  border: var(--border-neon);
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-neon);
  position: relative;
  box-sizing: border-box;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  text-align: left;
  font-size: 1.35rem;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  color: var(--white);
}

.close-modal {
  flex-shrink: 0;
  margin: 0;
  padding: 2px 6px;
  border: none;
  background: transparent;
  color: var(--orange);
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--orange-light);
}

.form-container {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.form-left {
  flex: 1;
  min-width: 280px;
}

.form-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--gray);
  border: var(--border-neon);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

:is(.form-group input, .form-group textarea):focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 10px rgba(255, 98, 0, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Contatos à direita no modal (igual produção) */
.contact-details {
  background: rgba(255, 98, 0, 0.08);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 98, 0, 0.15);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  font-size: 1.8rem;
  color: var(--orange);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text);
  margin: 0;
  font-size: 1rem;
}

/* Feedback */
#formFeedback.success { color: #4CAF50; }
#formFeedback.error   { color: #f44336; }

/* ============================================= */
/* ADMIN */
/* ============================================= */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.admin-panel {
  background: var(--dark);
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 0 40px rgba(255,98,0,0.4);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,98,0,0.3);
  padding-bottom: 15px;
}

.admin-header h2 {
  margin: 0;
  color: var(--orange);
}

.admin-section {
  background: rgba(255,98,0,0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  border: var(--border-neon);
}

.admin-section h3 {
  color: var(--orange);
  margin-bottom: 15px;
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  background: var(--gray);
  border: 1px solid var(--orange);
  border-radius: 6px;
  color: white;
  margin-bottom: 15px;
}

.image-preview {
  width: 100%;
  max-height: 180px;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

/* ============================================= */
/* RESPONSIVO */
/* ============================================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .hero p  { font-size: 1.1rem; }

  .form-container {
    flex-direction: column;
    gap: 24px;
  }

  .form-left,
  .form-right {
    min-width: 0;
    width: 100%;
  }

  .modal {
    padding: 12px;
    justify-content: flex-start;
  }

  .modal-content {
    margin: 0 auto;
    padding: 16px 14px 20px;
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .modal-header {
    margin-bottom: 16px;
    gap: 12px;
  }

  .modal-header h3 {
    font-size: 1.15rem;
  }

  .close-modal {
    font-size: 1.75rem;
    padding: 4px;
  }

  .contact-details {
    padding: 20px 16px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  section { padding: 60px 0; }
}

/* ============================================= */
/* CORREÇÕES URGENTES PARA NAVBAR E FOOTER */
/* ============================================= */

/* Navbar / Menu principal */
.navbar {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 98, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}

.navbar-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: var(--orange);
}

/* Mobile menu (hamburger) */
#hamburger {
  display: none;
  font-size: 2rem;
  color: var(--orange);
  cursor: pointer;
}

#mobileMenu {
  display: none;
}

/* Rodapé */
footer {
  background: var(--black);
  padding: 60px 0 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 98, 0, 0.1);
}

.footer-links ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 20px 0;
  padding: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--orange);
}

/* Hero ajustes finos */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1, .hero h2 {
  margin-bottom: 1rem;
}

/* Remove bullets genéricos de listas de navegação */
.navbar-menu ul,
.footer-links ul,
.services-grid,
.stats-grid {
  list-style: none;
  padding: 0;
}

/* ============================================= */
/* RESTAURAÇÕES E CORREÇÕES PARA BATER COM O SERVIDOR */
/* ============================================= */

/* Navbar completa (desktop + mobile) */
.navbar {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 98, 0, 0.15);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-logo-img {
  max-height: 52px;
}

.navbar-menu {
  display: flex;
}

.navbar-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 35px;
}

.navbar-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--orange);
}

/* Botão CTA "Fale Conosco" no navbar */
.btn-cta {
  background: var(--orange);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-neon);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 98, 0, 0.4);
}

/* Hamburger e mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--orange);
  transition: all 0.3s;
}

#mobileMenu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--dark);
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--orange);
}

#mobileMenu.active {
  display: block;
}

#mobileMenu ul {
  list-style: none;
  padding: 0;
}

#mobileMenu a {
  display: block;
  padding: 15px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
}

#mobileMenu .btn-cta-mobile {
  margin-top: 20px;
}

/* Stats - grid e números */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 60px 0;
  text-align: center;
}

.stat-item span {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
}

/* Footer completo */
.footer {
  background: var(--black);
  padding: 60px 0 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 98, 0, 0.1);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-links ul {
  display: flex;
  list-style: none;
  gap: 30px;
  justify-content: center;
  margin: 20px 0;
}

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-social a {
  color: var(--orange);
  font-size: 1.8rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--orange-light);
}

/* Hero - garante centralização */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Remove bullets genéricos em listas de navegação */
.navbar-menu ul,
.footer-links ul,
#mobileMenu ul {
  list-style: none;
}

/* ============================================= */
/* NAVBAR / HEADER - ALINHADO 100% COM PRODUÇÃO (background #000000 sólido) */
/* ============================================= */

.navbar {
  background: #000000; /* exato do inspector no produção: preto sólido */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 98, 0, 0.2); /* borda sutil laranja como no online */
  transition: background 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  position: relative;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  display: block;
  margin: 0;
  max-height: 72px;
  max-width: min(300px, 48vw);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px #FF6200) drop-shadow(0 0 24px rgba(255, 98, 0, 0.35));
  transition: transform 0.3s ease;
}

.navbar-logo-img:hover {
  transform: scale(1.05);
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 45px; /* espaçamento amplo como no online */
}

.navbar-menu a {
  color: #E0E0E0; /* cinza claro do produção */
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar-menu a:hover {
  color: #FF6200; /* laranja hover exato */
}

/* Botão CTA "Fale Conosco" — igual produção (validusqa.com.br) */
.btn-cta {
  background: var(--orange);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(255, 98, 0, 0.4);
  transition: all 0.3s;
}

.btn-cta:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 98, 0, 0.4);
}

/* Hamburger (aparece só em mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 4px;
  background: #FF6200;
  transition: all 0.4s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu mobile overlay */
#mobileMenu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: #000000; /* preto sólido como navbar */
  padding: 0px 20px;
  text-align: center;
  z-index: 999;
  border-top: 1px solid #FF6200;
}

#mobileMenu.active {
  display: block;
}

#mobileMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobileMenu li {
  margin: 20px 0;
}

#mobileMenu a {
  color: #E0E0E0;
  font-size: 1.4rem;
  text-decoration: none;
}

#mobileMenu .btn-cta-mobile {
  margin-top: 1px;
  display: inline-block;
}

/* Mobile: logo | Fale Conosco (compacto) | hamburger */
@media (max-width: 992px) {
  .navbar-menu {
    display: none;
  }

  .navbar-container {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .navbar-logo {
    flex: 0 0 auto;
    min-width: 0;
  }

  .navbar-logo-img {
    max-height: 58px;
    max-width: min(200px, 36vw);
  }

  .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 32px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neon);
    cursor: pointer;
  }

  .hamburger {
    display: flex;
    flex: 0 0 auto;
  }

  /* #hamburger tem display:none no bloco antigo — precisa vencer a especificidade */
  #hamburger.hamburger {
    display: flex;
    flex-direction: column;
  }
}

/* Remove bullets genéricos em menus */
.navbar-menu ul,
#mobileMenu ul {
  list-style: none;
}