* {
     margin: 0; padding: 0; box-sizing: border-box;
 }
  body {
    font-family: 'Montserrat', sans-serif;
    background-color: #3c3c3c;
    color: #f1f1f1;
  }
  header {
    background-color: #2e2e2e;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #9E6D3E;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .logo-container img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
  }
  header h1 {
    font-size: 28px;
    color: #fff;
    font-weight: 700;
  }
  nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 24px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
  }
  nav a:hover {
    color: #fff;
    border-color: #9E6D3E;
  }
  
  .banner {
    background:
    url('../img/frenteclinica.jpg')
    center/cover no-repeat;
    min-height: 90vh;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .banner h2 {
    font-size: 42px;
    max-width: 800px;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 24px;
  }
  .btn-agendar {
    padding: 14px 32px;
    background-color: #9E6D3E;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
  }
  .btn-agendar:hover {
    background-color: #7a522c;
  }
  section {
    padding: 60px 40px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
  }
  section h2 {
    font-size: 32px;
    color: #fff;
    position: relative;
    margin-bottom: 32px;
  }
  section h2::after {
    content: '';
    width: 70px;
    height: 3px;
    background: #9E6D3E;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
  }
  .about p, .contact p {
    font-size: 18px;
    color: #ccc;
    max-width: 800px;
    margin: auto;
    line-height: 1.7;
  }
  .services-container, .team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }
  .card {
    background-color: #4a4a4a;
    border: 1px solid #9E6D3E;
    border-radius: 12px;
    padding: 24px;
    width: 250px;
    transition: transform 0.3s;
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .card img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 15px;
}


  .card h3 {
    color: #fff;
    font-size: 20px;
    margin: 8px 0;
  }
  .card p {
    color: #ccc;
    font-size: 16px;
  }


.agendamento form {
  background: #3a3a3a;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}


.form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.agendamento input,
.agendamento select {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #4a4a4a;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
}


.agendamento input::placeholder {
  color: #bbb;
}


.agendamento input:focus,
.agendamento select:focus {
  outline: none;
  border: 1px solid #9E6D3E;
  box-shadow: 0 0 10px rgba(158,109,62,0.5);
  background: #505050;
}


.agendamento select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23ccc' height='24' viewBox='0 0 24 24' width='24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
}


.btn-agendar-form {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  font-size: 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, #9E6D3E, #c79a5c);
  transition: 0.3s;
}

.btn-agendar-form:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}


#respostaForm {
  font-size: 14px;
}

.menu-toggle {
  display: none;
}


@media (max-width:768px) {
  .form-group {
    flex-direction: column;
  }
}
  footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid #9E6D3E;
    padding: 20px;
    color: white;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {

  header {
    padding: 20px;
  }

  nav a {
    margin-left: 16px;
    font-size: 14px;
  }

  .banner {
    padding: 20px;
    min-height: 70vh;
  }

  .banner h2 {
    font-size: 32px;
  }

  section {
    padding: 50px 20px;
  }

  .card {
    width: 220px;
  }

}


@media (max-width: 768px) {

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }


  .menu-toggle {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: white;
  }


  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2e2e2e;
    flex-direction: column;
    display: none;
    z-index: 99;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 0;
    padding: 15px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 15px;
  }


  .banner {
    min-height: 65vh;
    padding: 20px;
  }

  .banner h2 {
    font-size: 26px;
  }

  section {
    padding: 40px 15px;
  }

  .services-container,
  .team-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 350px;
  }

  .card img {
    max-height: 250px;
  }

 .form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

 .agendamento input,
.agendamento select {
  width: 100%;
  flex: none;
}

}


@media (max-width: 480px) {

  header h1 {
    font-size: 22px;
  }

  .logo-container img {
    width: 50px;
    height: 50px;
  }

  .banner h2 {
    font-size: 22px;
  }

  .btn-agendar {
    padding: 12px 20px;
    font-size: 14px;
  }

  section h2 {
    font-size: 24px;
  }

  .card {
    padding: 18px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 14px;
  }

}