/*
  Hospital Dia Dracena — Estilos Globais
  Versão corrigida e otimizada
  ============================================

  ÍNDICE
  1.  Reset & Variáveis
  2.  Base / Tipografia
  3.  Header & Navegação
  4.  Botão Hambúrguer
  5.  Botões
  6.  Hero Principal
  7.  Seções (base)
  8.  Especialidades
  9.  Como Funciona
  10. Depoimentos / Carrossel
  11. Formulário de Agendamento
  12. FAQ
  13. Footer
  14. Botão Flutuante WhatsApp
  15. Bloco Odontologia
  16. Utilitários
  17. Media Queries (1024 / 768 / 480px)
*/

/* ============================================
   1. RESET & VARIÁVEIS
   ============================================ */

*,
*::before,
*::after {
  /* FIX: seletor anterior era só "*" — ::before e ::after não herdavam box-sizing */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary:      #bc0000;
  --primary-dark: #c2185b;
  --secondary:    #1976d2;
  --dark:         #1a1a1a;
  --light:        #f5f5f5;
  --gray:         #757575;
  --gray-light:   #9e9e9e;
  --border:       #e0e0e0;
  --success:      #4caf50;
  --error:        #f44336;
  --pink-light:   #fce4ec;

  /* FIX: tokens de espaçamento e tipografia ausentes — centraliza manutenção */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg:  0 6px 20px rgba(0, 0, 0, 0.18);
  --transition: 0.3s ease;

  /* FIX: z-index gerenciados como variáveis evita conflitos futuros */
  --z-header:    100;
  --z-hamburger: 101;
  --z-whatsapp:   50;
}

/* ============================================
   2. BASE / TIPOGRAFIA
   ============================================ */

html {
  scroll-behavior: smooth;
  /* FIX: scroll-behavior no html duplicava o comportamento do JS e causava
     conflito em Safari. O JS já cuida do smooth scroll — aqui mantemos para
     âncoras nativas (sem JS), mas não há conflito real. */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 17px;
  /* FIX: margin:0 e padding:0 são redundantes — já cobertos pelo reset */
  /* FIX: width:100% no body é desnecessário e pode causar scroll horizontal */
}

/* FIX: foco visível ausente — crítico para acessibilidade (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* FIX: sem estilo de seleção de texto — pequeno detalhe de identidade visual */
::selection {
  background: var(--pink-light);
  color: var(--primary-dark);
}

/* ============================================
   3. HEADER & NAVEGAÇÃO
   ============================================ */

header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.header-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  /* FIX: padding era "0.2rem 2rem" — muito apertado verticalmente, header parecia comprimido */
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  /* FIX: sem flex-shrink: 0 — logo era esmagada em telas médias */
  flex-shrink: 0;
}

/* FIX: width inline de 200px no HTML movido para cá */
.logo-img {
  width: 180px;
  height: auto;
  display: block;
}

.logo-icon {
  width: 35px;
  height: 35px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1.02rem;
  transition: color var(--transition);
  /* FIX: sem padding nos links — área clicável muito pequena */
  padding: 0.25rem 0;
  /* FIX: indicador de link ativo ausente — dificulta orientação do usuário */
  position: relative;
}

/* FIX: sublinhado animado no hover — mais elegante que só mudar cor */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Header CTA */
.header-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  /* FIX: sem flex-shrink: 0 — botões eram comprimidos entre o logo e o menu */
  flex-shrink: 0;
}

.phone-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.02rem;
  /* FIX: sem white-space: nowrap — número quebrava em duas linhas */
  white-space: nowrap;
  transition: color var(--transition);
}

.phone-link:hover {
  color: var(--primary);
}

/* ============================================
   4. BOTÃO HAMBÚRGUER
   ============================================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* FIX: padding: 0 tornava a área de toque muito pequena em mobile (< 44x44px WCAG) */
  padding: 8px;
  z-index: var(--z-hamburger);
  border-radius: var(--radius-sm);
  /* FIX: sem min width/height — área de toque insuficiente em dispositivos touch */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px); /* FIX: saída suave em vez de sumir abruptamente */
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   5. BOTÕES
   ============================================ */

.btn {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  /* FIX: sem line-height definido — botão com texto multilinha ficava sem espaçamento correto */
  line-height: 1.4;
  /* FIX: sem user-select: none — texto do botão era selecionável ao clicar rápido */
  user-select: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
  color: #fff; /* FIX: cor do texto some em alguns browsers sem declaração explícita no :hover */
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ============================================
   6. HERO PRINCIPAL
   ============================================ */

.hero {
  min-height: 550px; /* FIX: height fixo cortava conteúdo em mobile — trocado por min-height */
  width: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    /* FIX: overlay era 0.35 — pouco contraste com texto branco (falha WCAG 1.4.3) */
    url('https://d2xsxph8kpxj0f.cloudfront.net/310519663345407806/kz6dyrDD6XtNL8hLs7PKgj/hero-medical-care-Q2B2bQT2HxgTud4A2th62M.webp')
    center / cover no-repeat;
  /* FIX: background-attachment: fixed causa má performance em mobile (repaint constante)
     e é ignorado em iOS Safari — removido */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 4rem 2rem; /* FIX: padding: 0 cortava texto nas bordas em telas pequenas */
}

.hero-content {
  max-width: 700px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem); /* FIX: font-size fixo — trocado por clamp para fluidez */
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.7;
  /* FIX: margin-left/right auto redundantes — pai já centraliza com text-align */
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.3rem;
}

/* ============================================
   7. SEÇÕES (base)
   ============================================ */

.section {
  padding: 4rem 2rem;
  width: 100%;
  box-sizing: border-box;
  /* FIX: max-width: 100% e margin: 0 explícitos eram desnecessários (comportamento padrão) */
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
  line-height: 1.6;
}

/* ============================================
   8. ESPECIALIDADES
   ============================================ */

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

/* FIX: .specialty-item era <div> no HTML original — agora é <button>.
   Reset de estilos nativos do botão necessário. */
.specialty-item {
  padding: 1rem;
  background: var(--light);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray);
  /* FIX: propriedades de reset para <button> */
  font-family: inherit;
  line-height: 1.4;
  width: 100%;
}

.specialty-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* FIX: estado focus-visible explícito para navegação por teclado */
.specialty-item:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.specialties-cta {
  text-align: center;
  background: var(--pink-light);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(233, 30, 99, 0.2);
}

.specialties-cta h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.specialties-cta p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ============================================
   9. COMO FUNCIONA
   ============================================ */

.how-it-works {
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.step {
  text-align: center;
  position: relative;
  /* FIX: sem padding lateral — texto colava nas bordas em grid apertado */
  padding: 0 0.5rem;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 600;
}

.step p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.benefits {
  background: var(--pink-light);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(233, 30, 99, 0.2);
}

.benefits h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--dark);
  font-weight: 600;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem; /* FIX: gap único — espaçamento vertical era excessivo (1.5rem) */
}

.benefit-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* FIX: .benefit-icon tinha content:"✓" via ::before E o HTML também colocava ✓.
   Resultado: ícone aparecia duplicado. Regra ::before removida — ícone vem só do HTML. */
.benefit-icon {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.benefit-item span:last-child {
  color: var(--dark);
  font-size: 1.02rem;
  font-weight: 500;
}

/* ============================================
   10. DEPOIMENTOS / CARROSSEL
   ============================================ */

.testimonials {
  background: #fff;
}

/* FIX: .carousel estava dentro de .carousel-wrapper mas o wrapper não existia no HTML —
   adicionado wrapper no CSS sem depender dele no HTML (regra defensiva) */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.carousel {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  max-width: 520px;
  /* FIX: margin-bottom estava no .carousel, mas ele está dentro do wrapper agora —
     o margin vai para o wrapper. Mantido aqui como fallback. */
  margin: 0 auto 2.5rem;
  /* FIX: sem min-height — carrossel pulava de tamanho ao trocar depoimentos */
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--primary);
  /* FIX: sem display: block — linha extra abaixo da imagem (inline baseline gap) */
  display: block;
}

.stars {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 1.1rem; /* FIX: era 1rem — estrelas muito pequenas */
  letter-spacing: 3px;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--gray);
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 700; /* FIX: era 600 — pouca diferença visual do texto normal */
  margin-bottom: 0.25rem;
  color: var(--dark);
  font-size: 1.02rem;
}

.testimonial-specialty {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Dots de navegação */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

/* FIX: .dot era <div> sem interatividade acessível — agora é <button> no HTML.
   Reset de estilos de botão necessário. */
.dot {
  width: 10px;  /* FIX: era 8px — muito pequeno para clicar (< 44px WCAG mínimo em touch) */
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  /* Reset de <button> */
  border: none;
  padding: 0;
  font-size: 0;
  /* FIX: área clicável aumentada com padding virtual */
  position: relative;
}

/* FIX: área de toque ampliada sem mudar o visual */
.dot::after {
  content: '';
  position: absolute;
  inset: -8px;
}

.dot.active {
  background: var(--primary);
  width: 28px; /* FIX: era 25px — proporção mais harmoniosa */
  border-radius: var(--radius-sm);
}

/* Botões prev/next do carrossel */
.carousel-prev,
.carousel-next {
  background: var(--pink-light);
  border: 2px solid var(--primary);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  /* FIX: min-width/height garantem área de toque adequada */
  min-width: 44px;
  min-height: 44px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  /* FIX: sem transição — hover sem feedback */
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  /* FIX: hover ausente — cards estáticos demais */
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card-label {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ============================================
   11. FORMULÁRIO DE AGENDAMENTO
   ============================================ */

.booking {
  background: #fff;
}

.form-container {
  max-width: 450px;
  margin: 0 auto;
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius-md);
  /* FIX: sem sombra — formulário não se destacava visualmente da seção */
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem; /* FIX: era 1.5rem — espaçamento desnecessariamente grande */
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff; /* FIX: select herdava fundo cinza em alguns browsers */
  color: var(--dark);
  /* FIX: sem -webkit-appearance: none no select — aparência nativa inconsistente entre browsers */
  appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}

/* FIX: placeholder sem cor definida — quase invisível em alguns browsers */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem; /* FIX: era 0.95rem — botão principal merece mais destaque */
  font-weight: 700; /* FIX: era 600 */
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

.form-submit:active {
  /* FIX: estado :active ausente — sem feedback visual ao clicar */
  transform: translateY(0);
  box-shadow: none;
}

/* Mensagens de feedback */
.form-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: none;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border: 1px solid var(--success);
  display: block;
}

.form-message.error {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  border: 1px solid var(--error);
  display: block;
}

/* FIX: aviso de privacidade estava com style inline no HTML — movido para cá */
.form-disclaimer {
  text-align: center;
  color: var(--gray-light);
  font-size: 0.82rem;
  margin-top: 1rem;
  line-height: 1.4;
}

/* ============================================
   12. FAQ
   ============================================ */

.faq {
  background: #fff;
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
  /* FIX: sem transição na borda — abrir um item não dava feedback visual */
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:has(.faq-answer.open) {
  /* FIX: item ativo sem destaque visual — borda colorida indica qual está aberto */
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.15);
}

.faq-question {
  padding: 1.3rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  font-size: 1.02rem;
  font-family: inherit;
  color: var(--dark);
  /* FIX: min-height para área de toque adequada */
  min-height: 44px;
  gap: 1rem; /* FIX: sem gap — ícone colava no texto em perguntas longas */
}

.faq-question:hover {
  background: var(--light);
  color: var(--primary);
}

.faq-toggle {
  transition: transform var(--transition);
  font-size: 0.9rem; /* FIX: era 1.2rem — ▼ muito grande em relação ao texto */
  flex-shrink: 0;
  color: var(--primary);
}

.faq-toggle.open {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.3rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  /* FIX: background sem border-top — resposta não tinha separação visual da pergunta */
  background: var(--light);
  border-top: 0px solid var(--border);
}

.faq-answer.open {
  padding: 1.3rem;
  max-height: 600px; /* FIX: era 500px — respostas longas eram cortadas */
  border-top-width: 1px;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.9rem;
}

.faq-cta {
  background: var(--pink-light);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 3rem;
  border: 1px solid rgba(233, 30, 99, 0.2);
}

.faq-cta h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-cta p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

/* ============================================
   13. FOOTER
   ============================================ */

footer {
  background: var(--dark);
  color: #fff;
  padding: 3rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  /* FIX: sem cor explícita — herdava #fff OK, mas explícito é mais manutenível */
  color: #fff;
}

.footer-section p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #bbb;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap; /* FIX: sem wrap — ícones vazavam em telas muito estreitas */
}

.social-icon {
  width: 38px;  /* FIX: era 36px — abaixo do mínimo de 44px (WCAG) */
  height: 38px;
  /* FIX: min-width/height para garantir área de toque */
  min-width: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-2px); /* FIX: só scale antes — adicionar elevação é mais elegante */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #bbb;
}

.footer-bottom a {
  color: #bbb;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ============================================
   14. BOTÃO FLUTUANTE WHATSAPP
   ============================================ */

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); /* FIX: sombra genérica — cor verde combina melhor */
  transition: all var(--transition);
  z-index: var(--z-whatsapp);
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* FIX: animação de pulso para chamar atenção — sutil e não intrusiva */
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}

.whatsapp-btn {
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-btn:hover {
  animation: none; /* Parar pulso no hover para não conflitar com scale */
}

/* ============================================
   15. BLOCO ODONTOLOGIA
   ============================================ */

.hero-specialty {
  background: #fff;
  padding: 4rem 2rem;
  margin: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-specialty-container {
  max-width: 1200px; /* FIX: era 1400px — muito largo, texto ficava disperso */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-specialty-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 400px;
}

.hero-specialty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease; /* FIX: era 0.3s — zoom muito abrupto */
}

.hero-specialty-image:hover img {
  transform: scale(1.04); /* FIX: era 1.05 — zoom menor evita corte brusco nas bordas */
}

.hero-specialty-content {
  padding: 1rem 2rem; /* FIX: era só 2rem — padding vertical desnecessário aqui */
}

.hero-specialty-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-specialty-title .highlight {
  color: var(--primary);
}

.hero-specialty-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn-specialty-cta {
  display: inline-block;
  background: var(--pink-light);
  color: var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid var(--primary);
  margin-bottom: 2rem;
  /* FIX: texto ">> Clique aqui..." era informacional mas parecia genérico —
     foi melhorado no HTML; CSS não precisa de ajuste adicional */
}

.btn-specialty-cta:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Áreas de atuação */
.areas-atuacao {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--primary);
}

.areas-atuacao h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.areas-atuacao ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem; /* FIX: era só 0.8rem — gap horizontal estava faltando */
}

.areas-atuacao li {
  font-size: 1.02rem;
  color: var(--dark);
  font-weight: 500;
  /* FIX: padding: 0.5rem 0 criava espaço excessivo no grid denso */
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* FIX: marcador via ::before — consistente com o CSS original, mas usando content correto */
.areas-atuacao li::before {
  content: '»';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   16. UTILITÁRIOS
   ============================================ */

/* FIX: classes utilitárias ausentes — frequentemente necessárias em manutenção */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* FIX: preferência de redução de movimento — acessibilidade (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   17. MEDIA QUERIES
   ============================================ */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  /* Header */
  .hamburger {
    display: flex;
  }

  /* FIX: "nav { display: none }" original ocultava nav por seletor de tag —
     perigoso se houver outros <nav> na página. Usando classe específica. */
.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0 2rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.nav-menu.active {
    display: flex;
    padding: 1.5rem 2rem;
}

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border); /* FIX: sem separador entre itens em mobile */
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    font-size: 1rem; /* FIX: era 0.9rem — muito pequeno em touch */
    padding: 0.75rem 0;
    display: block;
    /* FIX: sem min-height para área de toque adequada */
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* FIX: sublinhado animado não funciona bem em mobile — desabilitar */
  .nav-menu a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .logo-img {
    width: 140px; /* FIX: era "150px !important" inline — !important desnecessário no CSS */
  }

  /* Hero */
  .hero {
    padding: 3rem 1.5rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  /* Seções */
  .section {
    padding: 2.5rem 1.25rem;
  }

  /* Especialidades */
  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Benefits */
  .benefits-list {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Carrossel */
  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Odontologia */
  .hero-specialty {
    padding: 2.5rem 1.25rem;
    margin: 2rem 0;
  }

  .hero-specialty-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-specialty-image {
    height: 280px;
  }

  .hero-specialty-content {
    padding: 0 0.5rem;
  }

  .areas-atuacao ul {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* WhatsApp */
  .whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

/* --- Smartphone (≤ 480px) --- */
@media (max-width: 480px) {
  /* Header */
  .header-container {
    padding: 0.75rem 1rem;
  }

  .logo-img {
    width: 120px;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 1rem;
  }

  .hero-stats {
    /* FIX: era grid 1 coluna — 3 colunas cabe bem em 480px, só ajustar fonte */
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Seções */
  .section {
    padding: 2rem 1rem;
  }

  /* Especialidades */
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: 1fr;
  }

  /* Botão CTA odonto */
  .btn-specialty-cta {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Hero odonto */
  .hero-specialty-image {
    height: 220px;
  }

  .areas-atuacao li {
    font-size: 0.88rem;
  }
}
