/* ============================================================
   Matrix Print — Locação de Impressora para Clínicas
   Arquivo: mp-clinicas.css
   Prefixo: mpcl-
   Conceito: "papel impresso" — painéis de imagem como folhas
   soltas, levemente rotacionadas, com sombra realista de papel.
   ============================================================ */

:root {
  --mpcl-dark:     #090b12;
  --mpcl-dark-2:   #0f1220;
  --mpcl-orange:   #FF6B1A;
  --mpcl-orange-dim: rgba(255, 107, 26, 0.10);
  --mpcl-bg:       #F4F4F4;
  --mpcl-gray:     #6b7280;
  --mpcl-font:     'Space Grotesk', sans-serif;
  --mpcl-font-d:   'Syne', sans-serif;
}

/* ── util: reveal on scroll ─────────────────────────────── */
.mpcl-anim { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.mpcl-anim.mpcl-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mpcl-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   HERO — full-bleed, vitrine com 3 banners em carrossel
   (fotos reais + texto próprio por banner) sobreposto.
   ============================================================ */
.mpcl-hero {
  background: var(--mpcl-dark);
  position: relative;
  overflow: hidden;
}

.mpcl-hero-inner {
  position: relative;
  min-height: clamp(560px, 64vw, 740px);
  display: flex; align-items: center;
  overflow: hidden;
  padding: 90px clamp(20px, 6vw, 90px) 76px;
}

/* gradiente escuro para legibilidade do texto sobre os banners — quase
   horizontal (95deg) de propósito: com pouca inclinação, o escurecimento
   não "puxa" para baixo nas bordas e a foto fica visível até o rodapé
   da vitrine, inclusive atrás dos dots/seta. */
.mpcl-hero-inner::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(95deg, rgba(9,11,18,0.93) 0%, rgba(9,11,18,0.74) 30%, rgba(9,11,18,0.32) 55%, rgba(9,11,18,0.04) 82%, rgba(9,11,18,0) 100%);
}

/* ── vitrine / carrossel de banners ─────────────────────── */
.mpcl-hero-slides { position: absolute; inset: 0; z-index: 0; }
.mpcl-hero-slide {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1);
  background-size: cover;
  background-position: var(--mpcl-slide-x, center) center;
}
.mpcl-hero-slide.is-active { opacity: 1; z-index: 1; }

.mpcl-hero-content { position: relative; z-index: 3; max-width: 620px; }

/* texto (eyebrow/título/sub) troca junto com o banner ativo — leve fade */
.mpcl-hero-text { transition: opacity .25s ease; }
.mpcl-hero-text.mpcl-fading { opacity: 0; }

/* ── navegação da vitrine: dots + seta de avançar ───────────
   Fica no FLUXO do conteúdo (não position:absolute pinado no
   canto), de propósito: o widget flutuante do WhatsApp
   (#wrapper-whatsapp-matrix, fixed, z-index altíssimo) ocupa o
   canto inferior direito da tela e roubava o clique quando a
   navegação ficava presa naquele canto do hero. */
.mpcl-hero-nav {
  display: flex; align-items: center; gap: 16px;
  margin-top: 34px;
}
.mpcl-hero-dots { display: flex; align-items: center; gap: 8px; }
.mpcl-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: none; padding: 0;
  cursor: pointer; transition: background .25s ease, transform .25s ease;
}
.mpcl-hero-dot:hover { background: rgba(255,255,255,0.5); }
.mpcl-hero-dot.is-active { background: var(--mpcl-orange); transform: scale(1.4); }

.mpcl-hero-next {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.mpcl-hero-next svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.mpcl-hero-next:hover { background: var(--mpcl-orange); border-color: var(--mpcl-orange); transform: translateX(2px); }

@media (max-width: 640px) {
  .mpcl-hero-inner { min-height: 640px; padding: 96px 20px 88px; }
}

.mpcl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mpcl-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--mpcl-orange);
  margin-bottom: 22px;
}
.mpcl-hero-eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--mpcl-orange);
}

.mpcl-hero-title {
  font-family: var(--mpcl-font);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 22px;
  /* reserva o espaço de exatamente 3 linhas — os 3 banners usam sempre
     3 linhas curtas (quebra forçada via <br>), então o título nunca
     muda de altura na troca de banner */
  min-height: 3.12em;
}
.mpcl-hero-title em {
  font-style: normal;
  color: var(--mpcl-orange);
}
.mpcl-hero-title .mpcl-strike {
  position: relative;
  display: inline-block;
}
.mpcl-hero-title .mpcl-strike::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; top: 46%;
  height: 3px;
  background: var(--mpcl-orange);
  transform: rotate(-1.4deg);
  opacity: 0.9;
}

.mpcl-hero-sub {
  font-family: var(--mpcl-font);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
  max-width: 480px;
  margin: 0 0 34px;
  /* reserva o espaço de exatamente 2 linhas — mesmo motivo do título acima */
  min-height: 3.4em;
}

.mpcl-hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }

.mpcl-btn-orange {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mpcl-orange);
  color: #fff;
  font-family: var(--mpcl-font);
  font-weight: 700;
  font-size: 14.5px;
  padding: 15px 26px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255,107,26,0.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mpcl-btn-orange:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,107,26,0.4); color: #fff; }
.mpcl-btn-orange svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }

.mpcl-hero-tel {
  font-family: var(--mpcl-font);
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.mpcl-hero-tel:hover { color: #fff; }

.mpcl-hero-stats { display: flex; gap: clamp(24px, 3vw, 44px); flex-wrap: wrap; }
.mpcl-hero-stat-num {
  display: block;
  font-family: var(--mpcl-font);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
}
.mpcl-hero-stat-num span { color: var(--mpcl-orange); }
.mpcl-hero-stat-label {
  font-family: var(--mpcl-font);
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   GALERIA "EM LEQUE" — múltiplas imagens, não quadradas
   ============================================================ */
.mpcl-gallery {
  background: var(--mpcl-bg);
  padding: clamp(64px, 8vw, 110px) 0;
  overflow: hidden;
}
.mpcl-gallery-inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }

.mpcl-section-head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 64px); }
.mpcl-section-head--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.mpcl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mpcl-font); font-size: 11.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--mpcl-orange);
  margin-bottom: 16px;
}
.mpcl-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--mpcl-orange); }

.mpcl-h2 {
  font-family: var(--mpcl-font);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--mpcl-dark);
  margin: 0 0 14px;
}
.mpcl-h2 em { font-style: normal; color: var(--mpcl-orange); }
.mpcl-p {
  font-family: var(--mpcl-font);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--mpcl-gray);
}

.mpcl-fan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 940px) { .mpcl-fan { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mpcl-fan { grid-template-columns: 1fr; } }

.mpcl-fan-card {
  --mpcl-rot: 0deg;
  --mpcl-ty: 0px;
  background: #fff;
  border-radius: 4px 4px 16px 16px;
  box-shadow: 0 18px 40px -16px rgba(9,11,18,0.22);
  overflow: hidden;
  transform: rotate(var(--mpcl-rot)) translateY(var(--mpcl-ty));
  transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s ease;
}
.mpcl-fan-card:nth-child(1) { --mpcl-rot: -2.2deg; --mpcl-ty: 6px; }
.mpcl-fan-card:nth-child(2) { --mpcl-rot: 1.6deg;  --mpcl-ty: -10px; }
.mpcl-fan-card:nth-child(3) { --mpcl-rot: -1.1deg; --mpcl-ty: 4px; }
.mpcl-fan-card:nth-child(4) { --mpcl-rot: 2.4deg;  --mpcl-ty: -6px; }
.mpcl-fan-card:hover { transform: rotate(0deg) translateY(-14px); box-shadow: 0 28px 54px -14px rgba(9,11,18,0.3); z-index: 2; position: relative; }

.mpcl-fan-img {
  aspect-ratio: 3/4;
  background:
    repeating-linear-gradient(135deg, rgba(255,107,26,0.05) 0 2px, transparent 2px 14px),
    #f7f5f2;
  border: 2px dashed rgba(255,107,26,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 18px; text-align: center;
}
.mpcl-fan-img svg { width: 26px; height: 26px; stroke: var(--mpcl-orange); opacity: 0.5; }
.mpcl-fan-img-txt { font-family: var(--mpcl-font); font-size: 11px; color: #9b9284; line-height: 1.5; }

.mpcl-fan-cap {
  font-family: var(--mpcl-font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mpcl-dark);
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mpcl-fan-card.mpcl-anim { opacity: 0; transform: rotate(var(--mpcl-rot)) translateY(28px); }
.mpcl-fan-card.mpcl-anim.mpcl-in { opacity: 1; transform: rotate(var(--mpcl-rot)) translateY(var(--mpcl-ty)); }
.mpcl-fan-card:nth-child(1) { transition-delay: 0ms; }
.mpcl-fan-card:nth-child(2) { transition-delay: 90ms; }
.mpcl-fan-card:nth-child(3) { transition-delay: 180ms; }
.mpcl-fan-card:nth-child(4) { transition-delay: 270ms; }

/* ============================================================
   INCLUSO — trilha diagonal escalonada
   ============================================================ */
.mpcl-included {
  background: var(--mpcl-dark);
  padding: clamp(64px, 8vw, 110px) 0;
  position: relative;
}
.mpcl-included-inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }
.mpcl-included .mpcl-h2, .mpcl-included .mpcl-eyebrow { color: #fff; }
.mpcl-included .mpcl-eyebrow { color: var(--mpcl-orange); }
.mpcl-included .mpcl-p { color: rgba(255,255,255,0.5); }

.mpcl-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 44px;
}
.mpcl-track-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.09);
  position: relative;
}
.mpcl-track-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.09); }
.mpcl-track-item:nth-child(odd) { padding-left: 0; }
.mpcl-track-item:nth-child(even) { padding-left: clamp(0px, 6vw, 64px); }

.mpcl-track-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--mpcl-orange-dim);
  border: 1px solid rgba(255,107,26,0.3);
  display: flex; align-items: center; justify-content: center;
}
.mpcl-track-icon svg { width: 24px; height: 24px; stroke: var(--mpcl-orange); fill: none; stroke-width: 1.8; }

.mpcl-track-title {
  font-family: var(--mpcl-font);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  margin: 0 0 6px;
}
.mpcl-track-desc {
  font-family: var(--mpcl-font);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.48);
  max-width: 560px;
}

/* ============================================================
   SIMULADOR — moldura "bloco de receituário"
   ============================================================ */
.mpcl-quiz-wrap {
  background: var(--mpcl-bg);
  padding: clamp(64px, 8vw, 110px) 0;
}
.mpcl-quiz-wrap-inner { max-width: 900px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }

.mpcl-pad {
  background: #fff;
  border-radius: 6px 6px 22px 22px;
  box-shadow: 0 30px 60px -20px rgba(9,11,18,0.22);
  position: relative;
  padding-top: 10px;
  overflow: hidden;
}
.mpcl-pad::before {
  content: '';
  display: block;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--mpcl-orange) 0 16px, transparent 16px 30px);
  opacity: 0.85;
}

/* Etapa 1 do simulador — só existe 1 cartão (perfil pré-identificado):
   maior e centralizado, em vez de ocupar 1/3 da grade como as outras etapas */
.mpal-quiz-options--confirm { display: flex; justify-content: center; }
.mpal-quiz-options--confirm .mpal-quiz-opt { width: 100%; max-width: 460px; padding: 40px 32px; }
.mpal-quiz-options--confirm .mpal-opt-icon { width: 60px; height: 60px; }
.mpal-quiz-options--confirm .mpal-opt-icon svg { width: 28px; height: 28px; }
.mpal-quiz-options--confirm .mpal-opt-label { font-size: 15px; }

/* ============================================================
   FAQ — mesmo layout de coluna única das outras páginas,
   só o texto das respostas justificado
   ============================================================ */
.mpfa-answer p {
  text-align: justify;
}

/* ============================================================
   CORTE DIAGONAL NA PRÓPRIA SEÇÃO (mais confiável que o
   <div class="mpcl-divider"> separado — usar quando o divisor
   em SVG não estiver aparecendo corretamente)
   ============================================================ */
.mpcl-slant-up {
  position: relative;
  z-index: 1;
  clip-path: polygon(0 0, 100% 130px, 100% 100%, 0 100%);
  margin-top: -130px;
  padding-top: 220px !important;
}
.mpcl-slant-down {
  position: relative;
  z-index: 1;
  clip-path: polygon(0 130px, 100% 0, 100% 100%, 0 100%);
  margin-top: -130px;
  padding-top: 220px !important;
}
@media (max-width: 640px) {
  .mpcl-slant-up   { clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 100%); margin-top: -60px; padding-top: 130px !important; }
  .mpcl-slant-down { clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%); margin-top: -60px; padding-top: 130px !important; }
}

/* ============================================================
   DIVISOR angular (substitui a linha reta genérica do site)
   Alterna de lado a cada uso — ver classes --l / --r no HTML.
   ============================================================ */
.mpcl-divider { position: relative; height: clamp(64px, 8vw, 110px); overflow: hidden; line-height: 0; }
.mpcl-divider svg { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) { .mpcl-divider { height: 44px; } }
