/* Página Legado — narrativa editorial de encerramento */
.page-legado { background: var(--cream); }

.legacy-hero {
  height: 100svh;
  min-height: 720px;
  background: #0b2b18;
  isolation: isolate;
}

.legacy-hero-copy {
  position: absolute;
  z-index: 4;
  top: 45%;
  right: 5vw;
  left: 5vw;
  text-align: center;
}

.legacy-hero-copy .eyebrow { margin: 0 6vw 28px 0; color: var(--paper); text-align: right; }
.legacy-hero-copy h1 { margin: 0; color: #fff; font: 400 clamp(62px, 5.25vw, 84px)/1 Georgia, serif; letter-spacing: -.045em; }
.legacy-hero-copy h1 em { display: block; margin-top: 8px; color: var(--olive); font-size: .94em; }

@media (min-width: 1001px) {
  .legacy-hero-copy h1,
  .legacy-hero-copy h1 em { white-space: nowrap; }
}

.legacy-hero-mountains,
.legacy-hero-branch-left,
.legacy-hero-branch-right {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: grayscale(1) brightness(1.7);
  opacity: .18;
  object-fit: contain;
}
.legacy-hero-mountains { left: 4%; bottom: -65px; width: 58%; }
.legacy-hero-branch-left { left: -65px; bottom: 15px; width: 310px; transform: rotate(-5deg); }
.legacy-hero-branch-right { right: -40px; bottom: -70px; width: 300px; height: 650px; }

.legacy-success {
  position: relative;
  min-height: 750px;
  padding: 120px 8vw 80px 36%;
  overflow: hidden;
  background: var(--cream);
}
.legacy-percent {
  position: absolute;
  top: 118px;
  left: 22%;
  color: var(--olive);
  font: 400 145px/.78 Georgia, serif;
  letter-spacing: -.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.legacy-success-copy { position: relative; z-index: 3; max-width: 850px; padding-top: 85px; }
.legacy-success-copy .eyebrow { margin: 0 0 28px; color: var(--olive); }
.legacy-success-copy h2 { margin: 0; color: var(--ink); font: 400 clamp(60px, 5vw, 84px)/1.02 Georgia, serif; letter-spacing: -.045em; }
.legacy-success-copy h2 em { color: var(--olive); }
.legacy-success-copy > p:last-child { max-width: 650px; margin: 38px 0 0; color: rgba(54,63,47,.76); font: 17px/1.75 Arial, sans-serif; }
.legacy-success-flower { position: absolute; left: -45px; top: 8px; width: 195px; height: 380px; object-fit: contain; opacity: .22; filter: grayscale(1); mix-blend-mode: multiply; }

.legacy-landscape { position: relative; height: 100svh; min-height: 680px; overflow: hidden; }
.legacy-landscape > img { width: 100%; height: 100%; object-fit: cover; }
.legacy-landscape-caption { position: absolute; left: 6vw; bottom: 8%; width: 500px; padding: 38px 42px; background: #0b2b18; color: #fff; }
.legacy-landscape-caption small { color: var(--paper); font: 700 8px/1 Arial,sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.legacy-landscape-caption p { margin: 14px 0 0; font: 25px/1.35 Georgia,serif; }

.legacy-thanks {
  min-height: 690px;
  padding: 165px 8vw 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #12351d;
  color: #fff;
  text-align: center;
}
.legacy-thanks .eyebrow { margin: 0 0 42px; color: var(--paper); }
.legacy-thanks h2 { max-width: 1240px; margin: 0; font: 400 clamp(55px, 5vw, 82px)/1.03 Georgia,serif; letter-spacing: -.035em; }
.legacy-thanks h2 em { color: var(--olive); }
.legacy-thanks small { margin-top: 46px; color: rgba(231,226,185,.6); font: 8px/1 Arial,sans-serif; letter-spacing: .18em; text-transform: uppercase; }

.legacy-final {
  position: relative;
  min-height: 630px;
  padding: 105px 24px 80px;
  overflow: hidden;
  background: var(--cream);
  text-align: center;
}
.legacy-final-logo { position: relative; z-index: 3; width: 230px; height: 95px; margin: 0 auto 46px; object-fit: contain; filter: brightness(0) saturate(100%) invert(28%) sepia(14%) saturate(718%) hue-rotate(34deg) brightness(87%); }
.legacy-final h2 { position: relative; z-index: 3; margin: 0; color: var(--ink); font: 400 clamp(64px, 5.4vw, 88px)/1 Georgia,serif; letter-spacing: -.04em; }
.legacy-final h2 em { color: var(--olive); }
.legacy-final a { position: relative; z-index: 4; display: inline-flex; gap: 10px; margin-top: 48px; color: rgba(49,59,43,.72); font: 500 9px/1 Arial,sans-serif; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.legacy-final-flower,
.legacy-final-branch { position: absolute; z-index: 1; opacity: .22; filter: grayscale(1); mix-blend-mode: multiply; object-fit: contain; }
.legacy-final-flower { left: -35px; bottom: -85px; width: 235px; height: 510px; }
.legacy-final-branch { right: -20px; top: 105px; width: 350px; transform: rotate(8deg); }

@media (max-width: 900px) {
  .legacy-hero-copy { left: 8vw; }
  .legacy-success { padding-left: 38%; }
  .legacy-percent { left: 14%; font-size: 120px; }
  .legacy-success-copy h2 { font-size: clamp(54px, 7.5vw, 72px); }
  .legacy-hero-mountains { left: -5%; bottom: -12%; width: 68%; opacity: .11; }
  .legacy-hero-branch-left { left: -70px; bottom: -55px; width: 190px; opacity: .12; }
  .legacy-hero-branch-right { right: -45px; bottom: -100px; width: 165px; height: 430px; opacity: .12; }
}

@media (max-width: 650px) {
  .legacy-hero-copy { top: 39%; right: 24px; left: 24px; text-align: left; }
  .legacy-hero-copy h1 { font-size: clamp(48px, 13vw, 64px); }
  .legacy-hero-copy .eyebrow { margin-right: 0; }
  .legacy-hero-mountains { width: 105%; }
  .legacy-success { min-height: auto; padding: 95px 24px 105px; }
  .legacy-percent { position: relative; top: auto; left: auto; margin-bottom: 45px; font-size: 92px; line-height: 1; writing-mode: horizontal-tb; transform: none; }
  .legacy-success-copy { padding-top: 0; }
  .legacy-success-copy h2 { font-size: clamp(48px, 13vw, 62px); }
  .legacy-success-copy > p:last-child { font-size: 16px; }
  .legacy-landscape-caption { left: 20px; bottom: 25px; width: calc(100% - 40px); padding: 28px 25px; }
  .legacy-landscape-caption p { font-size: 21px; }
  .legacy-thanks { min-height: 620px; padding: 110px 24px 90px; }
  .legacy-thanks h2 { font-size: clamp(44px, 12vw, 58px); }
  .legacy-final { min-height: 560px; padding-top: 90px; }
  .legacy-final h2 { font-size: clamp(50px, 13vw, 66px); }
  .legacy-final-branch { right: -150px; }
}

/* Composição final aprovada da abertura */
@media (min-width: 1001px) {
  .page-legado .legacy-hero::before,
  .page-legado .legacy-hero::after {
    display: none;
  }

  .page-legado .legacy-hero::before {
    left: -10vw;
    bottom: -30vw;
    width: 48vw;
    height: 48vw;
    opacity: .62;
    box-shadow:
      12vw -2vw 0 -1px #0b2b18,
      12vw -2vw 0 0 rgba(141, 143, 74, .2),
      31vw -7vw 0 -1px #0b2b18,
      31vw -7vw 0 0 rgba(141, 143, 74, .18);
  }

  .page-legado .legacy-hero::after {
    left: 42vw;
    bottom: -25vw;
    width: 27vw;
    height: 27vw;
    opacity: .55;
  }

  .page-legado .legacy-hero-copy {
    top: 37%;
    right: 5vw;
    left: 20vw;
    text-align: center;
  }

  .page-legado .legacy-hero-copy .eyebrow {
    margin: 0 4vw 30px 0;
    text-align: right;
  }

  .page-legado .legacy-hero-copy h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(70px, 5.25vw, 84px);
    line-height: .98;
  }

  .page-legado .legacy-hero-copy h1 em {
    margin-left: 0;
    margin-top: 17px;
    font-size: .9em;
  }

  .page-legado .legacy-hero-mountains {
    z-index: 2;
    left: 0;
    bottom: -25%;
    width: 48%;
    opacity: .11;
    filter: grayscale(1) brightness(1.65);
  }

  .page-legado .legacy-hero-branch-left {
    z-index: 2;
    left: -5%;
    bottom: -13%;
    width: 18%;
    opacity: .14;
    filter: grayscale(1) brightness(1.75);
  }

  .page-legado .legacy-hero-branch-right {
    z-index: 2;
    right: -4%;
    bottom: -18%;
    width: 16%;
    height: 58%;
    opacity: .14;
    filter: grayscale(1) brightness(1.8);
  }
}

/* Nova composição botânica da abertura */
.legacy-hero-tree,
.legacy-hero-foliage-bottom,
.legacy-hero-foliage-top {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  filter: grayscale(1) brightness(1.75);
}

.legacy-hero-tree {
  left: -7%;
  bottom: -20%;
  width: 39%;
  height: 88%;
  object-position: left bottom;
  opacity: .16;
}

.legacy-hero-foliage-bottom {
  right: -5%;
  bottom: -18%;
  width: 27%;
  opacity: .17;
  transform: rotate(14deg);
}

.legacy-hero-foliage-top {
  top: 8%;
  right: -4%;
  width: 18%;
  opacity: .12;
  transform: rotate(-18deg);
}

@media (max-width: 900px) {
  .legacy-hero-tree {
    left: -18%;
    bottom: -13%;
    width: 62%;
    height: 70%;
    opacity: .13;
  }

  .legacy-hero-foliage-bottom {
    right: -13%;
    bottom: -9%;
    width: 38%;
    opacity: .13;
  }

  .legacy-hero-foliage-top {
    right: -9%;
    width: 25%;
    opacity: .1;
  }
}

@media (max-width: 650px) {
  .legacy-hero-tree {
    left: -34%;
    bottom: -8%;
    width: 88%;
    height: 58%;
    opacity: .1;
  }

  .legacy-hero-foliage-bottom {
    right: -24%;
    bottom: -5%;
    width: 58%;
    opacity: .11;
  }

  .legacy-hero-foliage-top {
    display: none;
  }
}

@media (max-width: 650px) {
  .legacy-hero-branch-left,
  .legacy-hero-branch-right {
    display: none;
  }

  .legacy-hero-mountains {
    left: -12%;
    bottom: -8%;
    width: 120%;
    opacity: .14;
  }
}
