/* J. Specht — shared luxury dark-to-light transition
   Mirrors the approved homepage bridge. */

/* Light content after dark internal heroes */
body[data-page="quem-somos"] main > section:nth-of-type(2),
body[data-page="seguros"] main > section:nth-of-type(2),
body[data-page="solucoes"] main > section:nth-of-type(2),
body[data-page="sinistros"] main > section:nth-of-type(2),
body[data-page="blog"] main > section:nth-of-type(2),
body[data-page="artigo"] main > article,
body[data-page="seguro-detalhe"] main > section:nth-of-type(2),
body[data-page="solucao-detalhe"] main > article{
  position:relative;
  isolation:isolate;
}

body[data-page="quem-somos"] main > section:nth-of-type(2)::before,
body[data-page="seguros"] main > section:nth-of-type(2)::before,
body[data-page="solucoes"] main > section:nth-of-type(2)::before,
body[data-page="sinistros"] main > section:nth-of-type(2)::before,
body[data-page="blog"] main > section:nth-of-type(2)::before,
body[data-page="artigo"] main > article::before,
body[data-page="seguro-detalhe"] main > section:nth-of-type(2)::before,
body[data-page="solucao-detalhe"] main > article::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:122px;
  pointer-events:none;
  z-index:0;
  background:
    linear-gradient(
      180deg,
      #19130c 0,
      #8d7044 1px,
      #e4d5bb 38px,
      rgba(243,236,223,.88) 72px,
      rgba(247,242,233,0) 122px
    );
  box-shadow:inset 0 18px 34px rgba(61,43,20,.055);
}

body[data-page="quem-somos"] main > section:nth-of-type(2) > *,
body[data-page="seguros"] main > section:nth-of-type(2) > *,
body[data-page="solucoes"] main > section:nth-of-type(2) > *,
body[data-page="sinistros"] main > section:nth-of-type(2) > *,
body[data-page="blog"] main > section:nth-of-type(2) > *,
body[data-page="artigo"] main > article > *,
body[data-page="seguro-detalhe"] main > section:nth-of-type(2) > *,
body[data-page="solucao-detalhe"] main > article > *{
  position:relative;
  z-index:1;
}

/* Contact remains intentionally dark, but keeps the same gold seam/halo */
body[data-page="contato"] #contato{
  position:relative;
  isolation:isolate;
}

body[data-page="contato"] #contato::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:86px;
  pointer-events:none;
  z-index:0;
  background:
    linear-gradient(
      180deg,
      rgba(141,112,68,.72) 0,
      rgba(198,146,63,.20) 1px,
      rgba(111,78,36,.10) 26px,
      rgba(11,10,9,0) 86px
    );
  box-shadow:inset 0 13px 28px rgba(139,93,29,.055);
}

body[data-page="contato"] #contato > *{
  position:relative;
  z-index:1;
}

@media(max-width:639px){
  body[data-page="quem-somos"] main > section:nth-of-type(2)::before,
  body[data-page="seguros"] main > section:nth-of-type(2)::before,
  body[data-page="solucoes"] main > section:nth-of-type(2)::before,
  body[data-page="sinistros"] main > section:nth-of-type(2)::before,
  body[data-page="blog"] main > section:nth-of-type(2)::before,
  body[data-page="artigo"] main > article::before,
  body[data-page="seguro-detalhe"] main > section:nth-of-type(2)::before,
  body[data-page="solucao-detalhe"] main > article::before{
    height:94px;
    background:
      linear-gradient(
        180deg,
        #19130c 0,
        #8d7044 1px,
        #e4d5bb 28px,
        rgba(243,236,223,.72) 55px,
        rgba(247,242,233,0) 94px
      );
  }
}
