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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7f6;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Header e Nav */
header {
  width: 100%;
  background-color: #81C784;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Container principal */
.container {
  max-width: 900px;
  width: 100%;
  padding: 40px 20px;
  flex-grow: 1;
  text-align: center;
}

/* Título */
.container h1 {
  font-size: 2.2em;
  color: #388E3C;
  margin-bottom: 30px;
}

/* Tabela (Especialidades) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #A5D6A7;
  color: white;
  font-size: 1.1em;
}

tr:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

/* Botões (Voltar) */
button {
  background-color: #388E3C;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 15px;
  font-weight: bold;
}

button:hover {
  background-color: #2e7031;
}

/* Grid de exames */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.info-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #66BB6A;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
  font-size: 1.3em;
  color: #388E3C;
  margin: 0 0 10px 0;
}

/* Footer */
footer {
  width: 100%;
  margin-top: 30px;
  font-size: 0.9em;
  padding: 25px;
  text-align: center;
  background-color: #81C784;
  color: #E0F2E7;
}

/* Responsividade */
@media (max-width: 480px) {
  nav { gap: 8px; }
  nav a { font-size: 0.9em; padding: 8px 12px; }
  .info-card p, .buttons a { font-size: 0.95em; }
  .buttons a { padding: 12px 20px; font-size: 1em; }
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.whatsapp-float:hover {
  background-color: #20b858;
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}


