/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #121212;
  scroll-behavior: smooth;
  padding-top: 70px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background-color: #000;
  color: #fff;
  padding: 5px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 160px;
}

header h1 {
  font-size: 2em;
  color: #fff;
  font-weight: 700;
  margin: 0;
}

/* Nav */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #00c0ff;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8em;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    display: none;
    padding: 20px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  background: linear-gradient(
      rgba(10, 31, 61, 0.85),
      rgba(0, 0, 0, 0.85)
    ),
    url('https://tpsp.blob.core.windows.net/img/tp1.jpg') center/cover no-repeat;
  color: #fff;
  padding: 220px 0 160px;
  text-align: center;
}

.hero h2 {
  font-size: 3em;
  margin-bottom: 20px;
  color: #00c0ff;
}

.hero p {
  font-size: 1.2em;
  margin: 0 auto 50px auto;
  max-width: 1000px;
  padding: 0 40px;
  color: #ccc;
  text-align: center;
}

/* Botão Hero */
.hero-btn-wrapper {
  margin-top: 40px;
}

.btn-black {
  background-color: #000;
  color: #00c0ff;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-black:hover {
  background-color: #00c0ff;
  color: #000;
  box-shadow: 0 0 10px #00c0ff;
  transform: scale(1.05);
}

/* Seções */
.sobre,
.servicos,
.contato {
  padding: 60px 0;
  background-color: #1e1e1e;
}

.sobre-container p {
  color: #ccc;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  color: #00c0ff;
  font-weight: 700;
}

/* Cards "Sobre" */
.about-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.about-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #2a2a2a;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 192, 255, 0.3);
}

/* Card imagem padrão */
.card-image-section {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Card imagem personalizada para Parceria */
.card-image-parceria {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.card-image-parceria::before,
.card-image-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Título centralizado na imagem */
.card-title-centered {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-title h3 {
  font-size: 1.8em;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.card-title i {
  font-size: 1.3em;
  margin-top: 10px;
  color: #ffd700;
}

/* Descrição dos cards */
.card-description-section {
  padding: 20px 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 130px;
}

.card-description-section p {
  margin: 0;
  line-height: 1.5;
  color: #ccc;
  flex-grow: 1;
  text-align: center;
}

.card-description-section i {
  font-size: 1.5em;
  color: #ffd700;
}

/* Cards de Serviços e Contato */
.servicos .cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #2c2c2c;
  padding: 24px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 25px #00c0ff50;
}

.card h3 {
  margin-bottom: 12px;
  color: #00c0ff;
  font-weight: 700;
}

.card p {
  color: #ccc;
}

.card i {
  color: #00c0ff;
  margin-bottom: 12px;
  transition: transform 0.3s, color 0.3s;
}

.card:hover i {
  transform: rotate(15deg) scale(1.2);
  color: #00ffff;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: #2c2c2c;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  min-height: 220px;
  cursor: default;
}

.contact-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 25px #00c0ff50;
  cursor: pointer;
}

/* Número do WhatsApp clicável para copiar */
.whatsapp-number {
  color: #fff !important;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  margin-bottom: 20px;
  transition: color 0.3s;
  user-select: none;
}

.whatsapp-number:hover,
.whatsapp-number:focus {
  color: #00c0ff;
}

/* Botão WhatsApp */
.btn-whatsapp {
  display: inline-block;
  background-color: #1a1a1a;
  color: #00c0ff;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  margin-top: auto;
}

.btn-whatsapp:hover {
  background-color: #00c0ff;
  color: #000;
  transform: scale(1.05);
}

/* Rodapé */
footer {
  background: #000;
  padding: 20px 0;
}

footer p {
  text-align: center;
  color: #ccc;
  font-size: 0.9em;
}

/* Responsividade */
@media (max-width: 768px) {
  .logo {
    height: 100px;
  }

  header h1 {
    font-size: 1.2em;
  }

  .hero h2 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
    padding: 0 20px;
  }

  .servicos .cards {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    min-height: 200px;
  }
}

/* Safari Fix: força estilo do número do WhatsApp (mesmo com autocomplete/links) */
.whatsapp-number {
  -webkit-text-size-adjust: none; /* Safari iOS */
}
