:root {
  --bg: #1a120f;
  --bg-soft: #241813;
  --surface: #2c1e18;
  --surface-warm: #e7d7c4;
  --surface-warm-2: #d9c3aa;
  --surface-moss: #59614d;
  --surface-moss-deep: #43483a;
  --terracotta: #a85f49;
  --terracotta-soft: #c98d76;
  --beige: #c9a66b;
  --oat: #f3e9dd;
  --oat-deep: #d8c5ae;
  --moss: #59614d;
  --text: #f5ede2;
  --text-dark: #2a1d18;
  --muted: #c7b8a5;
  --muted-dark: #655148;
  --line: rgba(243, 233, 221, .16);
  --line-dark: rgba(42, 29, 24, .12);
  --line-hover: rgba(201, 166, 107, .42);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(42% 26% at 50% 0%, rgba(168, 95, 73, .12), transparent 75%),
    radial-gradient(28% 18% at 86% 18%, rgba(89, 97, 77, .10), transparent 72%),
    linear-gradient(180deg, #231712 0%, var(--bg) 26%, #201511 100%);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--oat);
  color: #17100d;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(100% - 28px, 760px);
  margin-inline: auto;
  padding: 0 0 72px;
}

/* HERO — preenchendo a tela toda */
.hero {
  position: relative;
  width: 100vw;
  min-height: 100svh;
  margin: 0 0 18px;
  margin-left: calc(50% - 50vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 12, 10, .24) 0%, rgba(18,12,10,.06) 24%, rgba(18,12,10,.14) 54%, rgba(18,12,10,.78) 100%),
    radial-gradient(circle at 50% 8%, rgba(243,233,221,.10), transparent 28%),
    linear-gradient(90deg, rgba(20,13,10,.40) 0%, rgba(20,13,10,0) 18%, rgba(20,13,10,0) 82%, rgba(20,13,10,.40) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26,18,15,0), rgba(26,18,15,.86));
  pointer-events: none;
}
.hero__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}
.hero__portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.95) contrast(1.03) brightness(.93);
}
.hero__identity {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 10px;
  background: transparent;
  border: 0;
}
.hero__ticker {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 14px;
  overflow: visible;
}
.hero__ticker-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.hero__ticker-item {
  color: var(--beige);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__ticker-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: rgba(201, 166, 107, .72);
  font-size: 10px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: .9;
}
.brand > span {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(54px, 8vw, 88px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.055em;
  text-shadow: 0 14px 32px rgba(0,0,0,.24);
}
.brand em {
  margin-top: 12px;
  color: var(--terracotta-soft);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.hero__role {
  margin: 16px 0 0;
  color: rgba(243,233,221,.84);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243,233,221,.20);
  border-radius: 12px;
  background: rgba(24,16,13,.18);
  backdrop-filter: blur(6px);
  transition: transform .28s var(--ease), border-color .28s ease, background-color .28s ease;
}
.social-link img { width: 17px; height: 17px; filter: brightness(0) invert(1); opacity: .92; }
.social-link:hover { transform: translateY(-2px); border-color: var(--line-hover); background: rgba(201, 166, 107, .10); }

/* VÍDEO DA ÁRVORE — LOOP NO DESKTOP E SCRUB NO MOBILE */
.tree-story {
  position: relative;
  width: 100vw;
  margin-top: 18px;
  margin-left: calc(50% - 50vw);
  isolation: isolate;
}
.tree-story__sticky {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100dvh;
  margin-bottom: -100dvh;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: #17110e;
  transition: opacity .45s var(--ease);
  contain: paint;
}
.tree-story.is-video-ready .tree-story__sticky { opacity: 1; }
.tree-story__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: .86;
  transform: translateZ(0) scale(1.006);
  backface-visibility: hidden;
  will-change: transform;
}
.tree-story__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,18,15,.92) 0%, rgba(26,18,15,.22) 14%, rgba(26,18,15,.08) 48%, rgba(26,18,15,.28) 86%, rgba(26,18,15,.94) 100%),
    radial-gradient(ellipse at center, transparent 22%, rgba(26,18,15,.10) 64%, rgba(26,18,15,.48) 100%);
}
.tree-story__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: -100dvh auto 0;
  padding: 10dvh 8px 14dvh;
}

/* ATENDIMENTOS — grid de cards */
.services-grid {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* Layout lado a lado em todos os tamanhos de tela.
   grid-template-rows: 1fr sobre um único row implícito faz a altura do card
   ser definida pelo conteúdo (texto), e a foto estica para acompanhar essa
   altura via height:100% — sem aspect-ratio fixo, então nunca sobra vão
   vazio nem a foto fica espremida numa tirinha. */
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 58% 42%;
  grid-template-rows: 1fr;
  width: min(560px, calc(100vw - 24px));
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(243, 233, 221, .24);
  border-radius: 20px;
  background: rgba(238, 225, 208, .97);
  box-shadow: 0 18px 40px -30px rgba(10, 7, 5, .55);
  transition: transform .38s var(--ease), border-color .38s ease, box-shadow .38s ease;
}
.service-card--reverse { grid-template-columns: 42% 58%; }
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 166, 107, .50);
  box-shadow: 0 24px 48px -30px rgba(10, 7, 5, .62);
}

.service-card__media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.service-card--reverse .service-card__media { grid-column: 1; }
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(238,225,208,.82) 0%, rgba(238,225,208,0) 38%);
  pointer-events: none;
}
.service-card--reverse .service-card__media::after {
  background: linear-gradient(90deg, rgba(238,225,208,0) 62%, rgba(238,225,208,.82) 100%);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(.94) contrast(1.02) brightness(.94);
  transition: transform .72s var(--ease), filter .72s ease;
}
.service-card:nth-child(2) .service-card__media img { object-position: 50% 14%; }
.service-card:nth-child(3) .service-card__media img { object-position: 50% 12%; }
.service-card:nth-child(4) .service-card__media img { object-position: 50% 16%; }
.service-card:nth-child(5) .service-card__media img { object-position: 50% 10%; }
.service-card:nth-child(6) .service-card__media img { object-position: 50% 14%; }
.service-card:hover .service-card__media img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.02) brightness(.98);
}

.service-card__content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 18px 16px 18px 18px;
  background: linear-gradient(90deg, rgba(238,225,208,.98) 0%, rgba(238,225,208,.94) 82%, rgba(238,225,208,.72) 100%);
}
.service-card--reverse .service-card__content {
  grid-column: 2;
  padding: 18px 18px 18px 16px;
  background: linear-gradient(90deg, rgba(238,225,208,.72) 0%, rgba(238,225,208,.94) 18%, rgba(238,225,208,.98) 100%);
}

.service-card h3 {
  margin: 0;
  max-width: 100%;
  color: var(--text-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(19px, 5.4vw, 25px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.service-card p {
  margin: 8px 0 0;
  max-width: 100%;
  color: rgba(42, 29, 24, .70);
  font-size: clamp(11.5px, 2.9vw, 14px);
  font-weight: 400;
  line-height: 1.36;
}

/* CTA discreto, tipo link — não é um botão grande */
.service-card__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(168, 95, 73, .38);
  color: var(--terracotta);
  font-size: clamp(10.5px, 2.6vw, 13px);
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: gap .25s var(--ease), color .25s ease, border-color .25s ease;
}
.service-card__cta svg { width: 12px; height: 12px; flex: none; transition: transform .25s var(--ease); }
.service-card__cta:hover { gap: 10px; color: var(--terracotta-soft); border-color: rgba(201, 166, 107, .6); }
.service-card__cta:hover svg { transform: translateX(2px); }
.service-card__cta:focus-visible { outline: 2px solid var(--beige); outline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(15px); transition: opacity .68s var(--ease), transform .68s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.social-link:focus-visible,
.service-card:focus-visible {
  outline: 2px solid var(--beige);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .page-shell { width: min(100% - 24px, 760px); padding-bottom: 48px; }
  .hero { min-height: 100svh; padding: 22px 18px 30px; }
  .hero__identity { max-width: 430px; }
  .brand > span { font-size: clamp(44px, 10vw, 64px); }

  .tree-story__video {
    object-position: 50% 50%;
    opacity: .9;
  }
  .tree-story__veil {
    background:
      linear-gradient(180deg, rgba(26,18,15,.92) 0%, rgba(26,18,15,.18) 16%, rgba(26,18,15,.06) 46%, rgba(26,18,15,.20) 82%, rgba(26,18,15,.92) 100%),
      radial-gradient(ellipse at center, transparent 24%, rgba(26,18,15,.10) 68%, rgba(26,18,15,.36) 100%);
  }
}

@media (max-width: 520px) {
  .page-shell { width: min(100% - 20px, 760px); }
  .hero { padding: 18px 14px 28px; }
  .hero__ticker-item { font-size: 8px; letter-spacing: .16em; }
  .hero__ticker-separator { width: 18px; font-size: 9px; }
  .brand > span { font-size: 42px; }
  .brand em { font-size: 10px; letter-spacing: .28em; }
  .hero__role { font-size: 10.5px; }
  .social-link { width: 38px; height: 38px; border-radius: 10px; }
  .tree-story__content { padding-inline: 8px; }
}

@media (max-width: 370px) {
  .brand > span { font-size: 36px; }
}

/* A partir daqui há espaço horizontal de sobra: cards maiores e mais respiro. */
@media (min-width: 701px) {
  .tree-story__content { padding: 12dvh 16px 18dvh; }
  .services-grid { gap: 34px; }

  .service-card {
    grid-template-columns: 55% 45%;
    width: min(720px, calc(100vw - 84px));
    min-height: 280px;
    border-radius: 26px;
  }
  .service-card--reverse { grid-template-columns: 45% 55%; }

  .service-card__content,
  .service-card--reverse .service-card__content {
    padding: 30px 34px;
  }

  .service-card h3 { font-size: clamp(27px, 2.6vw, 38px); line-height: .98; }
  .service-card p { margin-top: 12px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.4; max-width: 400px; }
  .service-card__cta { margin-top: 20px; font-size: 14px; }
  .service-card__cta svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tree-story__sticky { opacity: 1; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* VÍDEO HQ COM SCRUB — ajuste isolado, sem alterar cards ou restante do layout */
.tree-story__sticky {
  height: 100svh;
  height: 100dvh;
  background: #14100d;
  contain: layout paint;
}

.tree-story__video {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: auto;
  filter: saturate(1.025) contrast(1.025) brightness(1.01);
  image-rendering: auto;
}

.tree-story__veil {
  background:
    linear-gradient(180deg,
      rgba(26,18,15,.72) 0%,
      rgba(26,18,15,.08) 14%,
      rgba(26,18,15,.015) 48%,
      rgba(26,18,15,.10) 86%,
      rgba(26,18,15,.76) 100%),
    radial-gradient(ellipse at center,
      transparent 44%,
      rgba(26,18,15,.025) 76%,
      rgba(26,18,15,.18) 100%);
}

@media (max-width: 700px) {
  .tree-story__video {
    object-position: 50% 50%;
    filter: saturate(1.02) contrast(1.02) brightness(1.015);
  }

  .tree-story__veil {
    background:
      linear-gradient(180deg,
        rgba(26,18,15,.68) 0%,
        rgba(26,18,15,.06) 16%,
        rgba(26,18,15,.01) 48%,
        rgba(26,18,15,.08) 84%,
        rgba(26,18,15,.72) 100%),
      radial-gradient(ellipse at center,
        transparent 48%,
        rgba(26,18,15,.02) 78%,
        rgba(26,18,15,.14) 100%);
  }
}

/* OTIMIZAÇÃO FINAL — cards estáticos e rolagem mobile mais curta */
@media (min-width: 901px) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.service-card,
.service-card__media img,
.service-card__cta,
.service-card__cta svg {
  transition: none;
}

.service-card:hover {
  transform: none;
  border-color: rgba(243, 233, 221, .24);
  box-shadow: 0 18px 40px -30px rgba(10, 7, 5, .55);
}

.service-card:hover .service-card__media img {
  transform: none;
  filter: saturate(.94) contrast(1.02) brightness(.94);
}

.service-card__cta:hover {
  gap: 6px;
}

.service-card__cta:hover svg {
  transform: none;
}

/* Animação original restaurada somente no mobile/tablet. */
@media (max-width: 900px) {
  .reveal {
    opacity: 0;
    transform: translateY(15px);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero.reveal,
  .service-card.reveal {
    transition: opacity .68s var(--ease), transform .68s var(--ease);
  }
}

@media (max-width: 700px) {
  .tree-story {
    margin-top: 8px;
  }

  .tree-story__content {
    padding: 4dvh 6px 6dvh;
  }

  .services-grid {
    gap: 12px;
  }

  .service-card {
    width: min(540px, calc(100vw - 18px));
    border-radius: 15px;
    box-shadow: 0 12px 28px -24px rgba(10, 7, 5, .48);
  }

  .service-card__content,
  .service-card--reverse .service-card__content {
    padding: 12px 11px 12px 13px;
  }

  .service-card--reverse .service-card__content {
    padding-left: 11px;
    padding-right: 13px;
  }

  .service-card h3 {
    font-size: clamp(17px, 4.9vw, 21px);
    line-height: 1;
  }

  .service-card p {
    margin-top: 6px;
    font-size: clamp(10.5px, 2.75vw, 12.5px);
    line-height: 1.28;
  }

  .service-card__cta {
    margin-top: 8px;
    font-size: clamp(10px, 2.5vw, 12px);
  }
}

/* DESKTOP 50/50 — vídeo em uma metade e projeto na outra */
@media (min-width: 901px) {
  .tree-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    min-height: 100dvh;
    margin-top: 0;
    background: #1b120f;
  }

  .tree-story__sticky {
    grid-column: 1;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100dvh;
    margin: 0;
    z-index: 1;
    border-right: 1px solid rgba(243, 233, 221, .12);
  }

  .tree-story__video {
    object-position: center center;
  }

  .tree-story__veil {
    background:
      linear-gradient(90deg, rgba(26,18,15,.06) 0%, rgba(26,18,15,.02) 68%, rgba(26,18,15,.28) 100%),
      linear-gradient(180deg, rgba(26,18,15,.16) 0%, transparent 22%, transparent 74%, rgba(26,18,15,.34) 100%);
  }

  .tree-story__content {
    grid-column: 2;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    padding: clamp(24px, 3vw, 48px);
    background:
      radial-gradient(circle at 100% 0%, rgba(168,95,73,.10), transparent 32%),
      linear-gradient(180deg, #241813 0%, #1a120f 100%);
  }

  .services-grid {
    width: 100%;
    max-width: 700px;
    gap: 18px;
  }

  .service-card,
  .service-card--reverse {
    width: 100%;
    min-height: 220px;
    grid-template-columns: 54% 46%;
    border-radius: 20px;
  }

  .service-card--reverse {
    grid-template-columns: 46% 54%;
  }

  .service-card__content,
  .service-card--reverse .service-card__content {
    padding: clamp(20px, 2vw, 30px);
  }

  .service-card h3 {
    font-size: clamp(24px, 2vw, 32px);
  }

  .service-card p {
    margin-top: 9px;
    font-size: clamp(13px, .95vw, 15px);
    line-height: 1.35;
  }

  .service-card__cta {
    margin-top: 14px;
    font-size: 13px;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .tree-story__content {
    padding: 22px;
  }

  .services-grid {
    gap: 14px;
  }

  .service-card,
  .service-card--reverse {
    min-height: 198px;
  }

  .service-card__content,
  .service-card--reverse .service-card__content {
    padding: 18px;
  }

  .service-card h3 {
    font-size: 23px;
  }

  .service-card p {
    font-size: 12.5px;
  }
}


/* DESKTOP FINAL — imagem fixa ao fundo e cards sobrepostos.
   O mobile/tablet permanece com o comportamento anterior do vídeo. */
.tree-story__desktop-image {
  display: none;
}

@media (min-width: 901px) {
  .tree-story {
    display: block;
    min-height: 100dvh;
    margin-top: 0;
    background: #17110e;
  }

  .tree-story__sticky {
    grid-column: auto;
    position: sticky;
    top: 0;
    z-index: 0;
    width: 100%;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    border: 0;
    opacity: 1;
    background: #17110e;
    contain: layout paint;
  }

  .tree-story__desktop-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.03) contrast(1.02) brightness(.94);
  }

  .tree-story__video {
    display: none !important;
  }

  .tree-story__veil {
    background:
      linear-gradient(180deg,
        rgba(16, 13, 8, .30) 0%,
        rgba(16, 13, 8, .10) 22%,
        rgba(16, 13, 8, .08) 66%,
        rgba(16, 13, 8, .38) 100%),
      radial-gradient(ellipse at center,
        rgba(17, 13, 8, .02) 24%,
        rgba(17, 13, 8, .16) 72%,
        rgba(17, 13, 8, .42) 100%);
  }

  .tree-story__content {
    grid-column: auto;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    min-height: 100dvh;
    margin: -100dvh auto 0;
    padding: clamp(52px, 7vh, 82px) clamp(28px, 4vw, 64px);
    background: transparent;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    gap: 16px 18px;
  }

  .service-card,
  .service-card--reverse {
    width: 100%;
    min-height: 198px;
    grid-template-columns: 53% 47%;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, .34);
    background: rgba(238, 225, 208, .965);
    box-shadow: 0 18px 42px -25px rgba(7, 5, 3, .72);
  }

  .service-card--reverse {
    grid-template-columns: 47% 53%;
  }

  .service-card__content,
  .service-card--reverse .service-card__content {
    padding: clamp(17px, 1.7vw, 24px);
  }

  .service-card h3 {
    font-size: clamp(21px, 1.8vw, 29px);
    line-height: 1;
  }

  .service-card p {
    margin-top: 8px;
    max-width: 330px;
    font-size: clamp(12px, .9vw, 14px);
    line-height: 1.32;
  }

  .service-card__cta {
    margin-top: 12px;
    font-size: clamp(11.5px, .85vw, 13px);
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .tree-story__content {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .services-grid {
    gap: 12px 16px;
  }

  .service-card,
  .service-card--reverse {
    min-height: 184px;
  }

  .service-card__content,
  .service-card--reverse .service-card__content {
    padding: 16px 18px;
  }

  .service-card h3 {
    font-size: clamp(20px, 1.65vw, 26px);
  }

  .service-card p {
    margin-top: 6px;
    font-size: clamp(11.5px, .82vw, 13px);
  }

  .service-card__cta {
    margin-top: 9px;
    font-size: 11.5px;
  }
}

/* CORREÇÃO DESKTOP — remove a faixa vazia abaixo da imagem fixa. */
@media (min-width: 901px) {
  .page-shell {
    padding-bottom: 0;
  }

  .tree-story {
    margin-bottom: 0;
  }
}


/* AJUSTE FINAL — cards mais curtos no mobile para mostrar mais da árvore durante o scroll */
@media (max-width: 700px) {
  .tree-story__content {
    padding: 8dvh 8px 10dvh;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    width: min(560px, calc(100vw - 18px));
    grid-template-columns: 56% 44%;
    border-radius: 18px;
  }

  .service-card--reverse {
    grid-template-columns: 44% 56%;
  }

  .service-card__content {
    padding: 14px 12px 14px 14px;
  }

  .service-card--reverse .service-card__content {
    padding: 14px 14px 14px 12px;
  }

  .service-card h3 {
    font-size: clamp(17px, 4.6vw, 21px);
    line-height: 1.01;
  }

  .service-card p {
    margin-top: 6px;
    font-size: clamp(10.4px, 2.6vw, 12.2px);
    line-height: 1.24;
  }

  .service-card__cta {
    margin-top: 8px;
    font-size: clamp(9.8px, 2.35vw, 11.8px);
  }
}

@media (max-width: 420px) {
  .service-card {
    grid-template-columns: 57% 43%;
  }

  .service-card--reverse {
    grid-template-columns: 43% 57%;
  }

  .service-card__content {
    padding: 12px 10px 12px 12px;
  }

  .service-card--reverse .service-card__content {
    padding: 12px 12px 12px 10px;
  }

  .service-card h3 {
    font-size: clamp(16px, 4.9vw, 19px);
  }

  .service-card p {
    font-size: clamp(9.8px, 2.9vw, 11.6px);
    line-height: 1.2;
  }

  .service-card__cta {
    font-size: clamp(9.4px, 2.6vw, 11px);
  }
}


/* ÍCONE FLUTUANTE DO WHATSAPP */
.floating-whatsapp {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 2vw, 26px));
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  transition: transform .22s var(--ease), filter .22s ease;
  will-change: transform;
}

.floating-whatsapp img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .26));
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-whatsapp:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .floating-whatsapp {
    width: 42px;
    height: 42px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  }
}
