/* ==========================================================================
   1. RESET, LAYOUT BASE & VARIÁVEIS GLOBAIS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
  color: var(--text-primary, #1e293b);
  background-color: var(--bg-page, #f8fafc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-wrap: break-word;
}

.section-padding {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Scroll offset para navegação suave (#) */
section[id],
div[id],
header[id] {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   2. ACESSIBILIDADE — FOCUS VISIBLE
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--purple, #6b4c82);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple, #6b4c82);
  outline-offset: 3px;
}

/* Remove foco no clique, mantém no teclado */
:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   3. HEADER FIXO
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--text-primary, #1e293b);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--purple, #6b4c82);
}

/* ==========================================================================
   3.1 BOTÃO HAMBURGUER (só aparece no mobile)
   ========================================================================== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
  z-index: 1003;
  transition: background var(--transition-fast, 0.2s ease);
}

.menu-toggle:hover {
  background: var(--purple-light, #f4f0f7);
}

.menu-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--purple, #6b4c82);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
  transform: translateX(-50%);
}

/* 3 barrinhas */
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

/* Animação para virar X quando aberto */
.menu-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ==========================================================================
   3.2 MENU MOBILE (drawer)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 90px 24px 32px;
  z-index: 1002;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-menu-inner a {
  text-decoration: none;
  color: var(--text-primary, #1e293b);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md, 12px);
  transition: background var(--transition-fast, 0.2s ease), color var(--transition-fast, 0.2s ease);
}

.mobile-menu-inner a:hover,
.mobile-menu-inner a:focus-visible {
  background: var(--purple-light, #f4f0f7);
  color: var(--purple, #6b4c82);
}

.btn-menu-whatsapp {
  margin-top: 16px;
  padding: 14px 20px !important;
  justify-content: center;
  font-size: 15px !important;
}

/* Overlay escuro atrás do menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 36, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Bloqueia scroll do body quando menu aberto */
body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   3.3 AJUSTE NO HEADER PARA MOBILE
   ========================================================================== */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  /* Esconde CTA do header no mobile (fica dentro do menu) */
  .header-cta {
    display: none;
  }

  /* Reposiciona logo */
  .header-inner {
    padding: 12px 20px;
  }

  .logo img {
    height: 55px;
  }
}

/* Esconde o menu mobile no desktop */
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   4. BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--purple, #6b4c82);
  color: #fff;
  box-shadow: 0 4px 14px rgba(107, 76, 130, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 76, 130, 0.35);
  background-color: #5d4172;
}

.btn-secondary {
  background-color: #fff;
  color: var(--text-primary, #1e293b);
  border: 1px solid var(--border, #e2e8f0);
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: var(--purple, #6b4c82);
}

.btn-light {
  background: #fff;
  color: var(--purple, #6b4c82);
  font-weight: 700;
  border: 2px solid transparent;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--purple, #6b4c82);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--purple-light, #f4f0f8);
  color: var(--purple, #6b4c82);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.tag-pill .dot {
  width: 8px;
  height: 8px;
  background-color: var(--purple, #6b4c82);
  border-radius: 50%;
}

.hero-text h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  word-wrap: break-word;
}

.hero-text h1 em {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-weight: 400;
  color: var(--purple, #6b4c82);
}

.hero-text p {
  font-size: 17px;
  color: var(--text-muted, #64748b);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card .ph-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 4px solid #fff;
  height: 420px;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   6. CABEÇALHO DAS SEÇÕES
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}

.sub-title {
  color: var(--purple, #6b4c82);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.section-header h2 {
  font-size: 32px;
  margin-top: 6px;
}

.section-header .lead {
  color: var(--text-muted, #64748b);
  margin-top: 8px;
}

/* ==========================================================================
   7. BENTO GRID DE ESPECIALIDADES
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.flip-card {
  background-color: transparent;
  min-height: 280px;
  height: auto;
  perspective: 1000px;
}

.card-big {
  grid-column: span 2;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: relative;
  width: 100%;
  min-height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.flip-card-front {
  background-color: var(--bg-white, #ffffff);
}

.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #faf8fc;
  transform: rotateY(180deg);
  border-color: rgba(107, 76, 130, 0.2);
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--purple-light, #f4f0f8);
  color: var(--purple, #6b4c82);
  padding: 4px 12px;
  border-radius: 99px;
}

.flip-card-front h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin-bottom: 12px;
}

.flip-card-front p {
  color: var(--text-muted, #64748b);
  font-size: 15px;
  line-height: 1.6;
}

.flip-card-back h3 {
  font-size: 18px;
  color: var(--purple, #6b4c82);
  margin-bottom: 12px;
  font-weight: 700;
}

.flip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flip-list li {
  font-size: 13px;
  color: var(--text-primary, #1e293b);
  line-height: 1.5;
  margin-bottom: 8px;
}

.flip-list li strong {
  color: var(--purple, #6b4c82);
}

.btn-flip-trigger {
  background: none;
  border: none;
  color: var(--purple, #6b4c82);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  font-family: inherit;
}

.flip-back-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 10px;
  width: 100%;
}

.btn-card-action {
  background-color: var(--purple, #6b4c82);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-card-action:hover {
  opacity: 0.9;
}

.btn-flip-close {
  background: none;
  border: none;
  color: var(--text-muted, #64748b);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.btn-flip-close:hover {
  color: var(--text-primary, #1e293b);
}

/* ==========================================================================
   8. SEÇÃO INSTITUCIONAL / NOSSO PROPÓSITO (DARK)
   ========================================================================== */
.section-dark {
  background-color: var(--dark-bg, #1a1823);
  color: #fff;
  padding: 60px 0;
  margin-top: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sub-title-light {
  color: var(--gold, #d4af37);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.about-text h2 {
  font-size: 34px;
  margin-top: 8px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.about-text p {
  color: #a0aec0;
  font-size: 17px;
}

.feats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 16px;
}

.feat-card b {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #fff;
}

.feat-card p {
  font-size: 13px;
  color: #a0aec0;
}

/* ==========================================================================
   9. GRELHA DA EQUIPE / CORPO CLÍNICO
   ========================================================================== */
.team-grid,
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.team-card,
.equipe-card {
  background-color: transparent;
  height: 580px;
  perspective: 1000px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.team-card.is-flipped .team-card-inner {
  transform: rotateY(180deg);
}

.team-front,
.team-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--bg-white, #ffffff);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  box-sizing: border-box;
  overflow: hidden;
}

.team-front {
  z-index: 2;
}

.team-back {
  transform: rotateY(180deg);
  padding: 24px;
  background: linear-gradient(135deg, #faf8fc 0%, #ffffff 100%);
  overflow: hidden;
}

.team-img-wrapper {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--purple-light, #f4f0f7);
}

.team-img-wrapper img,
.team-img-wrapper picture {
  width: 100%;
  height: 100%;
  display: block;
}

.team-img-wrapper img {
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.04);
}

.team-info {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-grow: 1;
}

.team-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple, #6b4c82);
  background-color: rgba(107, 76, 130, 0.1);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.team-info h3 {
  font-size: 18px;
  color: var(--text-primary, #1e293b);
  margin-bottom: 2px;
  font-weight: 700;
}

.team-role {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin-bottom: 2px;
}

.team-crp {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  /* Impede iOS Safari de transformar CRP em link azul */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.btn-team-flip {
  background: none;
  border: none;
  color: var(--purple, #6b4c82);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

/* --- Área interna do verso com rolagem --- */
.team-back-content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  margin-bottom: 12px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.team-back-content::-webkit-scrollbar {
  width: 4px;
}

.team-back-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.team-back-content::-webkit-scrollbar-thumb {
  background: var(--purple, #6b4c82);
  border-radius: 10px;
}

.team-bio {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 14px;
}

.team-courses h4 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #1e293b;
  letter-spacing: 0.03em;
}

.team-courses ul,
.team-back-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.team-courses li,
.team-back-content ul li {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.team-back-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.btn-team-action {
  background-color: var(--purple, #6b4c82);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s;
  display: block;
}

.btn-team-action:hover {
  opacity: 0.9;
}

.btn-team-close {
  background: transparent !important;
  border: none !important;
  color: #718096 !important;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: inherit;
}

.btn-team-close:hover {
  color: var(--text-primary, #1e293b) !important;
}

/* ==========================================================================
   10. ESPAÇO / CLÍNICA & GALERIA LIGHTBOX
   ========================================================================== */
.clinic-flip-card {
  background-color: transparent;
  perspective: 1000px;
  min-height: 480px;
}

.clinic-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.clinic-flip-card.is-flipped .clinic-flip-inner {
  transform: rotateY(180deg);
}

.clinic-card-front,
.clinic-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clinic-card-back {
  transform: rotateY(180deg);
}

/* --- Clínica: wrapper da imagem (CORRIGIDO) --- */
.clinic-img-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  background: var(--purple-light, #f4f0f7);
  position: relative;
  flex-shrink: 0;
}

.clinic-img-wrapper img,
.clinic-img-wrapper picture {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.clinic-img {
  object-fit: cover;
  transition: transform 0.3s ease;
}

.clinic-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.gallery-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border: 1px solid #e5e7eb;
}

.gallery-thumb:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

.gallery-instruction {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
}

.btn-flip {
  background: #6b21a8;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  align-self: flex-start;
  transition: background 0.3s ease;
  font-family: inherit;
}

.btn-flip:hover {
  opacity: 0.9;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ffffff;
  padding: 12px 0;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   11. PASSO A PASSO, LOCALIZAÇÃO, FAQ, CTA E FOOTER
   ========================================================================== */
.section-sand {
  background-color: var(--sand-bg, #fdfbf7);
  padding: 60px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.step-number,
.step-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--purple, #6b4c82);
  margin-bottom: 12px;
  display: block;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

/* Localização */
.location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.location-info h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #2d2342;
}

.location-desc {
  color: #6b7280;
  margin-bottom: 24px;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.location-icon {
  font-size: 1.4rem;
  background: #f4f0f8;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.location-item strong {
  display: block;
  color: #2d2342;
  font-size: 1rem;
}

.location-item p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 2px 0 0 0;
}

.location-phone {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.location-phone:hover {
  color: var(--purple, #6b4c82);
}

.btn-location {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--purple, #6b4c82);
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-location:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.location-map {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* FAQ + Clínica */
.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  min-width: 0;
}

.split-grid > * {
  min-width: 0;      
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--purple, #6b4c82);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--purple, #6b4c82);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted, #64748b);
}

/* CTA Final */
.cta-banner {
  background: linear-gradient(135deg, var(--purple, #6b4c82) 0%, #4a325d 100%);
  color: #fff;
  padding: 60px 40px;
  border-radius: 28px;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.cta-content p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 16px;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 16px 0 40px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.footer-brand b {
  color: var(--text-primary, #1e293b);
  font-size: 15px;
  display: block;
  margin-bottom: 12px;
}

.footer-address {
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-address:last-child {
  margin-bottom: 0;
}

.footer-address-label {
  display: block;
  font-weight: 700;
  color: var(--purple, #6b4c82);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.footer-address p {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.footer-links {
  text-align: center;
}

/* Ícones sociais (WhatsApp + Instagram) */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple-light, #f4f0f7);
  color: var(--purple, #6b4c82);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  background: var(--purple, #6b4c82);
  color: #fff;
  transform: translateY(-3px);
}

/* Link de Política */
.footer-privacy a {
  color: var(--text-muted, #64748b);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-privacy a:hover {
  color: var(--purple, #6b4c82);
  text-decoration: underline;
}

.footer-hours {
  text-align: right;
  padding-right: 100px;   /* espaço pro WhatsApp não cobrir */
}

.copy {
  margin-top: 4px;
  font-size: 12px;
}

/* ==========================================================================
   12. BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9997;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* ==========================================================================
   13. BOTÃO VOLTAR AO TOPO
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple, #6b4c82);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9997;
  box-shadow: 0 4px 14px rgba(107, 76, 130, 0.3);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: #5d4172;
}

/* ==========================================================================
   14. ANIMAÇÕES SCROLL REVEAL
   ========================================================================== */
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================================
   15. MODAL BOTTOM-SHEET DA EQUIPE (mobile)
   ========================================================================== */
.team-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-modal.is-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
}

.team-modal.is-closing {
  opacity: 0;
}

.team-modal.is-closing .team-modal-content {
  transform: translateY(100%);
}

.team-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 90vh;
  max-height: 90vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.team-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.2s;
}

.team-modal-close:hover {
  background: #e2e8f0;
}

.team-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* o scroll fica no conteúdo, não no body inteiro */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 28px 24px 0;
  scrollbar-width: thin;
  scrollbar-color: #6b4c82 #f1f1f1;
}

/* Conteúdo rola; footer fica fixo embaixo no mobile */
.team-modal-body .team-back-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
  margin-bottom: 0;
}

.team-modal-body .team-back-footer {
  flex-shrink: 0;
  margin-top: 0;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.04);
}

.team-modal-body .team-back-content::-webkit-scrollbar {
  width: 4px;
}
.team-modal-body .team-back-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.team-modal-body .team-back-content::-webkit-scrollbar-thumb {
  background: #6b4c82;
  border-radius: 10px;
}

body.team-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
}

/* ==========================================================================
   16. REFORÇO iOS — impede CRP virar link azul
   ========================================================================== */
.team-info a,
.team-crp a,
.team-role a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
  cursor: default;
}

/* ==========================================================================
   17. MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */

/* Tablet (até 992px) */
@media (max-width: 992px) {
  .team-grid,
  .equipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Menor (até 900px) */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .split-grid,
  .bento-grid,
  .steps-grid,
  .location-container {
    grid-template-columns: 1fr;
  }

  .card-big {
    grid-column: span 1;
  }

  .nav {
    display: none;
  }

  /* Localização compacta e alinhada */
  .location-container {
    padding: 28px 20px;
    gap: 28px;
    border-radius: 20px;
  }

  .location-map {
    height: 300px;
    border-radius: 16px;
  }

  .location-info h2 {
    font-size: 1.75rem;
  }

  .location-item {
    gap: 12px;
  }

  .location-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .btn-location {
    width: 100%;
    text-align: center;
  }

  /* Footer empilhado */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-hours {
    text-align: center;
    padding-right: 0;
  }

  .footer {
    padding: 32px 0 80px;  
  }

   .section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-sand {
    padding: 40px 0;
  }

  .section-dark {
    padding: 40px 0;
  }
}

/* Mobile (até 768px) — Modal bottom-sheet para equipe */
@media (max-width: 768px) {
  /* Carrossel horizontal do time */
  .team-grid,
  .equipe-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 10px 16px 20px 16px !important;
    margin: 0 -16px !important;
    width: calc(100% + 32px) !important;
    /* Esconde scrollbar horizontal */
    scrollbar-width: none;
  }

  .team-grid::-webkit-scrollbar,
  .equipe-grid::-webkit-scrollbar {
    display: none;
  }

  /* Card do time: SEM 3D, só a frente visível */
  .team-card,
  .equipe-card {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    min-width: 85% !important;
    scroll-snap-align: center;
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    perspective: none !important;
    -webkit-perspective: none !important;
  }

  .team-card-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    -webkit-transform: none !important;
    transform-style: flat !important;
    -webkit-transform-style: flat !important;
  }

  .team-front {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    -webkit-transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .team-back {
    display: none !important;
  }

  /* Especialidades (flip-card) mantém 3D */
  .flip-card {
    perspective: 1000px;
  }

  /* Clínica (galeria) mantém 3D */
  .clinic-flip-card {
    perspective: 1000px;
  }

  /* Botões flutuantes menores */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
  }
}

/* Smartphones (até 640px) */
@media (max-width: 640px) {
  .header-inner {
    padding: 10px 16px;
  }

  .logo img {
    height: 52px;
  }

  .header .btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero {
    padding: 30px 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
    white-space: normal;
    word-break: break-word;
  }

  .flip-card {
    min-height: 320px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 24px 20px;
  }

  .flip-back-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn-card-action,
  .btn-flip-close {
    width: 100%;
    text-align: center;
  }

  .feats-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-content h2 {
    font-size: 24px;
  }

  /* Ajuste do scroll-margin-top para header menor */
  section[id],
  div[id],
  header[id] {
    scroll-margin-top: 75px;
  }
}

/* ==========================================================================
   18. PREFERÊNCIAS DE USUÁRIO — REDUZIR MOVIMENTO
   ========================================================================== */
@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;
  }
}

/* ==========================================================================
   19. DESKTOP — esconde o modal da equipe (usa o flip normal)
   ========================================================================== */
@media (min-width: 769px) {
  .team-modal {
    display: none !important;
  }
}

/* ==========================================================================
   20. PÁGINA LEGAL (Política de Privacidade)
   ========================================================================== */
.page-legal {
  background: var(--bg-page, #faf9fb);
}

.legal-page {
  padding: 60px 0 80px;
}

.legal-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 8px;
  color: var(--text-primary, #1e293b);
  line-height: 1.2;
}

.legal-updated {
  color: var(--text-muted, #64748b);
  font-size: 14px;
  margin-top: 12px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white, #ffffff);
  border-radius: 20px;
  padding: 48px 40px;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  color: var(--text-primary, #2B2F33);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--purple, #6b4c82);
  line-height: 1.3;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary, #1e293b);
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

.legal-content ul li {
  margin-bottom: 10px;
  color: #475569;
}

.legal-content strong {
  color: var(--text-primary, #1e293b);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border, #e2e8f0);
  margin: 32px 0;
}

.legal-content a {
  color: var(--purple, #6b4c82);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-thickness 0.2s;
}

.legal-content a:hover {
  color: #5d4172;
  text-decoration-thickness: 2px;
}

.legal-actions {
  text-align: center;
  margin-top: 48px;
}

/* Mobile */
@media (max-width: 640px) {
  .legal-content {
    padding: 32px 24px;
    font-size: 14px;
    border-radius: 16px;
  }

  .legal-content h2 {
    font-size: 19px;
  }

  .legal-content h3 {
    font-size: 16px;
  }

  .legal-header h1 {
    font-size: 26px;
  }
}

/* ==========================================================================
   21. ABAS DE UNIDADES (Nosso Espaço + Onde Estamos)
   ========================================================================== */

/* --- Abas genéricas (reutilizável) --- */
.clinic-tabs,
.location-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--purple-light, #f4f0f7);
  border-radius: 99px;
  margin: 16px 0 24px;
  flex-wrap: wrap;
  max-width: fit-content; 
  min-width: 100;
}

.clinic-tab,
.location-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  background: transparent;
  border-radius: 99px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.clinic-tab:hover,
.location-tab:hover {
  color: var(--purple, #6b4c82);
}

.clinic-tab.is-active,
.location-tab.is-active {
  background: var(--purple, #6b4c82);
  color: #fff;
  box-shadow: 0 4px 12px rgba(107, 76, 130, 0.25);
}

/* --- Card "Nosso Espaço" (CORRIGIDO - sem min-height) --- */
.clinic-tabs-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden; 
  min-width: 0;  
}

.clinic-panel {
  display: none;
}

.clinic-panel.is-active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

/* Desktop: vídeo/imagem ao lado do texto (ambas as unidades) */
@media (min-width: 769px) {
  .clinic-panel.is-active {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0 20px;
    align-items: start;
  }

  /* Vídeo E imagem ocupam a coluna esquerda */
  .clinic-video-wrapper,
  .clinic-img-wrapper {
    grid-row: 1 / -1;
    margin: 0;
    align-self: start;
    max-height: 420px;
    height: auto;
  }

  /* Só o vídeo tem aspect-ratio fixo (vertical) */
  .clinic-video-wrapper {
    aspect-ratio: 9 / 16;
  }

  /* Imagem mantém formato natural */
  .clinic-img-wrapper {
    aspect-ratio: auto;
  }

  .clinic-panel-title {
    margin-top: 0;
  }

  .btn-flip {
    align-self: start;
  }
}

.clinic-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple, #6b4c82);
  margin-bottom: 8px;
  margin-top: 16px;
}

/* --- Seção Onde Estamos com abas --- */
.location-panel {
  display: none;
}

.location-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.location-map {
  position: relative;
}

.location-map-panel {
  display: none;
  width: 100%;
  height: 100%;
}

.location-map-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* --- Animação de entrada dos painéis --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   22. MODAL DE GALERIA POR UNIDADE
   ========================================================================== */
.unit-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(30, 27, 36, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.unit-gallery-content {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.unit-gallery-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.2s;
}

.unit-gallery-close:hover {
  background: #e2e8f0;
}

.unit-gallery-content h3 {
  font-size: 20px;
  color: var(--text-primary, #1e293b);
  margin: 6px 0 6px;
}

.unit-gallery-content .gallery-instruction {
  margin-bottom: 16px;
}

.unit-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.unit-gallery-grid .gallery-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border: 1px solid #e5e7eb;
}

.unit-gallery-grid .gallery-thumb:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

body.modal-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 640px) {
  .unit-gallery-content {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .unit-gallery-grid {
    gap: 8px;
  }

  .unit-gallery-grid .gallery-thumb {
    height: 100px;
  }

  .clinic-tabs,
  .location-tabs {
    width: 100%;
    justify-content: center;
  }

  .clinic-tab,
  .location-tab {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   23. PAINEL DO MAPA OCUPA A ALTURA TODA
   ========================================================================== */
.location-map-panel iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}


/* ==========================================================================
   24. VÍDEO DA UNIDADE (Painel Abreu e Lima)
   ========================================================================== */
.clinic-video-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0;
  background: var(--purple-light, #f4f0f7);
  position: relative;
  aspect-ratio: 16 / 9;    /* 🔑 proporção padrão de vídeo */
}

.clinic-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Mobile: se o vídeo for vertical, adapta */
@media (max-width: 640px) {
  .clinic-video-wrapper {
    aspect-ratio: 9 / 16;    /* 🔑 vertical no mobile se for o caso */
  }
}


/* ==========================================================================
   25. LINK DO LINKEDIN NO CARD DA EQUIPE
   ========================================================================== */
.btn-team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: #0a66c2;
  border: 1.5px solid #0a66c2;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-team-linkedin:hover {
  background-color: #0a66c2;
  color: #fff;
}

.btn-team-linkedin svg {
  flex-shrink: 0;
}

/* ==========================================================================
   26. ABAS DA EQUIPE (Abreu e Lima / Recife)
   ========================================================================== */
.team-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--purple-light, #f4f0f7);
  border-radius: 99px;
  margin: 0 auto 32px;
  flex-wrap: wrap;
  max-width: fit-content;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.team-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  background: transparent;
  border-radius: 99px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.team-tab:hover {
  color: var(--purple, #6b4c82);
}

.team-tab.is-active {
  background: var(--purple, #6b4c82);
  color: #fff;
  box-shadow: 0 4px 12px rgba(107, 76, 130, 0.25);
}

.team-panel {
  display: none;
}

.team-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 640px) {
  .team-tabs {
    width: 100%;
    justify-content: center;
    left: 0;
    transform: none;
  }

  .team-tab {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   REVISÃO NOV/2026 — posicionamento em neurodesenvolvimento
   (usa só variáveis do theme.css)
   ========================================================================== */

/* Hero: provas de confiança + selo da profissional */
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 12px;
}
.hero-text p strong { color: var(--text-primary); font-weight: 600; }
.hero-card .ph-card { position: relative; }
.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.hero-badge b { font-size: 14px; color: var(--text-primary); }
.hero-badge span { font-size: 12px; color: var(--text-muted); }

/* Quando procurar */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sign-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.sign-card:hover,
.sign-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple);
}
.sign-icon { font-size: 26px; line-height: 1; }
.sign-card h3 { font-size: 17px; margin: 4px 0 0; }
.sign-card p { font-size: 14px; color: var(--text-muted); margin: 0; flex: 1; }
.sign-area {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
}
.signs-note {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--purple-light);
  border-radius: var(--radius-md);
}
.signs-note strong { color: var(--purple-dark); }

/* Tile "Não sabe por onde começar?" nas especialidades */
.spec-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-purple);
  transition: transform var(--transition-base);
}
.spec-cta:hover { transform: translateY(-3px); }
.spec-cta h3 { font-size: 24px; line-height: 1.25; margin: 0; max-width: 480px; color: #fff; }
.spec-cta-btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
}

/* CTA final */
.cta-meta { margin-top: 18px; font-size: 14px; opacity: 0.85; }

@media (max-width: 1024px) {
  .signs-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-cta { min-height: 0; }
}
@media (max-width: 640px) {
  .signs-grid { grid-template-columns: 1fr; gap: 12px; }
  .sign-card { padding: 18px; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .spec-cta { padding: 24px 20px; }
  .spec-cta h3 { font-size: 20px; }
  .spec-cta-btn { align-self: stretch; text-align: center; }
}
