/*
 * Gentill Site v2.17.1-RC1 — Hierarquia Tipográfica Refinada
 *
 * Objetivo:
 * - reduzir o domínio visual excessivo dos títulos;
 * - preservar a personalidade cinematográfica da v2.17.0;
 * - devolver espaço para imagens, animações, textos e chamadas;
 * - equilibrar a leitura entre desktop, tablet e celular;
 * - manter todo o conteúdo, SEO e narrativa progressiva intactos.
 */

body.gentill-v217 main h1,
body.gentill-v217 main h2,
body.gentill-v217 main h3 {
  text-wrap: balance;
  overflow-wrap: normal;
  hyphens: none;
}

/* Títulos principais de páginas internas */
body.gentill-v217 main h1 {
  max-width: 19ch;
  font-size: clamp(2.3rem, 3.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.038em;
}

/* Home: preserva maior presença sem ocupar a cena inteira */
body.gentill-v217 .hero--legendary h1 {
  max-width: 17ch;
  font-size: clamp(2.55rem, 3.9vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.041em;
}

/* Gentill Mais, Segurança e páginas de serviço com títulos longos */
body.gentill-v217 .legendary-care-hero h1,
body.gentill-v217 .service-landing-hero h1,
body.gentill-v217 .access-hero h1,
body.gentill-v217 .inclusion-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.3rem, 3.45vw, 3.2rem);
  line-height: 1.045;
  letter-spacing: -.036em;
}

/* Páginas compactas, jurídicas e de acompanhamento */
body.gentill-v217 .page-hero--compact h1 {
  max-width: 21ch;
  font-size: clamp(2.15rem, 3.15vw, 3rem);
  line-height: 1.06;
}

/* A operação local possuía uma largura artificialmente estreita (8,5ch). */
body.gentill-v217 .hero-city .hero-copy h1 {
  max-width: 18ch;
}

/* Grandes capítulos narrativos */
body.gentill-v217 .narrative-assembly__intro h2,
body.gentill-v217 .legendary-care-copy h2,
body.gentill-v217 .brand-manifesto-v217 h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.01;
  letter-spacing: -.041em;
}

/* Seções estratégicas da home e das páginas comerciais */
body.gentill-v217 .need-hub__intro h2,
body.gentill-v217 .care-pathways__head h2,
body.gentill-v217 .trust-center-preview__head h2,
body.gentill-v217 .ecosystem-home-copy h2,
body.gentill-v217 .partner-growth__copy h2 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 2.7vw, 2.65rem);
  line-height: 1.055;
  letter-spacing: -.035em;
}

/* Seções operacionais, institucionais e chamadas de conversão */
body.gentill-v217 .operation-grid h2,
body.gentill-v217 .governance-panel h2,
body.gentill-v217 .cta-panel h2,
body.gentill-v217 .copy-stack > h2,
body.gentill-v217 .section-heading h2,
body.gentill-v217 .access-trust h2 {
  max-width: 21ch;
  font-size: clamp(1.82rem, 2.5vw, 2.5rem);
  line-height: 1.075;
  letter-spacing: -.032em;
}

/* Títulos recorrentes de seção */
body.gentill-v217 .section-head h2 {
  max-width: 21ch;
  font-size: clamp(1.75rem, 2.35vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.031em;
}

/* Cards amplos de conversão já tinham boa proporção; apenas refinamento */
body.gentill-v217 .split-cta-card h2 {
  max-width: 22ch;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.027em;
}

/* Capítulos que mudam durante o scrollytelling */
body.gentill-v217 .story-step h3 {
  max-width: 20ch;
  font-size: clamp(1.65rem, 2.45vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -.034em;
}

/* Painéis de explicação e confiança */
body.gentill-v217 .need-panel h3,
body.gentill-v217 .trust-detail h3,
body.gentill-v217 .legendary-orchestrator-panel h3 {
  max-width: 22ch;
  font-size: clamp(1.5rem, 2.15vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -.029em;
}

/* Títulos de experiências visuais e comparadores */
body.gentill-v217 .app-copy h3,
body.gentill-v217 .conversion-card h3,
body.gentill-v217 .care-pathways__panel h3,
body.gentill-v217 .care-composer-panel h3 {
  max-width: 24ch;
  font-size: clamp(1.35rem, 1.85vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -.024em;
}

/* Distâncias mais elegantes entre título, explicação e ação */
body.gentill-v217 .section-head {
  max-width: 780px;
  margin-bottom: clamp(2rem, 3vw, 2.5rem);
}

body.gentill-v217 .section-head h2 + p,
body.gentill-v217 .page-hero h1 + p,
body.gentill-v217 .service-landing-hero h1 + p {
  margin-top: .88rem;
}

body.gentill-v217 .page-hero .lead,
body.gentill-v217 .service-landing-hero .lead,
body.gentill-v217 .legendary-care-hero .lead {
  max-width: 62ch;
}

/* Tablet */
@media (max-width: 980px) {
  body.gentill-v217 main h1 {
    max-width: 18ch;
    font-size: clamp(2.2rem, 5.6vw, 3rem);
  }

  body.gentill-v217 .hero--legendary h1 {
    max-width: 16ch;
    font-size: clamp(2.35rem, 6vw, 3.2rem);
  }

  body.gentill-v217 .legendary-care-hero h1,
  body.gentill-v217 .service-landing-hero h1,
  body.gentill-v217 .access-hero h1,
  body.gentill-v217 .inclusion-hero h1 {
    max-width: 19ch;
    font-size: clamp(2.2rem, 5.5vw, 3rem);
  }
}

/* Celular */
@media (max-width: 760px) {
  body.gentill-v217 main h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 8.5vw, 2.35rem);
    line-height: 1.075;
    letter-spacing: -.03em;
  }

  body.gentill-v217 .hero--legendary h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9.4vw, 2.5rem);
    line-height: 1.055;
    letter-spacing: -.033em;
  }

  body.gentill-v217 .legendary-care-hero h1,
  body.gentill-v217 .service-landing-hero h1,
  body.gentill-v217 .access-hero h1,
  body.gentill-v217 .inclusion-hero h1,
  body.gentill-v217 .page-hero--compact h1,
  body.gentill-v217 .page-hero .copy-stack h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.3vw, 2.3rem);
    line-height: 1.08;
  }

  body.gentill-v217 .narrative-assembly__intro h2,
  body.gentill-v217 .legendary-care-copy h2,
  body.gentill-v217 .brand-manifesto-v217 h2 {
    max-width: 100%;
    font-size: clamp(1.85rem, 7.8vw, 2.2rem);
    line-height: 1.055;
  }

  body.gentill-v217 .need-hub__intro h2,
  body.gentill-v217 .care-pathways__head h2,
  body.gentill-v217 .trust-center-preview__head h2,
  body.gentill-v217 .ecosystem-home-copy h2,
  body.gentill-v217 .partner-growth__copy h2,
  body.gentill-v217 .operation-grid h2,
  body.gentill-v217 .governance-panel h2,
  body.gentill-v217 .cta-panel h2,
  body.gentill-v217 .copy-stack > h2,
  body.gentill-v217 .section-heading h2,
  body.gentill-v217 .access-trust h2,
  body.gentill-v217 .section-head h2 {
    max-width: 100%;
    font-size: clamp(1.65rem, 7vw, 2rem);
    line-height: 1.1;
    letter-spacing: -.025em;
  }

  body.gentill-v217 .split-cta-card h2 {
    max-width: 100%;
    font-size: clamp(1.45rem, 6.2vw, 1.75rem);
  }

  body.gentill-v217 .story-step h3 {
    max-width: 100%;
    font-size: clamp(1.5rem, 6.4vw, 1.85rem);
    line-height: 1.09;
  }

  body.gentill-v217 .need-panel h3,
  body.gentill-v217 .trust-detail h3,
  body.gentill-v217 .legendary-orchestrator-panel h3,
  body.gentill-v217 .app-copy h3,
  body.gentill-v217 .conversion-card h3,
  body.gentill-v217 .care-pathways__panel h3,
  body.gentill-v217 .care-composer-panel h3 {
    max-width: 100%;
    font-size: clamp(1.35rem, 5.8vw, 1.65rem);
    line-height: 1.12;
  }
}

/* Celulares estreitos */
@media (max-width: 380px) {
  body.gentill-v217 main h1 {
    font-size: clamp(1.95rem, 9.2vw, 2.18rem);
  }

  body.gentill-v217 .hero--legendary h1 {
    font-size: clamp(2rem, 9.7vw, 2.28rem);
  }

  body.gentill-v217 .narrative-assembly__intro h2,
  body.gentill-v217 .legendary-care-copy h2,
  body.gentill-v217 .brand-manifesto-v217 h2 {
    font-size: clamp(1.75rem, 8.2vw, 2.02rem);
  }
}
