/* =============================================
   SEGURANÇA ELETRÔNICA - ESTILOS PRINCIPAIS
   ============================================= */

/* ======== SESSÃO TÍTULO (CABEÇALHO DA PÁGINA) ======== */
.title {
  background:
    radial-gradient(circle at top, rgba(11,12,16,0.85), rgba(11,12,16,0.95)),
    url('../img/servicos/redes/redes.jpg') center/cover no-repeat;
  background-attachment: fixed;
  border-top: 1px solid rgba(102,252,241,0.15);
  padding: 120px 20px 60px;
  text-align: center;
  position: relative;
}

.title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(102,252,241,0.05), transparent);
  pointer-events: none;
}

.title .container {
  position: relative;
  z-index: 1;
}

.title h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--primary);
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 3px;
}

.title p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 10px auto 0;
  max-width: 800px;
  line-height: 1.7;
}

/* ======== TÍTULOS DAS SEÇÕES ======== */
/* =============================================
   TÍTULOS E SUBTÍTULOS DE SEÇÕES
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section h2 {
  color: var(--primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section h2::after {
  content: '';
  display: block;
  width: 3px;
  height: 40px;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  border-radius: 3px;
}

.section p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
  max-width: 600px;
}

/* ======== SEÇÕES DE SERVIÇOS ======== */
.servico {
  padding: 100px 0;
  background: #0b0c10;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.servico .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estrutura grid */
.servico-grid {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 40px;
}

.servico-grid.reverse {
  flex-direction: row-reverse;
}

/* Imagem */
.servico-imagem {
  flex: 0 0 45%;
  max-width: 45%;
}

.servico-imagem img {
  width: 100%;
  border-radius: 16px;
  border: 2px solid rgba(102,252,241,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.servico-imagem img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(102,252,241,0.3);
}

/* Texto */
.servico-texto {
  flex: 1;
  color: var(--text);
}

.servico-texto p {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 25px;
}

.servico-texto p strong {
  color: var(--primary);
  font-weight: 700;
}

/* Lista */
.servico-texto ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.servico-texto ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

.servico-texto ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: bold;
}

/* ======== FORMULÁRIO DE CONTATO ======== */
#contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(31,40,51,0.8);
  border: 1px solid rgba(102,252,241,0.15);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--muted);
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(31,40,51,0.95);
  box-shadow: 0 0 0 3px rgba(102,252,241,0.1);
}

#contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

#contact-form button {
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0b0c10;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(102,252,241,0.3);
}

#contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102,252,241,0.5);
}

#mensagem-sucesso {
  display: none;
  color: var(--primary);
  margin-top: 20px;
  padding: 20px;
  background: rgba(102,252,241,0.1);
  border: 1px solid rgba(102,252,241,0.3);
  border-radius: 10px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======== BOTÃO WHATSAPP ======== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
}

@keyframes pulse {
  0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}

/* ======== RESPONSIVIDADE ======== */
@media (max-width: 1024px) {
  .title h2 { font-size: 2.3rem; }
  .servico-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .title { padding: 120px 20px 60px; }
  .title h2 { font-size: 2rem; }
  .servico-grid { flex-direction: column; gap: 40px; }
  .servico-imagem { max-width: 100%; }
  .section-header h2 { font-size: 2rem; }
  #contact-form { padding: 0 20px; }
}

@media (max-width: 480px) {
  .title { padding: 100px 15px 40px; }
  .title h2 { font-size: 1.7rem; }
  .section-header h2 { font-size: 1.7rem; }
  .section-header p { font-size: 0.95rem; }
  .servico { padding: 60px 0; }
  .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
  .whatsapp-float img { width: 30px; height: 30px; }
}
