/* ==========================
   ESTILOS GERAIS
========================== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    color: #333;
}

/* ==========================
   CABEÇALHO
========================== */
header img{
  width: 200px;
}

header {
    background: #ffffff; /* Preto */
    color: black;   /* Azul claro */
    padding: 20px;
    text-align: center;
}

/* ==========================
   MENU
========================== */
nav {
    background: #0a0a0a;
    padding: 10px;
    text-align: center;
}

nav a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: white;
}

/* ==========================
   SEÇÕES
========================== */
.section {
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
    color: #003366; /* Azul escuro */
}

/* ==========================
   CARDS
========================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid #ddd;
}

.card:hover {
    box-shadow: 0 0 12px rgba(0, 122, 255, 0.5);
    transform: translateY(-5px);
}

/* Solicitar serviço */

.solicitar {
    background: #000;          /* fundo preto */
    position: fixed;           /* fixa na tela */
    bottom: 0;                 /* encostada no rodapé */
    left: 0;                   /* alinhada à esquerda */
    width: 100%;               /* ocupa toda a largura */
    padding: 10px;             /* espaço interno */
    text-align: center;        /* centraliza o botão */
    z-index: 9999;             /* fica acima dos outros elementos */
}
.solicitar button {
    background: #fff;          /* botão branco */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 15px;
}



/* ==========================
   RODAPÉ
========================== */
footer {
    background: #000;
    color: #4ea1ff;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* ====== popup ========*/
/* Fundo escurecido */
.popup-wrapper {
  display: none;
  background: rgba(0, 0, 0, 0.55);
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Caixa do popup */
.popup {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 15px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  
  animation: fadeIn 0.25s ease-out;
  border: 1px solid #e8e8e8;
}

/* Botão fechar */
.popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
  transition: 0.2s;
}
.popup-close:hover {
  color: #000;
}

/* Conteúdo */
.popup-content {
  padding-top: 10px;
}

/* Título */
.popup-content h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  text-align: center;
}

/* Texto */
.popup-content p {
  font-size: 14.5px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: justify;
}

/* Labels */
.popup-content label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

/* Inputs e selects */
.popup-content input,
.popup-content select {
  width: 93%;
  padding: 13px;
  margin-bottom: 18px;
  border: 1.6px solid #d6d6d6;
  border-radius: 8px;
  font-size: 15px;
  background: #fafafa;
  transition: border-color 0.25s, background 0.25s;
}

.popup-content input:focus,
.popup-content select:focus {
  border-color: #00b97b;
  background: #fff;
  outline: none;
}

#service{
    width: 100%;
}

/* Botão */
.popup-content button {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: none;
  background: #00cc88;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}

.popup-content button:hover {
  background: #00a56d;
}

.popup-content button:active {
  transform: scale(0.97);
}

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

/* Mobile */
@media (max-width: 480px) {
  .popup {
    padding: 22px 18px;
  }

  .popup-content h2 {
    font-size: 20px;
  }

  .popup-content input,
  .popup-content select {
    font-size: 15px;
    padding: 12px;
  }
}
