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

/* FORÇA O BOTÃO DE ACESSIBILIDADE A APARECER SEMPRE - MÁXIMA PRIORIDADE */
#accessibility-toggle,
button#accessibility-toggle,
.accessibility-toggle {
  position: fixed !important;
  left: 1rem !important;
  bottom: 1.25rem !important;
  z-index: 2147483647 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateZ(0) !important;
  will-change: transform !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  isolation: isolate !important;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Garante que o botão de acessibilidade apareça imediatamente */
body::before {
  content: "";
  position: fixed;
  z-index: 2147483646;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Tipografia e cores base (não altera existentes) */
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: #1e1e1e;
  line-height: 1.6;
}

:root {
  --brand-bg: #242122; /* já existente no header */
  --brand-accent: #d5d689; /* já existente no hover do menu */
  --accent-text: #d71b1b; /* já existente no botão .home-button */
  --card-bg: #ffffff;
  --text-muted: #5c636a;
  /* CTA palette */
  --cta-bg: #cbb68f; /* dourado */
  --cta-hover: #3fa796; /* verde para hover */
  --cta-text: #ffffff; /* texto branco */
  --accent-green: #3fa796; /* verde de apoio */
}

/* Força o botão de acessibilidade a aparecer sempre */
#accessibility-toggle,
.accessibility-toggle {
  position: fixed !important;
  left: 1rem !important;
  bottom: 1.25rem !important;
  z-index: 2147483647 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: flex !important;
  pointer-events: auto !important;
  contain: layout style !important;
  will-change: transform !important;
}

/* Garante que contêineres não afetem o botão */
.intro-video,
.hero,
section,
main {
  position: relative !important;
}

.navbar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #242122;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative; /* cria contexto de empilhamento */
  z-index: 10; /* acima do overlay do vídeo (z=2) */
}

.logo img {
  width: 11rem;
  border-radius: 10px;
}

.menu-container {
  display: flex;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.menu li {
  display: inline;
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #d5d689; /* mesma cor do hover */
  transition: width 0.3s ease;
}

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

.menu a:hover {
  color: #d5d689; /* Cor mais clara para hover */
}

/* Ícone de hambúrguer */
.menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-close {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

.menu-container.active .menu-close {
  display: block;
}

.intro-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: auto;
}
.intro-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Gradient escuro sutil: topo transparente, base mais escura */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.071) 0%,
    /* transparente no topo */ rgba(0, 0, 0, 0.059) 58%,
    /* mantém transparente até mais embaixo */ rgba(0, 0, 0, 0.342) 75%,
    /* começa a escurecer mais abaixo */ rgba(0, 0, 0, 0.527) 100%
      /* mais escuro apenas na base */
  );
  z-index: 1; /* acima do video (-1) e abaixo dos botões (2) */
}

.video-background {
  position: absolute;
  background: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.video .home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center; /* top-center */
  padding: 1rem;
  padding-top: 6rem; /* espaço do topo para não colar no navbar */
  /* Coloca título e botão acima da sombra/gradiente (z=1) */
  z-index: 2;
}
.hero-stack {
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.hero-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  font-size: 2rem;
  line-height: 1.2;
  position: relative;
  /* Título posicionado naturalmente no topo */
  transform: none;
  /* Título também fica à frente da sombra */
  z-index: 2;
}

.container-home {
  display: flex;
  text-align: center;
  padding: 0 7rem;
}

.perfil {
  width: 25rem;
  border-radius: 10px;
  filter: grayscale(0.2) saturate(0.9) contrast(1.05);
}

.perfil-paragraph {
  font-family: "Roboto slab", sans-serif;
  color: #fff;
}

.container-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 25rem;
  gap: 4rem;
  margin-left: 2rem; /* Espaçamento entre a imagem e o texto */
}

.container-home {
  display: flex;
  justify-content: center;
  background-color: var(--brand-bg);
}

.container-home p {
  color: var(--brand-accent);
}

.home-title {
  font-family: "Poppins", sans-serif;
  color: #fff;
  font-size: 2.2rem;
}

.home-paragraph {
  font-family: "Roboto slab", sans-serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.5;
}

.home-button {
  text-decoration: none;
  display: flex;
  justify-content: center;
  font-family: "Roboto slab", sans-serif;
  width: 12rem;
  color: var(--cta-text);
  padding: 0.8rem;
  border: 1px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: var(--cta-bg);
  position: relative; /* permite z-index */
  font-size: 0.95rem;
  z-index: 3; /* acima do gradiente (z=1) */
}

.home-button:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(63, 167, 150, 0.25);
}

/* Botão secundário abaixo do CTA principal */
.hero-modal-btn {
  margin-top: 0.5rem;
  z-index: 3; /* garantir acima do overlay */
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.scroll-reveal.show {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Link de pular conteúdo (acessibilidade) */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 1002;
}

/* Containers utilitários (não conflita com existentes) */
.section {
  padding: 4rem 1.25rem;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Garante que a seção em si não seja animada (apenas o conteúdo interno) */
.services.scroll-reveal,
.about.scroll-reveal,
.contact.scroll-reveal {
  opacity: 1;
  transform: none;
}

/* Services section */
.services {
  padding: 2rem 0;
  background: var(--brand-bg);
  color: var(--brand-accent);
}
.services .container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.services h2 {
  text-align: center;
  grid-column: 1 / -1;
  font-size: 2rem;
  color: var(--brand-accent);
  margin-bottom: 0.5rem;
}
.services p {
  text-align: center;
}
.service-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.service-card {
  background: var(--brand-bg);
  border: 1px solid var(--brand-accent);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--brand-accent);
}
.service-card p {
  color: var(--brand-accent);
  opacity: 0.9;
  font-size: 0.95rem;
}

/* About section (contraste claro) */
.about {
  padding: 2rem 0;
  background: #ffffff;
  color: #242122;
}
.about .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.about h2 {
  text-align: center;
  grid-column: 1 / -1;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}
.about p {
  color: #374151;
}
.about .feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.about .feature {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
}

/* Contact section */
.contact {
  padding: 2rem 0;
  background: var(--brand-bg);
  color: var(--brand-accent);
}
.contact .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.contact h2 {
  text-align: center;
  grid-column: 1 / -1;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--brand-accent);
}
.contact p {
  color: var(--brand-accent);
  opacity: 0.9;
}
.contact .cta-box {
  background: var(--brand-bg);
  border: 1px solid var(--brand-accent);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.contact .cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}
.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(203, 182, 143, 0.25);
}
.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(63, 167, 150, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--accent-green);
  border-color: var(--accent-green);
}
.btn-outline:hover {
  background: var(--accent-green);
  color: #ffffff;
}

/* Específico: botão "Veja também..." com fundo branco */
.btn-outline.hero-modal-btn {
  background: #ffffff;
  color: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
/* Hover igual ao padrão outline (fundo verde, texto branco) */
.btn-outline.hero-modal-btn:hover {
  background: var(--accent-green);
  color: #ffffff;
  border-color: var(--accent-green);
}

/* Ícones minimalistas nos botões */
.btn svg.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Ícones dos cards de serviço */
.service-card .service-icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  margin-bottom: 0.5rem;
}

/* ========== Seção de Agendamento ========== */
.appointment {
  background: var(--brand-accent);
  color: #242122;
  padding: 4rem 0;
}
.appointment h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: #242122;
}
.appointment-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #242122;
  margin-bottom: 3rem;
  opacity: 0.85;
}

/* Grid de Cards de Agendamento */
.appointment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Card de Agendamento */
.appointment-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.appointment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cta-bg), var(--accent-green));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.appointment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--cta-bg);
}
.appointment-card:hover::before {
  transform: scaleX(1);
}

/* Ícone do Card */
.appointment-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}
.appointment-card-online .appointment-card-icon {
  background: linear-gradient(135deg, #3fa796 0%, #2d8070 100%);
}
.appointment-card-presential .appointment-card-icon {
  background: linear-gradient(135deg, #cbb68f 0%, #a89670 100%);
}
.appointment-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

/* Título e descrição do card */
.appointment-card h3 {
  font-size: 1.5rem;
  color: #111827;
  margin: 0;
}
.appointment-card > p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Lista de features */
.appointment-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.appointment-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #374151;
  font-size: 0.9rem;
}
.appointment-features svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-green);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* Botão de Agendamento */
.appointment-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
}
.appointment-btn svg {
  width: 20px;
  height: 20px;
  fill: #25d366 !important;
  stroke: #25d366 !important;
  color: #25d366 !important;
}

/* Informações Adicionais */
.appointment-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}
.appointment-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.appointment-info-item svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-green);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.appointment-info-item strong {
  display: block;
  color: #111827;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.appointment-info-item p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsividade para Tablets */
@media (max-width: 992px) {
  .appointment-grid {
    gap: 1.5rem;
  }
  .appointment-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
  .appointment {
    padding: 3rem 0;
  }
  .appointment h2 {
    font-size: 2rem;
  }
  .appointment-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .appointment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .appointment-card {
    padding: 1.5rem;
  }
  .appointment-card-icon {
    width: 56px;
    height: 56px;
  }
  .appointment-card-icon svg {
    width: 28px;
    height: 28px;
  }
  .appointment-card h3 {
    font-size: 1.25rem;
  }
  .appointment-info {
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .appointment-info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Footer */
footer {
  background: var(--brand-bg);
  color: var(--brand-accent);
  text-align: center;
  padding: 1.25rem;
}
footer p {
  font-size: 0.9rem;
}

.togyro-link {
  text-decoration: none;
}

.togyro-black {
  color: #ffffff;
}

.togyro-red {
  color: #dc2626;
}

/* Scroll to top button */
.scroll-up {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--brand-accent);
  background: var(--brand-bg);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1003;
}
.scroll-up.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-up:hover {
  background: #1a1818;
}

/* Botão flutuante de acessibilidade */
.accessibility-toggle {
  position: fixed !important;
  left: 1rem !important;
  bottom: 1.25rem !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  border: 2px solid var(--brand-accent) !important;
  background: var(--brand-bg) !important;
  color: var(--brand-accent) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s ease !important;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  transform: translateZ(0) !important;
  isolation: isolate !important;
}
.accessibility-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.accessibility-toggle.active {
  background: var(--brand-accent);
  color: var(--brand-bg);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(213, 214, 137, 0.4);
}
.accessibility-toggle svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.accessibility-toggle:hover svg {
  transform: scale(1.1);
}

.accessibility-toggle.active svg {
  transform: scale(1.05) rotate(5deg);
}

/* Menu/Painel de Acessibilidade */
.accessibility-panel {
  position: fixed;
  left: 1rem;
  bottom: 5.5rem;
  width: min(320px, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
  background: var(--brand-bg);
  border: 2px solid var(--brand-accent);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 9998;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.accessibility-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.accessibility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--brand-bg);
  border-bottom: 1px solid var(--brand-accent);
}
.accessibility-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-accent);
}
.accessibility-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--brand-accent);
  background: transparent;
  color: var(--brand-accent);
  cursor: pointer;
  transition: all 0.2s ease;
}
.accessibility-close:hover {
  background: var(--brand-accent);
  color: var(--brand-bg);
}
.accessibility-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}
.accessibility-group {
  margin-bottom: 1.25rem;
}
.accessibility-group h3 {
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  color: var(--brand-accent);
  font-weight: 600;
}
.accessibility-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.accessibility-btn {
  flex: 1;
  min-width: 48px;
  height: 44px;
  border: 1px solid var(--brand-accent);
  background: transparent;
  color: var(--brand-accent);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.accessibility-btn:hover,
.accessibility-btn.active {
  background: var(--brand-accent);
  color: var(--brand-bg);
}
.accessibility-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.accessibility-toggle-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--brand-accent);
  font-size: 0.9rem;
}
.accessibility-toggle-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-accent);
}
.accessibility-reset-all {
  width: 100%;
  margin-top: 1rem;
  background: var(--brand-accent);
  color: var(--brand-bg);
  font-weight: 600;
}
.accessibility-reset-all:hover {
  opacity: 0.9;
}

/* Classes de acessibilidade aplicadas ao body */
body.font-size-increase {
  font-size: 110%;
}
body.font-size-increase-2 {
  font-size: 120%;
}
body.font-size-decrease {
  font-size: 90%;
}
body.line-spacing-increase * {
  line-height: 2 !important;
}
body.readable-font,
body.readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}
body.highlight-links a {
  background: var(--cta-bg) !important;
  color: #000 !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
}
body.focus-indicator *:focus {
  outline: 3px solid var(--cta-hover) !important;
  outline-offset: 2px !important;
}

/* Previne tremor de texto e subpixel rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Modo Escuro */
body.theme-dark {
  background: #0a0a0a;
  color: #e5e5e5;
}
body.theme-dark .navbar {
  background: #000;
}
body.theme-dark .services,
body.theme-dark .contact,
body.theme-dark footer {
  background: #111;
}
body.theme-dark .about {
  background: #1a1a1a;
  color: #e5e5e5;
}
body.theme-dark .about p {
  color: #d1d1d1;
}
body.theme-dark .service-card,
body.theme-dark .about .feature {
  background: #1a1a1a;
  border-color: #333;
}
body.theme-dark .accessibility-panel {
  background: #1a1a1a;
  border-color: #444;
}
body.theme-dark .accessibility-header {
  background: #1a1a1a;
  border-color: #444;
}
body.theme-dark .accessibility-btn {
  border-color: #555;
  color: #d5d689;
}
body.theme-dark .accessibility-toggle {
  background: #1a1a1a;
  border-color: #555;
}
body.theme-dark .modal-dialog {
  background: #1a1a1a;
  border-color: #444;
}

/* Alto Contraste */
body.theme-high-contrast {
  background: #000 !important;
  color: #fff !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
body.theme-high-contrast * {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
body.theme-high-contrast .accessibility-toggle,
body.theme-high-contrast .accessibility-panel,
body.theme-high-contrast .accessibility-btn,
body.theme-high-contrast button,
body.theme-high-contrast .btn {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}
body.theme-high-contrast a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}
body.theme-high-contrast img,
body.theme-high-contrast video {
  filter: contrast(1.2) brightness(0.9);
  will-change: auto;
}

/* Responsividade mobile para o painel de acessibilidade */
@media (max-width: 640px) {
  .accessibility-toggle {
    left: 0.75rem;
    bottom: 0.75rem;
    width: 46px;
    height: 46px;
  }
  .accessibility-panel {
    left: 0.75rem;
    bottom: 5rem;
    width: calc(100vw - 1.5rem);
  }
}

/* Sound toggle button over video */
.sound-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--brand-accent);
  background: rgba(0, 0, 0, 0.45);
  color: var(--brand-accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  z-index: 3; /* acima do overlay (z=2) para ser clicável */
}
.sound-toggle:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  display: none; /* toggled via JS */
  align-items: center;
  justify-content: center;
  z-index: 2000; /* acima de tudo */
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.modal-dialog {
  position: relative;
  background: #111;
  color: #f9f9f9;
  border: 1px solid var(--brand-accent);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  width: min(92vw, 880px);
  max-height: 86vh;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--brand-accent);
  background: rgba(0, 0, 0, 0.5);
  color: var(--brand-accent);
  cursor: pointer;
}
.modal-content {
  overflow: hidden;
  border-radius: 10px;
}
.modal-video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}

@media (max-width: 640px) {
  .hero-modal-btn {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }
  .modal-dialog {
    width: 94vw;
    padding: 0.75rem;
  }
}

/* Responsividade das novas seções */
@media (max-width: 992px) {
  .services .container,
  .about .container,
  .contact .container {
    display: block;
  }
  .service-grid,
  .about .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .service-grid,
  .about .feature-list {
    grid-template-columns: 1fr;
  }
}

/* Menu mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
  }

  .menu-container {
    position: absolute;
    align-items: center;
    justify-content: center;
    text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #242122; /* Cor do menu */
    overflow: hidden;
    max-height: 0; /* Inicialmente escondido */
    transition: max-height 0.5s ease; /* Animação suave */
    z-index: 1000;
  }

  .menu-container.active {
    max-height: 300px; /* Altura máxima quando expandido */
  }

  .menu {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .container-home {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .home {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .home-title {
    font-size: 1.5rem;
  }

  .container-texts {
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-left: 0;
    padding: 0 2rem;
  }

  .home-paragraph {
    font-size: 1rem;
  }
}

/* Mobile refinements */
@media (max-width: 640px) {
  .section {
    padding: 2.5rem 1rem;
  }

  .services h2,
  .about h2,
  .contact h2 {
    font-size: 1.5rem;
  }

  .services p,
  .about p,
  .contact p {
    font-size: 0.95rem;
  }

  .service-card {
    padding: 1rem;
  }

  .perfil {
    width: 14rem;
    height: 15rem;
  }

  /* Hero video: reduzir a sensação de zoom no mobile */
  .intro-video {
    height: 100svh; /* usa altura do viewport considerando UI móvel */
  }
  .video-background {
    object-fit: contain; /* mostra mais do vídeo, sem cortar demais */
    background: #000; /* barras pretas discretas quando necessário */
  }

  .video-overlay {
    place-items: start center; /* top-center no mobile */
    padding: 0.75rem;
    padding-top: 4.5rem; /* espaço abaixo da navbar */
    padding-bottom: 1rem;
  }

  .home-button {
    width: auto;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }

  .contact .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .scroll-up {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 40px;
    height: 40px;
  }
}

/* Correções finais para ícones WhatsApp e acessibilidade */
[href*="whatsapp"] svg,
[href*="wa.me"] svg,
.appointment-btn svg {
  fill: #25d366 !important;
  stroke: #25d366 !important;
  color: #25d366 !important;
}

/* Keyframe para garantir visibilidade do botão */
@keyframes show-accessibility {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

/* Força máxima para o botão de acessibilidade */
#accessibility-toggle.accessibility-toggle {
  position: fixed !important;
  left: 1rem !important;
  bottom: 1.25rem !important;
  z-index: 2147483647 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: var(--brand-bg) !important;
  border: 2px solid var(--brand-accent) !important;
  color: var(--brand-accent) !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transform: translateZ(0) !important;
  animation: show-accessibility 0.1s infinite !important;
  isolation: isolate !important;
  contain: layout !important;
}
