/* ===================== */
/* Importação de fonte */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Reset básico e variáveis */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --text-color: #212529;
    --bg-color: #f8f9fa;
    --white-color: #fff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --border-radius: 0.375rem;
}

/* Base */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* ===================== */
/* Navbar */
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #004aad;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* ===================== */
/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1920x1080?text=Nova+Mente') no-repeat center center/cover;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    text-align: center;
}

.hero-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.212), rgba(0, 0, 0, 0.164)), url('fotos/medicos.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10% 5%;
    color: white;
    text-align: center;
}

.hero-content h1 {
    color: rgb(10, 133, 204);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ===================== */
/* Serviços */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.card {
    background-color: var(--white-color);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    flex: 1 1 300px;
    text-align: center;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}

/* ===================== */
/* Equipe */
.team-section {
    background-color: #e9ecef;
}
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}
.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}
.equipe-img {
    border: 4px solid #004aad;
    border-radius: 8px;
}

/* ===================== */
/* Formulário */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Inline form */
.form-group-inline {
    display: flex;
    gap: 1rem;
}
.form-group-inline .form-group {
    flex: 1;
}

/* Botão enviar */
.btn-enviar {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-enviar:hover {
    background: #0b5ed7;
}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

/* Seções */
section {
    padding: 4rem 0;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* Carrossel de convênios */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 40px;
  will-change: transform;
}

.carousel-track img {
  height: 80px;
  flex-shrink: 0;
  filter: grayscale(50%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.carousel-track img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}


/* ===================== */
/* Carrossel de Fotos */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel-fotos {
  display: flex;
  width: max-content;
}
.carousel-fotos-track {
  display: flex;
  animation: scroll 250s linear infinite; /* velocidade ajustável */
}
.carousel-fotos-track img {
  height: 220px;  /* ajuste conforme necessário */
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 10px;
  object-fit: cover;
}
.carousel-fotos-track img:hover {
  transform: scale(1.05);
}
/* Pausa no hover */
.carousel-container:hover .carousel-fotos-track {
  animation-play-state: paused;
}

/* Animação infinita */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* metade porque você duplicou as imagens */
  }
}

/* Ajuste de altura em telas menores */
@media (max-width: 768px) {
  .carousel-fotos-track img { height: 160px; }
}
@media (max-width: 480px) {
  .carousel-fotos-track img { height: 130px; }
}


/* ===================== */
/* Rodapé */
.footer {
    background-color: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 0;
}
.social-links {
    margin-top: 1rem;
}
.social-icon {
    width: 30px;
    margin: 0 0.5rem;
}

/* ===================== */
/* Botão WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 36px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: bounce 1.8s infinite;
  transition: transform 0.2s ease-in-out;
}
.whatsapp-float:hover {
  transform: scale(1.15);
  background-color: #20b954;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===================== */
/* Animações de títulos */
h2 {
  position: relative;
  font-size: 2.5rem;
  font-weight: bold;
  color: #1a73e8;
  opacity: 0;
  transform: scale(0.1);
  animation: explosion 2s ease-out forwards;
}
h2::before, h2::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  background: rgba(26, 115, 232, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: -1;
  animation: circleExplosion 2s ease-out infinite;
}
h2::after { animation-delay: 0.5s; }
h2 span {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  background: rgba(26, 115, 232, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: -1;
  animation: circleExplosion 2s ease-out infinite;
  animation-delay: 1s;
}
@keyframes explosion {
  0% { opacity: 0; transform: scale(0.1) rotate(0deg); letter-spacing: -20px; filter: blur(5px); }
  50% { opacity: 1; transform: scale(1.3) rotate(15deg); letter-spacing: 2px; filter: blur(0); }
  70% { transform: scale(0.9) rotate(-10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); letter-spacing: normal; }
}
@keyframes circleExplosion {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
  70% { transform: translate(-50%, -50%) scale(6); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

/* ===================== */
/* Responsividade */
@media (max-width: 1024px) {
    .hero-content { padding: 15% 8%; }
    .hero-content h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; flex-direction: column; width: 100%; text-align: center; }
    .nav-menu li { width: 100%; }
    .nav-menu li a { display: block; padding: 1rem; border-top: 1px solid #eee; }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: flex; }

    .hero-content { padding: 20% 5%; }
    .hero-content h1 { font-size: 1.8rem; }
    .form-group-inline { flex-direction: column; }
    .carousel-fotos img { height: 160px; }
}
@media (max-width: 480px) {
    .hero-content { padding: 25% 3%; }
    .hero-content h1 { font-size: 1.5rem; }
    .carousel-fotos img { height: 140px; }
}
