/* ==========================================================
   MX STRATEGY EDUCATION — Camada Editorial
   Direção (UI UX Pro Max): Trust & Authority + Editorial Grid
   + Minimalism/Swiss. Mesmo conteúdo, mesma paleta.
   Para reverter: remova o <link> deste arquivo nos HTMLs.
   ========================================================== */

:root {
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.22s ease;
  --hairline: 1px solid var(--gray-200);
  --shadow-sm: 0 1px 2px rgba(5, 11, 39, 0.06);
  --shadow-md: 0 10px 28px rgba(5, 11, 39, 0.10);
}

/* ---------- Tipografia editorial ---------- */
.hero-title,
.band-text h2,
.section-header h2,
.method-headline,
.cta-inner h2,
.page-hero h1:not(.mauricio-name),
.course-card .price-main {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.hero-title { font-weight: 500; line-height: 1.04; }
.hero-title .accent { font-style: italic; font-weight: 500; }
body { font-size: 16.5px; }

/* ---------- Botões: menos "pílula", mais sóbrios ---------- */
.btn { border-radius: 3px; letter-spacing: 0.6px; font-weight: 600; }
.btn-primary { box-shadow: none; }
.btn-primary:hover { box-shadow: none; transform: none; background: var(--red-dark); }
.btn-ghost:hover, .btn-outline:hover { transform: none; }

/* ---------- HERO: alinhado à esquerda com régua vermelha ---------- */
.hero { text-align: left; place-items: center start; }
.hero-content {
  width: min(1200px, 92%);
  max-width: none;
  margin-inline: auto;
  padding: 160px 0 110px;
}
.hero-content > * { max-width: 880px; }
.hero-content::before {
  content: '';
  position: absolute;
  left: -34px; top: 168px; bottom: 120px;
  width: 3px;
  background: var(--red);
}
.eyebrow {
  border: 0; background: none; padding: 0;
  color: rgba(255,255,255,0.7);
  letter-spacing: 5px;
  font-size: 12px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 12px;
}
.hero-title { font-size: clamp(2.6rem, 6.2vw, 5rem); margin-bottom: 28px; }
.hero-sub { margin: 0 0 40px; max-width: 560px; font-size: 1.15rem; }
.hero-cta { justify-content: flex-start; }
.hero::after {
  /* Monograma gigante decorativo */
  content: 'MX';
  position: absolute;
  right: -2vw; bottom: -6vw;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 34vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 1;
}
.hero-overlay { background: none; }
.scroll-down { left: auto; right: 4%; transform: none; }

/* ---------- BAND / STATS estilo revista ---------- */
.band { background: var(--white); border-bottom: var(--hairline); }
.badge {
  background: none; color: var(--red); padding: 0;
  border-radius: 0; letter-spacing: 3px; font-weight: 700;
}
.badge::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 12px;
}
.band-text h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; }
.band-stats { gap: 0; border-top: 2px solid var(--blue-900); }
.stat {
  background: none; border: 0; border-bottom: var(--hairline);
  border-radius: 0; box-shadow: none; padding: 26px 8px 22px 0;
}
.stat:nth-child(odd) { border-right: var(--hairline); padding-right: 24px; }
.stat:nth-child(even) { padding-left: 24px; }
.stat:hover { transform: none; box-shadow: none; }
.stat strong {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem); letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat span { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11.5px; font-weight: 600; }

/* ---------- Cabeçalhos de seção editoriais (numerados) ---------- */
.section-header--ed {
  text-align: left;
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  column-gap: 20px;
  border-top: 2px solid var(--blue-900);
  padding-top: 20px;
  margin-bottom: 56px;
}
.section-header--ed .section-divider { display: none; }
.section-header--ed h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); }
.section-index {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 500;
}

/* ---------- SERVIÇOS: grade assimétrica ---------- */
.services { background: var(--gray-50); }
.service-grid { grid-template-columns: 1.35fr 1fr 1fr; gap: 0; border: var(--hairline); background: var(--white); }
.service-card {
  text-align: left; border-radius: 0; box-shadow: none;
  border: 0; border-right: var(--hairline);
  padding: 44px 36px 40px;
}
.service-card:last-child { border-right: 0; }
.service-card:first-child { background: var(--blue-900); }
.service-card:first-child h3 { color: var(--white); }
.service-card:first-child p { color: rgba(255,255,255,0.78); }
.service-card:first-child .service-icon { background: var(--red); }
.service-card:hover { transform: none; box-shadow: none; }
.service-card::before { background: var(--blue-900); }
.service-icon {
  width: 48px; height: 48px; border-radius: 4px;
  margin: 0 0 36px;
}
.service-icon svg { width: 22px; height: 22px; }
.card-index {
  position: absolute; top: 34px; right: 32px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 1rem; color: var(--gray-400); z-index: 1;
}
.service-card:first-child .card-index,
.service-card:hover .card-index { color: rgba(255,255,255,0.55); }
.service-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.6rem; }
.card-link { letter-spacing: 2px; font-size: 12px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- METODOLOGIA (home + página) ---------- */
.method-header--ed { text-align: left; max-width: none; margin-bottom: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; border-top: 2px solid var(--blue-900); padding-top: 24px; }
.method-header--ed .method-eyebrow { grid-column: 1 / -1; margin: 0; }
.method-eyebrow { border: 0; background: none; padding: 0; letter-spacing: 3px; }
.method-headline { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; margin: 0; }
.method-header--ed .method-lead { margin: 0; padding-left: 22px; border-left: 2px solid var(--red); }

.pillars-grid { gap: 0; border-top: var(--hairline); }
.pillar {
  border-radius: 0; box-shadow: none; border: 0;
  border-right: var(--hairline); background: none;
  padding: 36px 32px 8px 0;
}
.pillar + .pillar { padding-left: 32px; }
.pillar:last-child { border-right: 0; }
.pillar::before { display: none; }
.pillar:hover { transform: none; box-shadow: none; }
.pillar .pillar-num {
  display: block; font-family: var(--font-serif); font-weight: 400;
  font-size: 3.6rem; line-height: 1; color: var(--red);
  letter-spacing: -0.03em; margin-bottom: 18px;
}
.pillar h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.55rem; }

.method-tagline { border-radius: 0; box-shadow: none; }
.method-tagline span { font-family: var(--font-serif); font-weight: 500; letter-spacing: 1px; }
.method-tagline .plus { font-family: var(--font-sans); font-weight: 300; }
.method-cta { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: var(--hairline); padding-top: 28px; }
.method-cta-lead { margin: 0; text-align: left; }

.journey { border-radius: 0; background: none; border: 0; border-top: var(--hairline); border-bottom: var(--hairline); }
.journey-step .step-circle { font-family: var(--font-serif); font-weight: 500; border-radius: 50%; }
.journey-step h4 { letter-spacing: 1.5px; font-size: 0.9rem; }
.impact-grid { gap: 0; border: var(--hairline); }
.impact-card { border-radius: 0; border: 0; border-right: var(--hairline); text-align: left; padding: 32px 26px; }
.impact-card:last-child { border-right: 0; }
.impact-card:hover { transform: none; box-shadow: none; background: var(--gray-50); }
.impact-icon { margin: 0 0 18px; border-radius: 4px; width: 44px; height: 44px; }
.impact-card h4 { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; }

/* ---------- MAURÍCIO ---------- */
.mauricio .section-index { color: rgba(255,255,255,0.5); display: block; margin-bottom: 14px; }
.mauricio-role { letter-spacing: 3px; }
.mauricio-role::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 12px;
}
.mauricio-photo { border-radius: 2px; overflow: visible; box-shadow: none; }
.mauricio-photo::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--red); z-index: 0; pointer-events: none;
}
.mauricio-photo img { position: relative; z-index: 1; border-radius: 2px; }

/* ---------- CLIENTES ---------- */
.clients-kicker {
  grid-column: 2; margin: 10px 0 0;
  color: var(--gray-600); font-size: 0.95rem;
}
.client-slide {
  border: 0; border-right: var(--hairline); border-radius: 0;
  margin: 0; width: 220px; background: none;
}
.client-slide:hover { transform: none; box-shadow: none; border-color: var(--gray-200); }
.client-carousel { border-top: var(--hairline); border-bottom: var(--hairline); padding: 6px 0; }

/* ---------- CTA ---------- */
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 500; }

/* ---------- Páginas internas ---------- */
.page-hero { text-align: left; padding: 190px 0 90px; }
.page-hero .container { border-left: 3px solid var(--red); padding-left: 32px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.06; max-width: 900px; }
.page-hero .lead { margin: 0; }
.specialization-item { border-radius: 0; background: none; border: 0; border-top: var(--hairline); border-left: 0; padding: 24px 0; }
.specialization-item:hover { transform: none; box-shadow: none; background: none; }
.specialization-item .spec-icon { background: none; color: var(--red); font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; border-radius: 0; }
.specialization-item .spec-text strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; }
.company-prose > p:first-child::first-letter {
  float: left; font-family: var(--font-serif); font-weight: 600;
  font-size: 4.6em; line-height: 0.82; color: var(--red);
  margin: 0.06em 0.12em 0 0;
}
.company-prose .pull-stat { border-radius: 0; }
.company-prose .pull-stat .pull-item strong { font-family: var(--font-serif); font-weight: 500; }
.course-banner, .course-card, .module-card { border-radius: var(--radius); }
.module-card .mod-num { font-family: var(--font-serif); font-style: italic; background: none; color: var(--red); font-size: 1.2rem; }

/* ---------- Rodapé estilo colofão ---------- */
.footer-bottom { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; }

/* ---------- Checklist de acessibilidade (skill) ---------- */
a, button, [role="button"] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.client-carousel:focus-within .client-track { animation-play-state: paused; }
@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; }
  .client-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
  .client-track .client-slide:nth-child(n+12) { display: none; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { border-right: 0; border-bottom: var(--hairline); }
  .method-header--ed { grid-template-columns: 1fr; gap: 20px; }
  .pillar, .pillar + .pillar { border-right: 0; border-bottom: var(--hairline); padding: 28px 0; }
  .impact-card { border-right: 0; border-bottom: var(--hairline); }
  .hero-content::before { left: -16px; }
}
@media (max-width: 720px) {
  .section-header--ed { grid-template-columns: 1fr; row-gap: 8px; }
  .clients-kicker { grid-column: 1; }
  .hero-content { padding: 130px 0 90px 18px; }
  .hero-content::before { left: 0; }
  .mauricio-text { text-align: left; }
  .stat:nth-child(odd) { padding-right: 12px; }
  .stat:nth-child(even) { padding-left: 12px; }
  .page-hero .container { padding-left: 20px; }
}

.section-header--ed .section-sub { grid-column: 2; margin-top: 10px; }
@media (max-width: 720px) { .section-header--ed .section-sub { grid-column: 1; } }

/* ==========================================================
   ACABAMENTO
   ========================================================== */
/* Barra de progresso de leitura */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 100; pointer-events: none;
}

/* Número gigante em contorno atrás dos títulos de seção */
.has-bignum { position: relative; }
.has-bignum > * { position: relative; z-index: 1; }
.has-bignum::after {
  content: attr(data-num);
  position: absolute; right: 0; top: -0.42em;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(5rem, 11vw, 9.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gray-200);
  pointer-events: none; z-index: 0;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.has-bignum.num-in::after { opacity: 1; transform: none; }

/* Números editoriais entram suavemente */
.num-reveal:not(.has-bignum) {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.num-reveal.num-in:not(.has-bignum) { opacity: 1; transform: none; }
.pillar:nth-child(2) .pillar-num, .service-card:nth-child(2) .card-index { transition-delay: 0.12s; }
.pillar:nth-child(3) .pillar-num, .service-card:nth-child(3) .card-index { transition-delay: 0.24s; }

/* ==========================================================
   CORREÇÕES DE ALINHAMENTO
   ========================================================== */
/* 1. Topo das páginas internas alinhado com o conteúdo abaixo */
.page-hero .container { border-left: 0; padding-left: 0; position: relative; }
.page-hero .container::before {
  content: ''; position: absolute; left: -34px; top: 4px; bottom: 4px;
  width: 3px; background: var(--red);
}
/* 2. "02 METODOLOGIA MX" na mesma linha */
.method-eyebrow { display: flex; align-items: center; gap: 12px; line-height: 1; }
.method-eyebrow .section-index { font-size: 1rem; line-height: 1; }
/* 3. Título da jornada alinhado ao resto do site */
.journey-title { text-align: left; }
/* 4. Menu não quebra linha em telas médias */
.nav a { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13px; letter-spacing: 0.2px; }
  .logo img { height: 36px; }
}
@media (max-width: 960px) {
  .page-hero .container::before { left: -14px; }
}
@media (max-width: 720px) {
  .has-bignum::after { font-size: 4.5rem; top: -0.2em; }
  .page-hero .container::before { left: -10px; }
}

/* ==========================================================
   HERO COM VÍDEO DA LOGO (desktop: lado a lado / celular: empilhado)
   ========================================================== */
.hero--video::after { content: none; }              /* tira o "MX" gigante decorativo */
.hero--video .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: 130px 0 90px;
}
.hero--video .hero-content::before { content: none; }
.hero--video .hero-content > * { max-width: none; }
.hero-text { position: relative; }
.hero-text::before {
  content: ''; position: absolute; left: -34px; top: 10px; bottom: 10px;
  width: 3px; background: var(--red);
}
.hero--video .hero-title { font-size: clamp(2.4rem, 4.7vw, 4.4rem); }
.hero--video .hero-sub { max-width: 520px; }

.hero-media { position: relative; }
.hero-video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: #060c2c;
  /* bordas se dissolvem no fundo do hero */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 92%, transparent 100%);
          mask-composite: intersect;
}
/* Botão pausar/tocar (acessibilidade: vídeo em loop precisa poder parar) */
.hero-video-toggle {
  position: absolute; right: 10%; bottom: 12%;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  opacity: 0.55; transition: opacity var(--transition), background var(--transition);
}
.hero-video-toggle:hover, .hero-video-toggle:focus-visible { opacity: 1; background: rgba(255,255,255,0.16); }
.hero-video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.hero-video-toggle .ic-play { display: none; }
.hero-video-toggle.is-paused .ic-play { display: block; }
.hero-video-toggle.is-paused .ic-pause { display: none; }

/* Tablet e celular: vídeo em cima, texto embaixo */
@media (max-width: 960px) {
  .hero--video { min-height: auto; }
  .hero--video .hero-content {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 96px 0 72px;
  }
  .hero-media { order: -1; width: min(100%, 520px); margin: 0 auto; }
  .hero-text { padding-left: 20px; }
  .hero-text::before { left: 0; }
  .hero--video .hero-title { font-size: clamp(2.2rem, 8.5vw, 3.4rem); }
  .hero--video .scroll-down { display: none; }
}
@media (max-width: 480px) {
  .hero--video .hero-content { padding-top: 84px; }
  .hero-media { width: calc(100% + 8vw); margin: 0 -4vw; }   /* vídeo encosta nas bordas da tela */
  .hero-video-toggle { right: 8%; bottom: 10%; width: 32px; height: 32px; }
  .hero--video .hero-cta .btn { flex: 1 1 100%; text-align: center; }
}
