/* ==========================================================================
   EMS - Equipe Médica de Saúde
   Design System & Estilos Globais (Escala 125% Nativa - Padrão Desktop & Mobile)
   ========================================================================== */

:root {
  /* Cores da Identidade Visual da EMS */
  --color-ems-blue: #004B87;          /* Azul Primário EMS */
  --color-ems-dark: #002B54;          /* Azul Escuro */
  --color-ems-cyan: #00C2D6;          /* Ciano Vibrante EMS */
  --color-ems-cyan-hover: #00A6B8;
  --color-ems-cyan-light: #E6F8FA;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BA56;

  /* Neutros & Superfícies */
  --color-bg-body: #FFFFFF;
  --color-bg-surface: #FFFFFF;
  --color-bg-card: #F8FAFC;           /* Superfície de cards */
  --color-border: #E2E8F0;
  --color-border-hover: #00C2D6;

  /* Tipografia */
  --color-text-main: #0F2D4A;
  --color-text-muted: #5A7184;
  --color-text-light: #8DA2B5;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras & Formas */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 22px rgba(0, 75, 135, 0.09);
  --shadow-lg: 0 16px 36px rgba(0, 75, 135, 0.13);
  --shadow-xl: 0 24px 50px rgba(0, 75, 135, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px; /* Proporção 125% nativa do layout */
}

/* ==========================================================================
   Seleção de Texto com a Identidade Visual EMS
   ========================================================================== */
::selection {
  background: rgba(0, 194, 214, 0.28);
  color: #002B54;
}

::-moz-selection {
  background: rgba(0, 194, 214, 0.28);
  color: #002B54;
}

/* ==========================================================================
   Barra de Rolagem Customizada (Ultra-Clean & Moderna)
   ========================================================================== */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #004B87;
  border-radius: 9999px;
  border: 2px solid #F1F5F9;
  transition: background-color 200ms ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #00C2D6;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
}

/* Largura Padrão Boxed */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navegação (Efeito Vidro / Glassmorphism)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  transition: box-shadow 300ms ease, background 300ms ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(0, 75, 135, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  transition: transform 250ms ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-ems-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--color-ems-cyan);
  border-radius: var(--radius-full);
  transition: width 250ms ease;
}

.nav-link:hover {
  color: var(--color-ems-cyan);
}

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

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-ems-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary::after,
.btn-cyan::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: btnShimmer 5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes btnShimmer {
  0%, 75% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.btn-primary:hover {
  background-color: var(--color-ems-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 75, 135, 0.25);
}

.btn-cyan {
  background-color: var(--color-ems-cyan);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(0, 194, 214, 0.3);
}

.btn-cyan:hover {
  background-color: var(--color-ems-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 194, 214, 0.45);
}

.btn-outline-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 14px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-glass svg {
  transition: transform 250ms ease;
}

.btn-outline-glass:hover svg {
  transform: translateX(4px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 620px;
  background-color: #072344;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 85px 0;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top; /* Alinha perfeitamente ao topo para mostrar a cabeça e rosto de todos os médicos */
  display: block;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(7, 35, 68, 0.45) 0%, transparent 55%);
}

.hero-inner-container {
  position: relative;
  z-index: 2;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #22C55E;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: liveDotPulse 2s infinite;
}

@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #E2E8F0;
  line-height: 1.55;
  margin-bottom: 34px;
  max-width: 540px;
}

/* ==========================================================================
   Seção "Sobre a EMS" (3 Cards com Linha Iluminada e Hover)
   ========================================================================== */
.about-section {
  padding: 85px 0 75px;
  background-color: #FFFFFF;
}

.about-header-flex {
  margin-bottom: 44px;
}

.about-header-text {
  max-width: 900px;
}

.about-tag-small {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-ems-blue);
  margin-bottom: 8px;
  display: block;
}

.about-main-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.about-mission-p {
  font-size: 1.1rem;
  color: var(--color-ems-blue);
  line-height: 1.6;
  font-weight: 500;
}

.about-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.about-card-box {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.about-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #00C2D6, #004B87);
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 75, 135, 0.12);
  border-color: rgba(0, 194, 214, 0.4);
}

.about-card-box:hover::before {
  width: 100%;
}

.about-card-box.featured {
  background-color: var(--color-ems-blue);
  color: #FFFFFF;
  border-color: var(--color-ems-blue);
  box-shadow: 0 12px 28px rgba(0, 75, 135, 0.2);
}

.about-card-box.featured::before {
  background: linear-gradient(90deg, #67E8F9, #FFFFFF);
}

.about-card-box.featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 75, 135, 0.32);
}

.about-card-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  margin-bottom: 14px;
  transition: transform 250ms ease, color 250ms ease;
}

.about-card-box:hover .about-card-num {
  transform: scale(1.05);
  transform-origin: left center;
}

.about-card-box.featured .about-card-num {
  color: #67E8F9;
}

.about-card-text {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.about-card-box.featured .about-card-text {
  color: #E0F2FE;
}

.about-card-link-btn {
  background: none;
  border: none;
  color: var(--color-ems-blue);
  font-weight: 700;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  align-self: flex-end;
  padding: 2px 0;
  transition: color 200ms ease;
}

.about-card-link-btn svg {
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-card-box:hover .about-card-link-btn svg,
.about-card-link-btn:hover svg {
  transform: translateX(5px);
}

.about-card-link-btn:hover {
  color: var(--color-ems-cyan);
}

.about-card-box.featured .about-card-link-btn {
  color: #67E8F9;
}

.about-card-box.featured .about-card-link-btn:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Seção "A EMS é para quem?" (ZERO BORDA AZUL NA ESQUERDA - FLUSH TOTAL)
   ========================================================================== */
.about-target-section {
  background: #004B87;
  color: #fff;
  padding: 60px 0 130px;
  margin-top: 150px;
  position: relative;
  overflow: visible;
  width: 100%;
}

.about-target-wrapper {
  display: grid;
  grid-template-columns: minmax(460px, 640px) 1fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  padding-right: clamp(24px, 5vw, 100px);
}

.about-target-img-wrap {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-top: -210px;
  margin-bottom: -130px;
  margin-left: 0;
  padding-left: 0;
}

.about-target-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: 0;
}

.about-target-content {
  max-width: 680px;
}

.about-target-title {
  font-size: 3rem;
  font-weight: 800;
  color: #00C2D6;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.about-target-subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 20px;
}

.about-target-subtitle span {
  color: #67E8F9;
  display: block;
}

.about-target-desc {
  font-size: 1rem;
  color: #E2E8F0;
  line-height: 1.7;
  max-width: 560px;
}

/* ==========================================================================
   Card Flutuante de Contadores (Escala 125%)
   ========================================================================== */
.metrics-floating-card {
  max-width: 1180px;
  margin: -60px auto 0;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 38px 44px 50px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 20;
  border: 1px solid var(--color-border);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  margin-bottom: 12px;
}

.metric-stat-num {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--color-ems-cyan);
  line-height: 1;
  display: block;
  min-height: 46px;
}

.metric-stat-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--color-ems-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
  display: block;
}

.metrics-btn-wrap {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
}

.btn-metrics {
  background-color: var(--color-ems-blue);
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 75, 135, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.btn-metrics:hover {
  background-color: var(--color-ems-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 75, 135, 0.38);
}

.btn-metrics svg {
  transition: transform 250ms ease;
}

.btn-metrics:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Seção de Parceiros Institucionais (Logos Interativos)
   ========================================================================== */
.partners-section {
  background-color: #FFFFFF;
  padding: 95px 0 75px;
  border-bottom: 1px solid var(--color-border);
}

.partners-title {
  text-align: center;
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  margin-bottom: 36px;
}

.partners-category-title {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin: 24px 0 12px;
  display: block;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.partner-card-logo {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), filter 250ms ease, opacity 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
  filter: grayscale(100%);
  opacity: 0.75;
}

.partner-card-logo img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 250ms ease;
}

.partner-card-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--color-ems-cyan);
  background: #fff;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 75, 135, 0.12);
}

.partner-logo-fallback {
  font-weight: 800;
  color: var(--color-ems-blue);
  font-size: 1rem;
}

/* ==========================================================================
   Seção Nossos Serviços (6 Cards com Top Accent Iluminado)
   ========================================================================== */
.services-section {
  background-color: #F8FAFC;
  padding: 90px 0;
  border-top: 1px solid var(--color-border);
}

.section-title-main {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  margin-bottom: 46px;
}

.services-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card-item {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.service-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #00C2D6, #004B87);
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-item:hover {
  border-color: rgba(0, 194, 214, 0.5);
  box-shadow: 0 16px 36px rgba(0, 75, 135, 0.12);
  transform: translateY(-6px);
}

.service-card-item:hover::before {
  width: 100%;
}

.service-num-badge {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  margin-bottom: 12px;
  display: block;
  transition: color 250ms ease, transform 250ms ease;
}

.service-card-item:hover .service-num-badge {
  color: var(--color-ems-cyan);
  transform: scale(1.05);
  transform-origin: left center;
}

.service-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.4;
  margin-bottom: 22px;
}

.service-card-link-btn {
  background: none;
  border: none;
  color: var(--color-ems-blue);
  font-weight: 700;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 200ms ease;
}

.service-card-link-btn svg {
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-item:hover .service-card-link-btn svg,
.service-card-link-btn:hover svg {
  transform: translateX(5px);
}

.service-card-link-btn:hover {
  color: var(--color-ems-cyan);
}

/* ==========================================================================
   Seção de Metodologia & Workflow (4 Etapas de Implantação)
   ========================================================================== */
.workflow-section {
  background: #F8FAFC;
  padding: 95px 0;
  border-top: 1px solid var(--color-border);
}

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

.workflow-step-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden; /* Elimina 100% qualquer saída da linha azul fora dos cantos arredondados */
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms ease, border-color 250ms ease;
  display: flex;
  flex-direction: column;
}

.workflow-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #00C2D6, #004B87);
  transition: width 350ms ease;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.workflow-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 75, 135, 0.12);
  border-color: rgba(0, 194, 214, 0.5);
}

.workflow-step-card:hover::before {
  width: 100%;
}

.workflow-step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(0, 75, 135, 0.15);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 250ms ease;
}

.workflow-step-card:hover .workflow-step-num {
  color: var(--color-ems-cyan);
}

.workflow-step-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.workflow-step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  margin-bottom: 10px;
  line-height: 1.35;
}

.workflow-step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .workflow-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Seção Onde Atuamos (MAPA PERFEITO COM 4 ALFINETES & TOOLTIPS INTERATIVOS)
   ========================================================================== */
.locations-section {
  background: #FFFFFF;
  padding: 90px 0;
  border-top: 1px solid var(--color-border);
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.locations-map-wrap {
  text-align: center;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.locations-map-interactive-box {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.locations-map-img {
  max-height: 480px;
  width: auto;
  margin: 0 auto;
  background: transparent;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(0, 75, 135, 0.1));
  transition: filter 300ms ease;
}

.locations-map-interactive-box:hover .locations-map-img {
  filter: drop-shadow(0 18px 40px rgba(0, 194, 214, 0.22)) brightness(1.02);
}

/* Containers dos Alfinetes & Tooltips */
.map-pin-container {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.map-tooltip-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(0, 43, 84, 0.95);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 194, 214, 0.6);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1), visibility 200ms ease;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.map-tooltip-bubble strong {
  display: block;
  color: #67E8F9;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.map-tooltip-bubble span {
  color: #E2E8F0;
  font-size: 0.725rem;
}

.map-pin-container:hover .map-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* Hotspots de Clique Transparentes */
.map-hotspot-area {
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  outline: none;
}

.locations-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  margin-bottom: 8px;
}

.locations-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.location-accordion-item {
  margin-bottom: 16px;
}

.location-btn {
  width: 100%;
  background: var(--color-ems-blue);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  transition: background-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.location-btn:hover {
  background: var(--color-ems-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 43, 84, 0.15);
}

.location-btn.active {
  background: var(--color-ems-dark);
}

.location-details {
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  display: none;
}

.location-details.open {
  display: block;
}

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

.hospital-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #E2E8F0;
  color: var(--color-text-main);
  font-weight: 600;
  transition: transform 150ms ease, color 150ms ease;
}

.hospital-list li:hover {
  transform: translateX(4px);
  color: var(--color-ems-blue);
}

.hospital-list li:last-child {
  border-bottom: none;
}

.hospital-badge-icon {
  color: var(--color-ems-cyan);
  font-size: 1rem;
}

/* ==========================================================================
   Seção Educação Continuada
   ========================================================================== */
.education-section {
  background: #00A3FF;
  color: #FFFFFF;
  padding: 90px 0;
}

.education-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.education-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  max-height: 420px;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
}

.education-img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
}

.education-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.education-subtitle {
  font-size: 1.45rem;
  font-weight: 700;
  color: #E0F2FE;
  margin-bottom: 20px;
}

.education-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #FFFFFF;
  margin-bottom: 28px;
}

/* ==========================================================================
   Seção Liderança & Governança (Cards Interativos)
   ========================================================================== */
.leadership-section {
  background-color: #FFFFFF;
  padding: 90px 0;
  border-top: 1px solid var(--color-border);
}

.leadership-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 1040px;
  margin: 0 auto;
}

.leader-box-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.leader-box-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #00C2D6, #004B87);
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.leader-box-card:hover {
  border-color: var(--color-ems-cyan);
  box-shadow: 0 18px 42px rgba(0, 75, 135, 0.15);
  transform: translateY(-6px);
}

.leader-box-card:hover::before {
  width: 100%;
}

.leader-avatar-circle {
  width: 108px;
  height: 108px;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(0, 75, 135, 0.14);
  border: 3.5px solid #FFFFFF;
  outline: 2px solid rgba(0, 194, 214, 0.4);
  overflow: hidden;
  position: relative;
  transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 300ms ease, outline-color 300ms ease;
}

.leader-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.leader-box-card:hover .leader-avatar-circle {
  transform: scale(1.08);
  outline-color: var(--color-ems-cyan);
  box-shadow: 0 0 28px rgba(0, 194, 214, 0.45);
}

.leader-box-card:hover .leader-avatar-img {
  transform: scale(1.06);
}

.leader-title-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  margin-bottom: 4px;
}

.leader-role-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ems-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  display: block;
}

.leader-bio-p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Seção de FAQ (Perguntas Frequentes em Acordeon)
   ========================================================================== */
.faq-section {
  background-color: #F8FAFC;
  padding: 90px 0;
  border-top: 1px solid var(--color-border);
}

.faq-accordion-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.faq-item:hover {
  border-color: rgba(0, 194, 214, 0.4);
  box-shadow: 0 4px 14px rgba(0, 75, 135, 0.06);
}

.faq-item.active {
  border-color: var(--color-ems-cyan);
  box-shadow: 0 8px 24px rgba(0, 75, 135, 0.08);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ems-blue);
  gap: 16px;
  transition: color 180ms ease;
}

.faq-question-btn:hover {
  color: var(--color-ems-cyan);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-ems-cyan);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-ems-dark);
}

.faq-answer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.16, 1, 0.3, 1), padding 350ms ease;
  background: #FFFFFF;
}

.faq-item.active .faq-answer-content {
  max-height: 280px;
  padding: 0 24px 22px;
}

.faq-answer-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
  border-top: 1px dashed var(--color-border);
  padding-top: 14px;
}

/* ==========================================================================
   Contato & Rodapé
   ========================================================================== */
.contact-section {
  background: #FFFFFF;
  padding: 90px 0;
  border-top: 1px solid var(--color-border);
}

.contact-card-box {
  max-width: 680px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 300ms ease, border-color 300ms ease;
}

.contact-card-box:hover {
  border-color: rgba(0, 194, 214, 0.4);
  box-shadow: var(--shadow-md);
}

.form-field-group {
  margin-bottom: 20px;
}

.form-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ems-blue);
  margin-bottom: 6px;
}

.form-input-text {
  width: 100%;
  padding: 13px 18px;
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-input-text:focus {
  outline: none;
  border-color: var(--color-ems-cyan);
  box-shadow: 0 0 0 3.5px rgba(0, 194, 214, 0.2);
}

/* ==========================================================================
   Divisor em Onda Orgânica para o Rodapé (SVG Wave)
   ========================================================================== */
.footer-wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #FFFFFF;
  margin-bottom: -1px;
}

.footer-wave-divider svg {
  position: relative;
  display: block;
  width: 100%;
  height: 52px;
}

/* ==========================================================================
   Rodapé Institucional (Design Idêntico ao Modelo de Referência)
   ========================================================================== */
.site-footer {
  background-color: #004B87;
  color: #FFFFFF;
  padding: 60px 0 110px; /* Espaço extra na base para desobstrução total */
  font-size: 0.95rem;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.4fr;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Coluna 1: Logo & Slogan */
.footer-brand-col .footer-logo-img {
  height: 60px;
  margin-bottom: 20px;
  display: block;
}

.footer-slogan {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #FFFFFF;
  font-weight: 400;
}

.footer-slogan strong {
  font-weight: 800;
  display: block;
}

/* Coluna 2: Menu */
.footer-heading {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

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

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 180ms ease, padding-left 180ms ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--color-ems-cyan);
  padding-left: 4px;
}

.footer-nav-list .footer-link-highlight {
  color: #00C2D6;
  font-weight: 700;
}

/* Coluna 3: Escritório & Mapa */
.footer-map-col .footer-map-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Linha Inferior (3 Colunas com recuo à direita para o WhatsApp) */
.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  padding-top: 35px;
  padding-right: 95px; /* Desobstrui totalmente o botão do WhatsApp */
}

.footer-address-block p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #E2E8F0;
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-contact-line:hover {
  color: var(--color-ems-cyan);
  transform: translateX(3px);
}

.footer-social-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.footer-social-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border: 2px solid #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-btn:hover {
  background: #FFFFFF;
  color: #004B87;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Linha de Copyright & Créditos */
.footer-credits-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 35px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94A3B8;
  padding-right: 95px; /* Mantém o recuo do botão do WhatsApp */
}

.footer-copy-text {
  margin: 0;
  color: #CBD5E1;
}

.footer-dev-text {
  margin: 0;
  color: #CBD5E1;
}

.footer-dev-text strong {
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 992px) {
  .site-footer {
    padding-bottom: 120px;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
    padding-right: 0;
  }

  .footer-social-block {
    justify-content: flex-start;
  }

  .footer-credits-bar {
    flex-direction: column;
    gap: 10px;
    text-align: left;
    align-items: flex-start;
    padding-right: 0;
  }
}

/* ==========================================================================
   Modais Interativos (Pop-ups)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 43, 84, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 38px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: #F1F5F9;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.15rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-ems-blue);
  color: #fff;
}

/* Esfera Azul com Número Branco dentro do Modal */
.modal-num-circle {
  width: 42px;
  height: 42px;
  background-color: var(--color-ems-blue);
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 75, 135, 0.22);
}

.modal-badge {
  display: inline-block;
  background: var(--color-ems-cyan-light);
  color: var(--color-ems-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-ems-blue);
  margin-bottom: 18px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-bullets {
  list-style: none;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 26px;
  border: 1px solid var(--color-border);
}

.modal-bullets li {
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal-bullets li:last-child {
  margin-bottom: 0;
}

.modal-bullets svg {
  width: 18px;
  height: 18px;
  color: var(--color-ems-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-whatsapp-action {
  width: 100%;
  background: var(--color-whatsapp);
  color: #fff;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
  transition: transform 200ms ease, background-color 200ms ease;
}

.btn-whatsapp-action:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Botão Flutuante do WhatsApp
   ========================================================================== */
/* ==========================================================================
   Barra de Progresso de Leitura no Topo (Scroll Progress)
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #00C2D6, #004B87, #67E8F9);
  width: 0%;
  z-index: 1001;
  transition: width 60ms linear;
  box-shadow: 0 0 10px rgba(0, 194, 214, 0.7);
}

/* ==========================================================================
   Efeito de Brilho Dinâmico nos Contadores (+5.000, +1.450, etc.)
   ========================================================================== */
.metric-stat-num {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--color-ems-cyan);
  line-height: 1;
  display: block;
  min-height: 46px;
  transition: transform 300ms ease, text-shadow 300ms ease, color 300ms ease;
}

.metric-stat-num.counted {
  animation: statGlowPulse 1.2s ease-out;
}

@keyframes statGlowPulse {
  0% { transform: scale(1); text-shadow: none; }
  50% { transform: scale(1.08); text-shadow: 0 0 22px rgba(0, 194, 214, 0.85); color: #00E5FF; }
  100% { transform: scale(1); text-shadow: 0 0 8px rgba(0, 194, 214, 0.2); }
}

/* ==========================================================================
   Botão Flutuante Voltar ao Topo (Back to Top)
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 50px;
  height: 50px;
  background: #FFFFFF;
  color: var(--color-ems-blue);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 300ms ease, visibility 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--color-ems-blue);
  color: #FFFFFF;
  border-color: var(--color-ems-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Botão Flutuante do WhatsApp & Smart Bubble
   ========================================================================== */
.whatsapp-float-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-smart-bubble {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 280px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 28px 14px 16px;
  box-shadow: 0 12px 32px rgba(0, 43, 84, 0.18);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-main);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: opacity 350ms ease, visibility 350ms ease, transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 998;
  pointer-events: none;
}

.whatsapp-smart-bubble.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-smart-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 24px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
}

.bubble-close-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}

.bubble-close-btn:hover {
  color: var(--color-text-main);
}

.whatsapp-float-tooltip {
  background: #fff;
  color: var(--color-text-main);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-float-tooltip {
    display: block;
  }
}

.whatsapp-float-btn {
  width: 62px;
  height: 62px;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.42);
  transition: transform 200ms ease;
  position: relative;
  animation: pulseGlow 2.5s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  background: var(--color-whatsapp-hover);
}

.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Animações Suaves de Scroll (Scroll Reveal)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 750ms cubic-bezier(0.16, 1, 0.3, 1), transform 750ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 60ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 260ms; }
.stagger-4 { transition-delay: 360ms; }
.stagger-5 { transition-delay: 460ms; }
.stagger-6 { transition-delay: 560ms; }

/* ==========================================================================
   Responsividade Cirúrgica (Mobile & Tablet - CABEÇA INTEIRA E ZERO CORTE)
   ========================================================================== */
@media (max-width: 992px) {
  html {
    font-size: 16px;
  }

  /* Ativação Visual Automática dos Cards no Mobile ao Rolar a Tela */
  .about-card-box.revealed,
  .service-card-item.revealed,
  .workflow-step-card.revealed,
  .leader-box-card.revealed {
    border-color: rgba(0, 194, 214, 0.45);
    box-shadow: 0 10px 24px rgba(0, 75, 135, 0.1);
  }

  .about-card-box.revealed::before,
  .service-card-item.revealed::before,
  .workflow-step-card.revealed::before,
  .leader-box-card.revealed::before {
    width: 100%;
    transition: width 650ms cubic-bezier(0.16, 1, 0.3, 1) 150ms;
  }

  .service-card-item.revealed .service-num-badge,
  .workflow-step-card.revealed .workflow-step-num {
    color: var(--color-ems-cyan);
    transform: scale(1.05);
    transform-origin: left center;
  }

  .about-card-box.revealed .about-card-link-btn svg,
  .service-card-item.revealed .service-card-link-btn svg {
    transform: translateX(4px);
  }

  .partner-card-logo.revealed {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--color-ems-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 75, 135, 0.08);
  }

  .leader-box-card.revealed .leader-avatar-circle {
    box-shadow: 0 0 20px rgba(0, 194, 214, 0.45);
    transform: scale(1.06);
  }

  .about-cards-3, .services-grid-6 {
    grid-template-columns: 1fr;
  }

  .about-target-section {
    margin-top: 100px;
    padding-top: 30px;
    padding-bottom: 90px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  .about-target-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
  }

  .about-target-img-wrap {
    margin-top: -140px;
    margin-bottom: 0;
    justify-content: flex-start !important;
    width: 100%;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .about-target-img {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 440px !important;
    display: block;
  }

  .about-target-title, .about-target-subtitle {
    padding: 0 20px;
  }

  .about-target-desc {
    margin: 0 auto;
    padding: 0 20px;
  }

  .education-grid, .locations-grid, .leadership-grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .hero-section {
    min-height: 540px;
    padding: 50px 0 50px;
  }

  .hero-bg-photo {
    object-position: 70% 8%; /* Desce o recorte para revelar perfeitamente os rostos e gorros dos médicos */
    transform: scale(1.04);
  }

  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(7, 35, 68, 0.78) 0%, rgba(7, 35, 68, 0.55) 38%, rgba(7, 35, 68, 0.88) 100%);
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }

  .hero-live-badge {
    font-size: 0.68rem;
    padding: 5px 12px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .about-main-title {
    font-size: 2.1rem;
  }

  .about-target-title {
    font-size: 2.25rem;
  }

  .about-target-subtitle {
    font-size: 1.4rem;
  }

  .metrics-floating-card {
    margin: -35px 16px 0;
    padding: 30px 22px 26px;
    border-radius: var(--radius-md);
  }

  .metrics-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 0;
  }

  .metric-stat-num {
    font-size: 2.45rem;
    min-height: auto;
  }

  .metric-stat-label {
    margin-top: 4px;
    font-size: 0.775rem;
  }

  .metrics-btn-wrap {
    position: static;
    transform: none;
    margin-top: 24px;
    width: 100%;
  }

  .btn-metrics {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 75, 135, 0.2);
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 22px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}

/* ==========================================================================
   Banner de Privacidade & LGPD (Conformidade em Saúde)
   ========================================================================== */
.lgpd-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 500px;
  background: rgba(0, 43, 84, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 194, 214, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #FFFFFF;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 400ms ease;
}

.lgpd-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.lgpd-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lgpd-icon-box {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.lgpd-text {
  font-size: 0.825rem;
  line-height: 1.5;
  color: #E2E8F0;
  margin: 0;
}

.lgpd-text strong {
  color: var(--color-ems-cyan);
}

.lgpd-actions {
  display: flex;
  justify-content: flex-end;
}

.lgpd-accept-btn {
  padding: 8px 20px !important;
  font-size: 0.8rem !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 12px rgba(0, 194, 214, 0.25) !important;
  cursor: pointer;
}

@media (max-width: 768px) {
  .lgpd-banner {
    left: 16px;
    right: 16px;
    bottom: 90px;
    max-width: none;
    padding: 16px 18px;
  }
}
