/* =========================================================
   JURE — identidade em identidade/design-guide.md
   ========================================================= */
:root {
  --creme: #F5F1E9;
  --creme-alt: #EDE7DA;
  --superficie: #FBF9F4;
  --areia: #D8CBB6;
  --salvia: #8E9884;
  --verde-folha: #4F7A44;
  --verde-folha-esc: #416436;
  --verde-profundo: #1B2E22;
  --borda: #DDD5C4;

  /* texto secundario tingido do proprio verde, nunca cinza (contraste 6.1:1) */
  --texto-2: #4E5C50;

  --titulo: 'Yeseva One', Georgia, serif;
  --corpo: 'DM Sans', system-ui, sans-serif;

  --shell: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --secao-y: clamp(88px, 12vh, 148px);

  --ease-saida: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--corpo);
  background: var(--creme);
  color: var(--verde-profundo);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
em { font-style: normal; color: var(--verde-folha); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--verde-folha);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- tipografia ---------- */
.hero-title,
.section-title,
.lede,
.contato-title {
  font-family: var(--titulo);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
  line-height: 1.14;
  margin-bottom: clamp(40px, 6vh, 68px);
  max-width: 18ch;
}

/* ---------- botoes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease-saida),
              border-color .25s var(--ease-saida),
              color .25s var(--ease-saida),
              transform .25s var(--ease-saida);
}
.btn-primary { background: var(--verde-folha); color: var(--creme); }
.btn-primary:hover { background: var(--verde-folha-esc); transform: translateY(-2px); }

.btn-ghost {
  color: var(--areia);
  border-color: rgba(216, 203, 182, .38);
  font-weight: 500;
}
.btn-ghost:hover { border-color: var(--areia); color: var(--creme); }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  transition: background-color .4s var(--ease-saida),
              border-color .4s var(--ease-saida),
              color .4s var(--ease-saida);
  border-bottom: 1px solid transparent;
  color: var(--creme);
}
.topbar.is-solid {
  background: rgba(245, 241, 233, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--borda);
  color: var(--verde-profundo);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--titulo);
  font-size: 1.2rem;
  letter-spacing: .01em;
}
.topbar-mark { width: 26px; height: 26px; }
.topbar-mark-dark { display: none; }
.topbar.is-solid .topbar-mark-light { display: none; }
.topbar.is-solid .topbar-mark-dark { display: block; }

.topbar-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid currentColor;
  opacity: .9;
  transition: background-color .25s var(--ease-saida), color .25s var(--ease-saida), opacity .25s;
}
.topbar-cta:hover { opacity: 1; background: var(--creme); color: var(--verde-profundo); }
.topbar.is-solid .topbar-cta:hover { background: var(--verde-profundo); color: var(--creme); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--verde-profundo);
  isolation: isolate;
  padding: clamp(112px, 16svh, 168px) var(--gutter) clamp(72px, 12svh, 128px);
}

/* A folhagem respira devagar: e a unica animacao que nao depende de
   script nenhum, entao aparece mesmo com JavaScript bloqueado. */
.hero-fundo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('assets/img/floresta.webp') center / cover no-repeat;
  transform-origin: 54% 46%;
  animation: respirar-cena 34s ease-in-out infinite alternate;
}
@keyframes respirar-cena {
  from { transform: scale(1.02); }
  to   { transform: scale(1.11); }
}

/* Escurece as bordas e preserva o miolo da folhagem: o texto ganha
   contraste sem apagar a imagem. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 92% at 50% 50%,
      rgba(9, 17, 12, .30) 0%,
      rgba(9, 17, 12, .58) 55%,
      rgba(9, 17, 12, .86) 100%),
    linear-gradient(180deg,
      rgba(9, 17, 12, .60) 0%,
      rgba(9, 17, 12, .18) 34%,
      rgba(9, 17, 12, .18) 66%,
      rgba(9, 17, 12, .58) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--creme);
  max-width: 780px;
}

.hero-marca {
  width: clamp(38px, 4.4vw, 54px);
  height: auto;
  margin-bottom: clamp(24px, 3.4vh, 38px);
  opacity: .92;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: clamp(16px, 2.2vh, 24px);
  text-shadow: 0 2px 30px rgba(6, 12, 9, .5);
}
.hero-subtitle {
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.66;
  max-width: 52ch;
  margin-bottom: clamp(30px, 4.4vh, 48px);
  color: #E8E3D6;
  text-shadow: 0 1px 20px rgba(6, 12, 9, .6);
}

/* =========================================================
   SECOES
   ========================================================= */
.section {
  position: relative;
  padding-block: var(--secao-y);
  scroll-margin-top: 76px;
}

/* ---------- abertura editorial ----------
   topo mais curto de proposito: vem logo depois do hero escuro,
   entao a frase precisa chegar rapido em vez de deixar creme vazio */
.abertura { padding-top: clamp(56px, 7vh, 84px); }

.lede {
  font-size: clamp(1.5rem, 3.5vw, 2.55rem);
  line-height: 1.24;
  max-width: 19ch;
  margin-bottom: clamp(52px, 8vh, 92px);
}

.pontos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.ponto h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--borda);
}
.ponto p { font-size: 0.9375rem; color: var(--texto-2); }

/* ---------- indice de servicos ---------- */
.servicos { background: var(--creme-alt); }

.item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(16px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(22px, 3vh, 30px);
  position: relative;
}
.item::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--borda);
  transform: scaleX(var(--rule, 1));
  transform-origin: left center;
}
.item h3 {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}
.item p {
  font-size: 0.9375rem;
  color: var(--texto-2);
  max-width: 58ch;
}

/* ---------- passos (a sequencia informa) ---------- */
.passos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.passo-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--verde-folha);
  color: var(--verde-folha);
  font-family: var(--titulo);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.passo h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.passo p { font-size: 0.875rem; color: var(--texto-2); }

/* ---------- contato ---------- */
.contato {
  overflow: hidden;
  background: var(--verde-profundo);
  color: var(--creme);
  text-align: center;
  padding-block: clamp(104px, 15vh, 172px);
}
.contato-bg {
  position: absolute;
  inset: 0;
  background: url('assets/img/floresta.webp') center 62% / cover no-repeat;
  transform: scaleX(-1);
  opacity: .5;
}
.contato-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 16, .82) 0%, rgba(12, 22, 16, .62) 50%, rgba(12, 22, 16, .88) 100%);
}
.contato-shell { position: relative; z-index: 1; }
.contato-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.14;
  max-width: 16ch;
  margin: 0 auto 20px;
  text-shadow: 0 2px 22px rgba(6, 12, 9, .5);
}
.contato-text {
  max-width: 48ch;
  margin: 0 auto 36px;
  color: #E4DED0;
  font-size: 1rem;
}
.contato-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- rodape ---------- */
.footer {
  background: var(--verde-profundo);
  color: var(--areia);
  padding-block: 44px;
  border-top: 1px solid rgba(245, 241, 233, .1);
}
.footer-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-brand { font-family: var(--titulo); font-size: 1.05rem; color: var(--creme); margin-top: 4px; }
.footer-note { font-size: 0.8125rem; letter-spacing: .22em; text-transform: uppercase; }

/* Nenhum estado inicial oculto vive no CSS: os pontos de partida sao
   aplicados pelo GSAP em tempo de execucao. Se o CDN falhar, a pagina
   aparece inteira em vez de ficar invisivel. */

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
  .pontos { grid-template-columns: 1fr; gap: 30px; }
  .passos { grid-template-columns: repeat(2, 1fr); }
  .item { grid-template-columns: 1fr; gap: 8px; }
  .lede, .section-title { max-width: 22ch; }
}

/* Tela baixa de notebook: encolhe o bloco para nao encostar no topo. */
@media (min-width: 861px) and (max-height: 780px) {
  .hero { padding-top: clamp(96px, 13svh, 124px); padding-bottom: clamp(56px, 8svh, 84px); }
  .hero-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
  .hero-subtitle { font-size: 0.9375rem; }
  .hero-marca { margin-bottom: 20px; }
}

@media (max-width: 860px) {
  .hero { padding: 104px var(--gutter) 72px; }
  .hero-title { font-size: clamp(1.9rem, 7.6vw, 2.6rem); max-width: 14ch; }
  .hero-subtitle { max-width: 40ch; }
}

@media (max-width: 560px) {
  .passos { grid-template-columns: 1fr; }
  .contato-ctas { flex-direction: column; align-items: stretch; }
  .contato-ctas .btn { width: 100%; }
  .topbar-cta { padding: 9px 15px; font-size: 0.8125rem; }
}

/* =========================================================
   ACESSIBILIDADE
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .topbar { transition: none; }
  .hero-fundo { animation: none; transform: scale(1.04); }
}
