/* ==========================================================================
   3. Sobre (Design System: foto + overlay noite; texto à esquerda, árvore livre à direita)
   Celular: foto no topo esfumando para o azul-noite, texto abaixo.
   Desktop: foto em tela cheia com overlay noite lateral.
   ========================================================================== */

.nes-sobre {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 0;
  background: var(--nes-night-950);
  color: var(--nes-cream-100);
}

/* --- Foto --- */
.nes-sobre__media {
  position: relative;
  height: clamp(300px, 92vw, 460px);
}

.nes-sobre__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 40%;
}

/* esfuma a base da foto no azul-noite, onde o texto começa */
.nes-sobre__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 27, 51, 0) 45%, rgba(20, 27, 51, .85) 82%, var(--nes-night-950) 100%);
}

/* --- Texto --- */
.nes-sobre__inner {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--nes-space-8));
}

.nes-sobre__content {
  max-width: 600px;
}

.nes-sobre__eyebrow {
  color: var(--nes-gold-400); /* 6,47:1 sobre night — AA */
}

.nes-sobre__title {
  margin-top: var(--nes-space-3);
  color: var(--nes-cream-100);
}

.nes-sobre__text {
  margin-top: var(--nes-space-5);
}

.nes-sobre__text > * + * {
  margin-top: var(--nes-space-4);
}

.nes-sobre__text .nes-body-l {
  color: rgba(248, 240, 224, .92);
}

.nes-sobre__closing {
  font-family: var(--nes-font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: var(--nes-fs-h4);
  line-height: var(--nes-lh-h4);
  color: var(--nes-cream-100);
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .nes-sobre__media {
    height: 520px;
  }
}

/* --------------------------------------------------------------------------
   Desktop: foto em tela cheia + overlay noite lateral
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .nes-sobre {
    display: flex;
    align-items: center;
    min-height: max(640px, 88svh);
    padding-top: var(--nes-section-pad);
  }

  .nes-sobre__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: auto;
  }

  .nes-sobre__img {
    object-position: 72% 12%; /* mantém a estrela do topo da árvore */
  }

  .nes-sobre__media::after {
    background:
      linear-gradient(90deg,
        rgba(20, 27, 51, .94) 0%,
        rgba(20, 27, 51, .86) 36%,
        rgba(20, 27, 51, .4) 56%,
        rgba(20, 27, 51, 0) 72%),
      linear-gradient(0deg, rgba(20, 27, 51, .55) 0%, rgba(20, 27, 51, 0) 30%);
  }

  .nes-sobre__inner {
    width: 100%;
    margin-top: 0;
  }
}
