/* Estilos para o site da Clínica CEMEFE */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: var(--dark-color);
  line-height: 1.6;
}

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

header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo span {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--secondary-color);
}

.hero {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.convenios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.convenio-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.convenio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.convenio-card a {
  display: block;
  padding: 20px;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
}

.convenio-card a:hover {
  background-color: var(--light-color);
}

.convenio-detail {
  padding: 40px 0;
}

.convenio-detail h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 28px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

.convenio-info {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.convenio-info h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.procedimentos-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

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

.procedimentos-table th {
  background-color: var(--light-color);
  font-weight: 500;
}

.procedimentos-table tr:hover {
  background-color: #f5f5f5;
}

.back-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
  transition: var(--transition);
}

.back-button:hover {
  background-color: var(--primary-color);
}

footer {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

/* Responsividade */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  nav ul {
    margin-top: 15px;
  }
  
  .convenios-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 5px 0;
  }
  
  .convenios-grid {
    grid-template-columns: 1fr;
  }
}
