/* Breakpoints e preferências de movimento */
.hero-scroll,
.page-galeria .hero-scroll {
  left: 50% !important;
  bottom: 28px;
  gap: 13px;
  transform: translateX(-50%);
}

.hero-scroll b,
.page-galeria .hero-scroll b {
  margin-left: 0;
}

@media (max-width: 900px) {
  .home-evolution-preview {
    min-height: auto;
    padding: 78px 24px 90px;
    grid-template-columns: 0.8fr 1fr 1fr;
    gap: 18px;
  }

  .evolution-preview-copy h2 {
    font-size: clamp(46px, 7.2vw, 64px);
  }

  .evolution-preview-link {
    width: 100%;
    margin-top: 220px;
  }

  .evolution-preview-photo {
    height: 470px;
  }

  .evolution-preview-finish {
    margin-top: 76px;
  }

  .home-archive {
    min-height: auto;
    padding: 82px 24px 90px;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .home-archive-copy {
    position: relative;
    top: auto;
    grid-column: 1 / -1;
    padding: 0 0 34px;
  }

  .home-archive-copy h2 {
    max-width: 620px;
    font-size: clamp(52px, 9vw, 72px);
  }

  .home-archive-copy h2 br {
    display: none;
  }

  .archive-link {
    margin-top: 38px;
  }

  .archive-photo-main {
    height: 720px;
  }

  .archive-photo-square {
    height: 345px;
  }

  .archive-photo-gateway {
    height: 480px;
  }

  .home-archive-fern {
    width: 210px;
    opacity: 0.18;
  }

  .header nav {
    position: fixed;
    inset: 0;
    background: var(--night);
    flex-direction: column;
    justify-content: center;
    padding: 12vw;
    transform: translateY(-110%);
    transition: 0.4s;
  }
  .header nav.open {
    transform: none;
  }
  .header nav a {
    font:
      32px Georgia,
      serif;
    text-transform: none;
  }
  .menu {
    display: block;
    margin-left: auto;
    z-index: 2;
    border: 0;
    background: none;
    color: #fff;
    font-size: 28px;
  }
  .status {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-contact {
    grid-column: 1/-1;
  }

  .page-projeto .model-showcase {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding-top: 0;
  }

  .page-projeto .model-main img {
    height: 620px;
  }

  .page-projeto .render-cards {
    grid-template-columns: 1fr;
  }

  .page-projeto .render-tall,
  .page-projeto .render-wide {
    height: 480px;
  }

  .page-projeto .mini-facts {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 650px) {
  .home-legacy-cta {
    min-height: 500px;
    padding: 125px 22px 60px;
  }

  .home-legacy-cta h2 {
    font-size: clamp(45px, 13vw, 62px);
  }

  .home-legacy-flower {
    left: -55px;
  }

  .home-legacy-tree {
    bottom: -225px;
    width: 330px;
  }

  .home-legacy-branch {
    right: -85px;
  }

  .home-evolution-preview {
    display: block;
    padding: 70px 20px 82px;
  }

  .evolution-preview-copy h2 {
    font-size: clamp(52px, 15vw, 70px);
  }

  .evolution-preview-copy h2 br {
    display: none;
  }

  .evolution-preview-link {
    width: 230px;
    margin: 38px 0 52px;
  }

  .evolution-preview-photo {
    height: 64vh;
    min-height: 470px;
    margin-bottom: 18px;
  }

  .evolution-preview-finish {
    margin-top: 0;
  }

  .home-archive {
    display: block;
    padding: 70px 20px 80px;
  }

  .home-archive-copy h2 {
    font-size: clamp(48px, 14vw, 66px);
    line-height: 0.98;
  }

  .archive-photo-main,
  .archive-photo-square,
  .archive-photo-gateway {
    height: 68vh;
    min-height: 480px;
    margin-bottom: 18px;
  }

  .home-archive-column {
    display: block;
  }

  .home-archive-fern {
    top: 28px;
    right: -62px;
    width: 180px;
  }

  .header {
    height: 75px;
    padding: 0 20px;
  }
  .brand {
    width: 175px;
  }
  .hero {
    min-height: 680px;
  }
  .hero-copy {
    left: 24px;
    right: 24px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero h1 em {
    margin-left: 0;
  }
  .stamp {
    width: 105px;
    height: 105px;
    right: 20px;
    bottom: 30px;
  }
  .stamp b {
    font-size: 36px;
  }
  .section {
    padding: 90px 24px;
    min-height: auto;
  }
  .section h2 {
    font-size: 42px;
  }
  .section .copy > p {
    margin: 28px 0 0;
  }
  .facts article {
    height: 145px;
  }
  .facts b {
    font-size: 34px;
  }
  .arch {
    height: 480px;
  }
  .feature-list,
  .cards,
  .principles {
    grid-template-columns: 1fr;
  }
  .principles article {
    padding: 28px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .gallery {
    padding: 40px 15px 70px;
    display: flex;
    flex-direction: column;
  }
  .gallery button {
    height: 390px;
  }
  .closing {
    height: 500px;
    padding: 24px;
  }
  .engraving.tree {
    left: -80px;
    width: 180px;
  }
  .engraving.mountains {
    right: -25%;
    width: 110%;
  }
  footer {
    grid-template-columns: 1fr;
    padding: 65px 25px 28px;
  }
  .footer-contact {
    grid-column: 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .chat {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > img {
    animation: heroBreath 18s ease-in-out infinite alternate;
  }

  .decorative.botanical {
    animation: botanicalDrift 8s ease-in-out infinite alternate;
  }

  .reveal {
    transition-delay: var(--reveal-delay, 0ms);
  }

  @keyframes heroBreath {
    to {
      transform: scale(1.012);
    }
  }
}

@media (max-width: 900px) {
  .brand,
  .brand img {
    width: 180px;
  }

  .section .copy > p {
    margin-left: 0;
  }

  .cards,
  .gallery,
  .principles {
    width: min(100% - 40px, 1280px);
  }
}

@media (max-width: 650px) {
  .brand,
  .brand img {
    width: 150px;
    height: 58px;
  }

  .hero-copy {
    width: auto;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 66px);
  }

  .section h2 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .decorative.botanical {
    width: 165px;
    opacity: 0.15;
  }

  .footer-logo {
    width: 210px;
    height: 90px;
  }

  .chat {
    right: 14px;
    bottom: 14px;
  }

  .chat-panel {
    width: calc(100vw - 28px);
    height: min(620px, calc(100vh - 28px));
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(54px, 9vw, 78px);
  }

  .section h2,
  .split h2 {
    font-size: clamp(44px, 7.5vw, 62px);
  }

  footer {
    grid-template-columns: 1fr 0.7fr;
    column-gap: 60px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .hero h1 {
    font-size: clamp(45px, 13vw, 58px);
  }

  .section h2,
  .split h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .hero-copy > p:last-child,
  .section .copy > p {
    font-size: 16px;
  }

  footer {
    min-height: 0;
    padding: 48px 24px 24px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-contact {
    grid-column: 1;
  }

  .chat-panel {
    width: calc(100vw - 28px);
    height: min(520px, calc(100vh - 28px));
  }

  .chat-identity > span {
    display: none;
  }
}

@media (max-width: 900px) {
  .home-page .hero-copy {
    width: calc(100% - 64px);
  }

  .home-page .hero h1 {
    max-width: 780px;
    font-size: clamp(62px, 10vw, 88px);
  }

  .hero-botanical {
    right: -75px;
    width: 330px;
    opacity: 0.2;
  }
}

@media (max-width: 650px) {
  .home-page .hero-copy {
    top: 49%;
    width: calc(100% - 48px);
  }

  .home-page .hero h1 {
    margin: 18px 0 20px;
    font-size: clamp(49px, 14vw, 64px);
    letter-spacing: -0.035em;
  }

  .home-page .hero-copy > p:last-of-type {
    max-width: 92%;
    font-size: 15px;
  }

  .hero-cta {
    width: 205px;
    height: 48px;
    margin-top: 22px;
  }

  .hero-botanical {
    right: -105px;
    bottom: -80px;
    width: 270px;
    height: 62%;
    opacity: 0.16;
  }

  .chat-launch {
    width: 176px;
    height: 58px;
  }

  .chat-launch span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-botanical {
    animation: none;
  }
}

@media (max-width: 900px) {
  footer {
    min-height: auto;
    padding: 65px 40px 28px;
    grid-template-columns: 1fr 0.7fr;
    column-gap: 55px;
    row-gap: 48px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .home-intro {
    min-height: 720px;
    padding: 104px 7vw 80px 10vw;
  }

  .home-page .project-link {
    margin-top: 32px;
  }

  .home-intro > .home-intro-side {
    display: none;
  }

  .home-intro h2 {
    max-width: 720px;
    font-size: clamp(56px, 8.5vw, 72px);
  }

  .home-intro > .home-intro-text {
    left: 34%;
    bottom: 88px;
    width: 54vw;
    font-size: 17px;
  }

  .home-intro > .home-intro-branch {
    left: -60px;
    width: 250px;
  }

  .home-intro > .home-intro-mountains {
    right: 0;
    width: 65%;
  }

  .home-intro > .home-intro-flower {
    right: -70px;
    opacity: 0.22;
  }
}

@media (max-width: 650px) {
  footer {
    padding: 52px 24px 24px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-contact {
    grid-column: 1;
  }

  .footer-logo {
    width: 205px;
    height: 84px;
  }

  .home-intro {
    min-height: 700px;
    padding: 94px 24px 205px;
  }

  .home-intro .copy > .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
  }

  .home-intro h2 {
    max-width: 100%;
    font-size: clamp(44px, 12.6vw, 58px);
    line-height: 1.02;
  }

  .home-intro > .home-intro-text {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 4;
    width: 100%;
    margin-top: 32px;
    font-size: 16px;
    line-height: 1.6;
  }

  .home-intro > .home-intro-branch {
    top: 25px;
    left: -72px;
    width: 205px;
    height: 130px;
  }

  .home-intro > .home-intro-mountains {
    right: -18%;
    bottom: -10px;
    width: 112%;
    opacity: 0.16;
  }

  .home-intro > .home-intro-flower {
    right: -58px;
    bottom: -110px;
    width: 135px;
    height: 330px;
    opacity: 0.2;
  }
}

@media (max-width: 650px) {
  .page-projeto .opening-branch {
    width: 200px;
    left: -65px;
    top: 18px;
  }

  .page-projeto .model-flower {
    width: 135px;
    right: -18px;
    top: 22px;
  }

  .page-projeto .model-main img,
  .page-projeto .render-tall,
  .page-projeto .render-wide {
    height: auto;
    min-height: 340px;
  }

  .page-projeto .mini-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .page-projeto .mini-facts article {
    padding-top: 14px;
  }

  .page-projeto .model-main span,
  .page-projeto .render-card span {
    left: 0;
    right: 0;
  }

  .page-projeto .render-gallery-copy h2 br,
  .page-projeto .model-copy h2 br {
    display: none;
  }

  .page-projeto .infra-text {
    margin-top: 22px;
  }
}

/* Proteções responsivas gerais */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

*,
*::before,
*::after {
  min-width: 0;
}

img,
video,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
a,
span {
  overflow-wrap: break-word;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .header { padding-inline: 3vw; }
  .brand,
  .brand img { width: 185px; }
  .header nav { gap: clamp(18px, 2.2vw, 34px); }
  .header nav a { font-size: 10px; }
  .hero-copy { right: 5vw; left: 5vw; width: auto; }
  .home-evolution-preview,
  .home-archive {
    grid-template-columns: .78fr 1fr 1fr;
    gap: 20px;
    padding-inline: 3vw;
  }
  .page-projeto .project-opening {
    grid-template-columns: 1.1fr .9fr;
    gap: 4vw;
    padding-inline: 6vw;
  }
  .evo-timeline { padding-inline: 20px; }
  .evo-stage {
    grid-template-columns: 54px minmax(0, 1.18fr) minmax(250px, .82fr);
    gap: 22px;
  }
  .evo-intro {
    grid-template-columns: 1.2fr .8fr;
    gap: 5vw;
    padding-right: 6vw;
    padding-left: 13vw;
  }
  footer {
    padding-inline: 5vw;
    grid-template-columns: minmax(260px, 1fr) minmax(120px, .45fr) minmax(270px, .9fr);
    column-gap: 5vw;
  }
}

@media (max-width: 900px) {
  body.menu-open { overflow: hidden; }
  .header nav {
    overflow-y: auto;
    padding: max(90px, 12vh) 10vw 48px;
  }
  .hero,
  .legacy-hero,
  .legacy-landscape {
    height: auto;
    min-height: max(640px, 100svh);
  }
  .full-photo,
  .closing {
    min-height: 560px;
    height: auto;
  }
  .footer-bottom {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    line-height: 1.6;
  }
}

@media (max-width: 650px) {
  .hero-copy,
  .home-page .hero-copy,
  .legacy-hero-copy {
    right: 20px;
    left: 20px;
    width: auto;
  }
  .hero-copy h1,
  .legacy-hero-copy h1 { max-width: 100%; }
  .hero-scroll,
  .page-galeria .hero-scroll {
    bottom: 18px;
    width: max-content;
    max-width: calc(100% - 40px);
    text-align: center;
  }
  .facts { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-bottom { width: 100%; }
  .footer-contact a,
  .footer-contact span { overflow-wrap: anywhere; }
  .chat {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .chat-panel {
    width: 100%;
    max-width: 100%;
    max-height: calc(100svh - 20px);
  }
}

@media (max-width: 420px) {
  .header { height: 68px; padding-inline: 16px; }
  .brand,
  .brand img { width: 132px; height: 52px; }
  .hero,
  .legacy-hero { min-height: max(600px, 100svh); }
  .hero-copy,
  .home-page .hero-copy,
  .legacy-hero-copy { right: 18px; left: 18px; }
  .hero h1,
  .home-page .hero h1,
  .legacy-hero-copy h1 { font-size: clamp(40px, 12.5vw, 52px); }
  .section,
  .home-intro,
  .evo-intro,
  .legacy-success,
  .legacy-thanks,
  .legacy-final { padding-right: 18px; padding-left: 18px; }
  .section h2,
  .split h2,
  .legacy-success-copy h2,
  .legacy-thanks h2,
  .legacy-final h2 { font-size: clamp(36px, 11.5vw, 48px); }
  footer { padding: 44px 18px 22px; }
  .footer-logo { width: 185px; }
  .chat-launch { width: 158px; height: 52px; padding-left: 16px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero,
  .legacy-hero { min-height: 560px; }
  .hero-copy,
  .home-page .hero-copy,
  .legacy-hero-copy { top: 46%; }
  .header nav { justify-content: flex-start; }
  .chat-panel { height: calc(100svh - 20px); }
}

@media (min-width: 1800px) {
  .header,
  footer {
    padding-right: max(7vw, calc((100vw - 1680px) / 2));
    padding-left: max(7vw, calc((100vw - 1680px) / 2));
  }
}

/* Acesso circular do assistente e leitura do rodapé */
.chat .chat-launch {
  position: relative;
  width: 74px;
  height: 74px;
  min-width: 74px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 12px 30px rgba(5, 25, 13, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}

.chat .chat-launch > img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: contain;
}

.chat .chat-launch::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border: 2px solid #0c2414;
  border-radius: 50%;
  background: #d5d49a;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
}

.chat .chat-launch:hover {
  border: 0;
  background: transparent;
  box-shadow: 0 16px 36px rgba(5, 25, 13, .34);
  transform: translateY(-2px) scale(1.03) !important;
}

.footer-bottom,
.footer-bottom a {
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 650px) {
  .chat .chat-launch {
    width: 66px;
    height: 66px;
    min-width: 66px;
  }

  .chat .chat-launch::after {
    width: 12px;
    height: 12px;
  }

  .footer-bottom,
  .footer-bottom a {
    font-size: 11px;
  }
}

/* Mantém os textos do assistente legíveis também no celular */
.chat .chat-identity > span {
  display: inline-block;
  font-size: 10px;
}

.chat .chat-messages p { font-size: 15px; }
.chat .chat-quick button { font-size: 11px; }
.chat .chat-form label { font-size: 9px; }
.chat .chat-form input { font-size: 15px; }

.chat .chat-quick-wrap {
  position: relative;
  overflow: hidden;
  background: #f5f1df;
}

.chat .chat-quick {
  padding-right: 52px;
  scroll-behavior: smooth;
}

.chat .chat-quick-next {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #17381f;
  color: #fff;
  box-shadow: -8px 0 18px #f5f1df;
  font: 25px/1 Arial, sans-serif;
  transform: translateY(-50%);
  cursor: pointer;
}

.chat .chat-quick-next:hover {
  background: #234b2c;
}

@media (max-width: 420px) {
  .chat .chat-identity > span { font-size: 9px; }
  .chat .chat-messages p { font-size: 14px; }
  .chat .chat-quick button { font-size: 10px; }
  .chat .chat-form label { font-size: 8px; }
}
