/* R281: composição tablet dedicada, preservando a cena hero desktop aprovada.
   Esta camada só atende 761–1100px; o desktop e o mobile continuam em seus
   próprios contratos visuais. */

@media (min-width: 761px) and (max-width: 1100px) {
  html,
  body {
    overflow-x: clip;
  }

  /* O tablet tem navegação compacta, sem espremer CTA, cadeado e menu. */
  .public-shell-page .site-header > nav {
    width: calc(100% - 32px) !important;
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
    gap: 14px !important;
    height: 76px !important;
    min-height: 76px !important;
  }

  .public-shell-page .site-header .brand-logo {
    width: 150px !important;
    min-width: 150px !important;
  }

  .public-shell-page .site-header .nav-cta {
    display: none !important;
  }

  .public-shell-page .site-header .nav-operations {
    display: grid !important;
  }

  .public-shell-page .site-header .nav-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 94px !important;
    height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #0b4854 !important;
    border-radius: 10px !important;
    background: #0b4854 !important;
    color: #f7f2e6 !important;
    font: 800 13px/1 Manrope, Arial, sans-serif !important;
  }

  .public-shell-page .site-header .nav-menu-toggle svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
  }

  .public-shell-page .site-header.nav-open .links {
    position: fixed !important;
    inset: 76px 16px auto !important;
    z-index: 200 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-height: calc(100svh - 92px) !important;
    overflow-y: auto !important;
    padding: 16px !important;
    border: 1px solid rgba(247, 242, 230, .16) !important;
    border-radius: 16px !important;
    background: #062f38 !important;
    box-shadow: 0 18px 36px rgba(6, 47, 56, .32) !important;
  }

  /* Home: the approved desktop hero scene, cropped intentionally for tablet. */
  body.home-page .hero-final {
    height: auto !important;
    min-height: 520px !important;
    background: #062f38 !important;
  }

  body.home-page .hero-picture {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    overflow: hidden !important;
  }

  body.home-page .hero-picture .hero-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  body.home-page .hero-overlay {
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(90deg, rgba(4, 31, 40, .94) 0%, rgba(4, 31, 40, .72) 42%, rgba(4, 31, 40, .18) 72%, rgba(4, 31, 40, 0) 100%) !important;
  }

  body.home-page .hero-content {
    position: relative !important;
    z-index: 2 !important;
    width: min(100% - 64px, 820px) !important;
    height: auto !important;
    min-height: 520px !important;
    margin-inline: auto !important;
    padding: 76px 0 66px !important;
    box-sizing: border-box !important;
  }

  body.home-page .hero-content h1 {
    max-width: 540px !important;
    font-size: clamp(48px, 6.2vw, 68px) !important;
    line-height: .95 !important;
  }

  body.home-page .hero-description {
    max-width: 430px !important;
    font-size: 15px !important;
    line-height: 1.48 !important;
  }

  body.home-page .hero-telegram-entry {
    max-width: 470px !important;
  }

  body.home-page .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  /* Landing de Soluções: a cena desktop ocupa a superfície inteira e conserva
     o texto no campo negativo da arte. */
  body.solutions-page .hero-visual.hero-media {
    min-height: 520px !important;
  }

  body.solutions-page .hero-split .hero-content {
    width: min(100% - 64px, 820px) !important;
    min-height: 520px !important;
    padding: 76px 0 66px !important;
  }

  body.solutions-page .hero-split .hero-image {
    object-position: center !important;
  }

  body.solutions-page .hero-split .hero-content h1 {
    max-width: 540px !important;
    font-size: clamp(46px, 5.8vw, 64px) !important;
    line-height: .96 !important;
  }

  body.solutions-page .hero-split .hero-content > p:not(.muted) {
    max-width: 470px !important;
    font-size: 15px !important;
  }

  /* Detalhes: imagem tablet inteira primeiro; texto abaixo, sem cortar o
     campo negativo da composição. */
  body.solution-detail-page .detail-hero {
    display: flex !important;
    flex-direction: column !important;
    width: min(calc(100% - 48px), 960px) !important;
    min-height: 0 !important;
    margin: 20px auto 0 !important;
    border-radius: 24px !important;
  }

  body.solution-detail-page .detail-media {
    order: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 10 !important;
  }

  body.solution-detail-page .detail-media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  body.solution-detail-page .detail-copy {
    order: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 42px 48px 48px !important;
    box-sizing: border-box !important;
  }

  body.solution-detail-page .detail-copy h1 {
    max-width: 700px !important;
    font-size: clamp(42px, 5.4vw, 62px) !important;
    line-height: .98 !important;
  }

  body.solution-detail-page .detail-copy > p {
    max-width: 680px !important;
  }

  /* Páginas editoriais: o tablet preserva a cena desktop como fundo completo,
     com uma única transição de leitura da esquerda para a direita. */
  .seo-page .seo-hero {
    min-height: 520px !important;
    padding: 0 !important;
    background: #062f38 !important;
    color: #f7f2e6 !important;
  }

  .seo-page .seo-hero-media,
  .seo-page .seo-hero-media--cream {
    position: absolute !important;
    inset: 0 !important;
    height: auto !important;
    background: #062f38 !important;
  }

  .seo-page .seo-hero-media::after,
  .seo-page .seo-hero-media--cream::after {
    background: linear-gradient(90deg, rgba(6, 47, 56, .98) 0%, rgba(6, 47, 56, .9) 34%, rgba(6, 47, 56, .5) 58%, rgba(6, 47, 56, .06) 80%, transparent 100%) !important;
  }

  .seo-page .seo-hero-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .seo-page .seo-hero > .shell {
    width: min(calc(100% - 64px), 820px) !important;
    min-height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 72px 0 68px !important;
    box-sizing: border-box !important;
  }

  .seo-page .seo-hero .seo-eyebrow,
  .seo-page .seo-hero h1,
  .seo-page .seo-hero p,
  .seo-page .seo-hero .seo-link {
    color: #f7f2e6 !important;
  }

  .seo-page .seo-hero h1 {
    max-width: 560px !important;
    font-size: clamp(44px, 5.5vw, 62px) !important;
    line-height: .98 !important;
  }

  .seo-page .seo-hero p {
    max-width: 500px !important;
    font-size: 15px !important;
  }

  .seo-page .seo-hero .seo-actions a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    border-radius: 9px !important;
    background: #c8f25c !important;
    color: #0b2b35 !important;
    font-weight: 900 !important;
  }

  /* Sobre e Agentes seguem o mesmo princípio: arte completa e texto no
     negativo esquerdo, sem sobrepor a pessoa. */
  .about-page .about-hero,
  .representatives-page .representatives-hero {
    position: relative !important;
    min-height: 520px !important;
    overflow: hidden !important;
  }

  .about-page .about-hero-media,
  .representatives-page .representatives-hero > .hero-mobile-picture {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
  }

  .about-page .about-hero-media-image,
  .representatives-page .representatives-hero > .hero-mobile-picture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .about-page .about-hero::after,
  .representatives-page .representatives-hero::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(90deg, rgba(6, 47, 56, .97) 0%, rgba(6, 47, 56, .82) 38%, rgba(6, 47, 56, .22) 72%, transparent 100%) !important;
    pointer-events: none !important;
  }

  .about-page .about-hero-inner,
  .representatives-page .representatives-hero .hero-copy {
    position: relative !important;
    z-index: 2 !important;
    width: min(100% - 64px, 560px) !important;
    min-height: 520px !important;
    padding: 74px 0 64px !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  .about-page .about-hero-inner > *,
  .representatives-page .representatives-hero .hero-copy > * {
    color: #f7f2e6 !important;
  }

  .about-page .about-hero-accent,
  .representatives-page .representatives-hero .hero-copy h1 {
    color: #c8f25c !important;
  }

  /* Solicitar: a cena desktop continua no tablet; o override que apaga a
     imagem vale apenas para o mobile real. */
  .request-page .request-stage {
    min-height: 720px !important;
    padding: 54px 0 64px !important;
    background-image: url("/assets/solicitar-diagnostico-hero-20261006-1348.webp") !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
  }

  .request-page .request-layout {
    width: min(calc(100% - 64px), 720px) !important;
    max-width: 720px !important;
    margin-inline: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }

  .request-page .request-copy {
    max-width: 560px !important;
  }

  .request-page .request-copy h1,
  .request-page .request-copy > p {
    color: #f7f2e6 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .22) !important;
  }

  /* Diagnóstico: o painel tablet conserva a mesma cena usada no desktop. */
  .diagnostic-page .diagnostic-mobile-visual {
    display: block !important;
    margin: 0 0 24px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #062f3a !important;
  }

  .diagnostic-page .diagnostic-mobile-visual img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Presence mantém o fundo desktop simples, sem criar uma segunda hero. */
  .presence-page .presence-hero {
    background-image: radial-gradient(circle at 82% 18%, rgba(195, 229, 125, .26), transparent 30%), #102b32 !important;
    background-position: center !important;
    background-size: cover !important;
  }
}

