/* Estilos Gerais */
:root {
  --primary-color: #DEC167; /* Dourado médio */
  --secondary-color: #666666; /* Cinza escuro */
  --light-color: #EFE8DC; /* Bege claro */
  --text-color: #666666; /* Cinza escuro como cor de texto */
  --accent-color: #C2A14A; /* Dourado mais escuro */
  --highlight-color: #A98130; /* Marrom dourado */
  --gray-light: #f0f0f0;
  --gray: #e0e0e0;
  --gray-dark: #666666;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--secondary-color);
}

h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0.5rem auto 0;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition);
}

a:hover {
  color: var(--highlight-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 3rem 0;
}

/* Acessibilidade */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Botões */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--accent-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--highlight-color);
  color: var(--light-color);
  border-color: var(--highlight-color);
  transform: translateY(-3px);
}

/* Header e Navegação */
header {
  background-color: var(--secondary-color);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
}

.menu-toggle {
  display: block;
  color: var(--light-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  transition: var(--transition);
  z-index: 999;
}

.nav-links.active {
  left: 0;
}

.nav-links li {
  list-style: none;
  margin: 0.5rem 0;
  text-align: center;
}

.nav-links a {
  color: var(--light-color);
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  display: block;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a:focus {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 7rem 0 4rem;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--light-color);
  text-align: center;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(60, 60, 60, 0.8); /* Cinza escuro com transparência */
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.hero h2:after {
  background-color: var(--primary-color);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Sobre Section */
.sobre-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.text-content {
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

/* Especialistas Section */
.medicos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.medico {
  text-align: center;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.medico:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.medico-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.medico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.medico h3 {
  margin-bottom: 0.25rem;
  color: var(--secondary-color);
}

.crm {
  font-size: 0.8rem;
  color: var(--text-color);
}

.especialidade {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.descricao {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Depoimentos Section */
.depoimentos {
  background-color: rgba(222, 193, 103, 0.1); /* Fundo sutil com a cor primária */
}

.depoimento {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  border-top: 4px solid var(--primary-color);
}

.rating {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.texto {
  font-style: italic;
  margin-bottom: 1rem;
}

.autor {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/* Perguntas Frequentes */
.accordion-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem;
  background-color: #fff;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: rgba(222, 193, 103, 0.1);
}

.accordion-header i {
  transition: var(--transition);
  color: var(--accent-color);
}

.accordion-header.active {
  background-color: rgba(222, 193, 103, 0.1);
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-color);
}

/* Contato Section */
.contato-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  text-align: center;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.info-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.cta {
  text-align: center;
  margin: 2rem 0;
}

.maps {
  margin-top: 2rem;
}

.maps h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.maps iframe {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--gray);
}

.footer-links h3, .footer-especialidades h3 {
  color: var(--light-color);
  margin-bottom: 1rem;
}

.footer-links ul, .footer-especialidades ul {
  list-style: none;
}

.footer-links li, .footer-especialidades li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-especialidades li {
  color: var(--gray);
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--highlight-color);
  color: var(--light-color);
}

/* Responsividade (Tablet) */
@media (min-width: 768px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .medicos {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contato-info {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Depoimentos em Grid para Desktop */
  .depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsividade (Desktop) */
@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
  
  .nav-links {
    position: static;
    height: auto;
    width: auto;
    background-color: transparent;
    flex-direction: row;
    padding: 0;
  }
  
  .nav-links li {
    margin: 0 0.5rem;
  }
  
  .nav-links a {
    padding: 0.5rem 1rem;
  }
  
  .hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
  }
  
  .hero h2 {
    font-size: 3rem;
  }
  
  .sobre-content {
    flex-direction: row;
    align-items: center;
  }
  
  .text-content {
    flex: 1;
    text-align: left;
  }
  
  .features {
    flex: 2;
  }
  
  /* Depoimentos em Grid para Desktop */
  .depoimentos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .swiper-container {
    display: none;
  }
}

/* Acessibilidade adicional */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Estilos para garantir mesmas dimensões nos cards de depoimentos */
.swiper-slide {
  height: auto;
}

.depoimento {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 240px; /* Altura mínima fixa para todos os cards */
}

.depoimento .texto {
  flex-grow: 1; /* Permite que o texto ocupe o espaço disponível */
  font-style: italic;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limita a 5 linhas de texto */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.depoimento .autor {
  font-weight: 600;
  color: var(--text-color);
  margin-top: auto; /* Posiciona o autor sempre no final do card */
}

/* Melhor posicionamento para a paginação do Swiper */
.depoimentos-slider {
  padding-bottom: 50px; /* Aumenta o espaço para a paginação */
  position: relative;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px !important; /* Força a posição bottom */
  left: 0;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  opacity: 0.6;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* Garantir responsividade dos cards */
@media (min-width: 768px) {
  .swiper-slide {
    height: auto;
  }
  
  .depoimento {
    min-height: 260px; /* Ajuste para tablets */
  }
}

@media (min-width: 992px) {
  .depoimento {
    min-height: 280px; /* Ajuste para desktop */
  }
}