/* ==========================================================
   MUNDO PLENO · variáveis de marca
   Cores amostradas do logotipo e das peças da coleção.
   ========================================================== */
:root {
  /* Marca */
  --floresta: #22382A;
  --floresta-noite: #18291F;
  --ouro: #C8963E;
  --ouro-claro: #E8C27A;
  --ouro-luz: #F3DDA8;
  --ambar: #4A2A14;

  /* Neutros */
  --creme: #F9F3E8;
  --linho: #F1E8D9;
  --tinta: #2A2A20;
  --tinta-suave: #6A6555;
  --linha: rgba(34, 56, 42, .16);

  /* Tipografia */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Century Gothic", system-ui, sans-serif;

  /* Movimento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.3, 1.6, .5, 1);

  /* Layout */
  --gutter: clamp(16px, 3vw, 44px);
  --announce-h: 34px;
  --header-h: 76px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }
[id] { scroll-margin-top: var(--header-h); }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 200; top: 8px; left: 8px; background: var(--creme); padding: 8px 14px; }

.kicker {
  font: 400 12px/1.4 var(--sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ouro-claro);
}
.kicker--dark { color: #8A6420; }

/* ===== Anúncio e cabeçalho ===== */
.announce {
  height: var(--announce-h);
  display: grid; place-items: center;
  background: var(--linho);
  color: var(--floresta);
  font-size: 12.5px;
  letter-spacing: .06em;
}
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  background: var(--creme);
  border-bottom: 1px solid var(--linha);
}
.header__logo img { width: 158px; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  position: relative;
  font-size: 12px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--floresta);
  padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ouro);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__tools { justify-self: end; display: flex; align-items: center; gap: 18px; }
.header__bag svg { width: 24px; height: 24px; fill: none; stroke: var(--floresta); stroke-width: 1.2; }
.header__toggle { display: none; width: 30px; height: 30px; position: relative; }
.header__toggle i {
  position: absolute; left: 3px; right: 3px; height: 1px; background: var(--floresta);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.header__toggle i:nth-of-type(1) { top: 11px; }
.header__toggle i:nth-of-type(2) { top: 19px; }
.header__toggle[aria-expanded="true"] i { top: 15px; }
.header__toggle[aria-expanded="true"] i:nth-of-type(1) { transform: rotate(45deg); }
.header__toggle[aria-expanded="true"] i:nth-of-type(2) { transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--announce-h) - var(--header-h));
  height: calc(100svh - var(--announce-h) - var(--header-h));
  min-height: calc(35.5vw + 280px); /* garante a área verde do título acima dos frascos */
  background: var(--floresta-noite);
}
/* Halo: continuação desfocada da copa, que estende a transição para o verde */
.hero__halo {
  position: absolute; left: 0; right: 0; bottom: 24vw; height: 20vw; /* a base fica atrás da parte sólida da foto */
  background: url("../img/hero-halo.jpg") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.5) 14%, #000 30%, rgba(0,0,0,.72) 44%, rgba(0,0,0,.42) 58%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.05) 86%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.5) 14%, #000 30%, rgba(0,0,0,.72) 44%, rgba(0,0,0,.42) 58%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.05) 86%, transparent 100%);
  opacity: .6;
}
/* A foto ancora na base; o topo dissolve no verde, como a copa da floresta */
.hero__stage {
  position: absolute; left: 0; right: 0; bottom: -7.3vw;
  display: block;
  aspect-ratio: 2688 / 1152;
}
.hero__zoom {
  position: absolute; inset: 0;
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.06) 3%, rgba(0,0,0,.2) 6%, rgba(0,0,0,.45) 9.5%, rgba(0,0,0,.72) 12.5%, rgba(0,0,0,.92) 15.5%, #000 18%);
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.06) 3%, rgba(0,0,0,.2) 6%, rgba(0,0,0,.45) 9.5%, rgba(0,0,0,.72) 12.5%, rgba(0,0,0,.92) 15.5%, #000 18%);
}
.hero__zoom img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero__content {
  position: absolute; top: 0; left: 0; right: 0; bottom: 29.5vw;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px var(--gutter);
  text-align: center;
  color: var(--creme);
  will-change: transform;
}

.hero__lotus { width: clamp(58px, 5vw, 78px); margin-bottom: 10px; }
.lotus { width: 100%; height: auto; overflow: visible; }
.lotus__line {
  fill: none; stroke: var(--ouro-claro); stroke-width: .9;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.lotus__fill { fill: url(#ouro); }

.hero__title {
  font: 300 clamp(2.2rem, 3.7vw, 4rem)/1.08 var(--serif);
  letter-spacing: .035em;
  text-transform: uppercase;
  margin-top: 10px;
}
.hero__title em {
  font-weight: 400;
  text-transform: none;
  letter-spacing: .005em;
  color: var(--ouro-claro);
  font-size: 1.14em;
}
.hero__sub {
  max-width: 46em;
  margin-top: 10px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  color: rgba(249, 243, 232, .82);
  line-height: 1.6;
  color: rgba(249, 243, 232, .78);
}
.hero__cta { margin-top: clamp(14px, 2vh, 20px); }

/* Botão magnético */
.btn {
  position: relative;
  display: inline-block;
  padding: 16px 34px 15px;
  background: var(--ouro);
  color: var(--floresta-noite);
  font-size: 12px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
  overflow: visible;
  transition: transform .7s var(--ease-spring), background-color .4s;
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: -22px; } /* amplia o campo magnético */
.btn__label { position: relative; display: inline-block; transition: transform .7s var(--ease-spring); }
.btn:hover { background: var(--ouro-luz); }
.btn.is-pulled, .btn.is-pulled .btn__label { transition: transform .18s linear, background-color .4s; }

/* ===== Entrada da Hero ===== */
.js .hero__halo { opacity: 0; }
.is-loaded .hero__halo { opacity: .6; transition: opacity 2s ease; }
.js .hero__zoom { opacity: 0; transform: scale(1.1); }
.js .hero__kicker, .js .hero__sub, .js .hero__cta { opacity: 0; transform: translateY(26px); }
.js .lotus__line { stroke-dashoffset: 1; }
.js .lotus__fill { opacity: 0; }

.is-loaded .hero__zoom { opacity: 1; transform: none; transition: opacity 1.6s ease, transform 2.4s var(--ease-out); }
.is-loaded .hero__kicker, .is-loaded .hero__sub, .is-loaded .hero__cta {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.is-loaded .hero__kicker { transition-delay: .45s; }
.is-loaded .hero__sub { transition-delay: 1.35s; }
.is-loaded .hero__cta { transition-delay: 1.55s; }
.is-loaded .lotus__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.7s cubic-bezier(.5, 0, .2, 1) calc(var(--i) * 45ms); }
.is-loaded .lotus__fill { opacity: 1; transition: opacity 1s 1.25s; }

/* ===== Texto em cascata ===== */
.js [data-split] { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }
.split-word {
  display: inline-block; white-space: nowrap; vertical-align: top;
  overflow: hidden;
  padding: .24em .1em .2em; margin: -.24em -.1em -.2em;
}
.split-char {
  display: inline-block;
  transform: translateY(125%) rotate(5deg);
  transform-origin: 0 100%;
  opacity: 0;
}
[data-split].is-in .split-char {
  transform: none; opacity: 1;
  transition: transform 1.1s var(--ease-out), opacity .5s;
  transition-delay: calc(var(--base, 0s) + var(--i) * 26ms);
}
[data-hero] { --base: .6s; }

/* ===== Reveal on scroll ===== */
.js .reveal { opacity: 0; transform: translateY(44px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.3s var(--ease-out) var(--d, 0s);
}

/* ===== Seções ===== */
.section { padding: clamp(72px, 11vh, 130px) var(--gutter); }
.section--branco { background: #fff; }
.section--linho { background: var(--linho); }
.section__inner { max-width: 1360px; margin-inline: auto; }
.section-head { max-width: 46em; margin: 0 auto clamp(40px, 6vh, 68px); text-align: center; }
.title {
  font: 300 clamp(2.3rem, 4.4vw, 4rem)/1.08 var(--serif);
  letter-spacing: .035em; text-transform: uppercase;
  color: var(--floresta);
  margin-top: 16px;
}
.title em { text-transform: none; font-size: 1.12em; font-weight: 400; letter-spacing: 0; color: #9A7126; }
.lead { margin-top: 18px; color: var(--tinta-suave); }

/* Coleções: imagens de composição */
.tiles { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: clamp(12px, 1.6vw, 22px); }
.tile { display: block; }
.tile__frame { position: relative; aspect-ratio: .86; overflow: hidden; background: var(--linho); }
.tile__frame img {
  position: absolute; top: -8%; left: 0;
  width: 100%; height: 116%;
  object-fit: contain;
  mix-blend-mode: multiply;
  will-change: transform;
}
.tile__frame--foto img { object-fit: cover; mix-blend-mode: normal; }
/* Coluna mais larga, para a imagem preencher o quadro sem cortar as velas */
.tile__frame--fill { aspect-ratio: 1.032; }
.tile__frame--fill img { top: -5%; height: 110%; object-fit: cover; mix-blend-mode: normal; }
.tile__name { margin-top: 14px; font: 400 1.5rem/1.2 var(--serif); color: var(--floresta); }
.tile__meta { font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); }

/* Produtos (classes compatíveis com o WooCommerce) */
.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(30px, 3.2vw, 46px) clamp(10px, 1.4vw, 20px);
}
.shelf {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(30px, 3.2vw, 46px) clamp(10px, 1.4vw, 20px);
}
.shelf .products { display: contents; }
.shelf__intro { align-self: center; padding-right: clamp(10px, 2vw, 34px); }
.shelf__intro .title { font-size: clamp(2.1rem, 3vw, 3rem); text-transform: none; letter-spacing: .01em; margin-top: 12px; }
.shelf__intro .title em { font-size: 1.04em; }

.product:nth-child(4n+2) { --d: .08s; }
.product:nth-child(4n+3) { --d: .16s; }
.product:nth-child(4n) { --d: .24s; }
.woocommerce-LoopProduct-link { display: block; }
.product__media { aspect-ratio: .8; overflow: hidden; background: #F5F0E7; }
.section--linho .product__media { background: #fff; }
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 1.2s var(--ease-out);
}
.product__media--foto { aspect-ratio: 2 / 3; }
.product__media--foto img { mix-blend-mode: normal; }
.woocommerce-LoopProduct-link:hover .product__media img { transform: scale(1.05); }
.woocommerce-loop-product__title { margin: 14px 0 0; font: 400 1.4rem/1.2 var(--serif); color: var(--floresta); }
.product__note { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--tinta-suave); }
.product .price { display: block; margin-top: 5px; font-size: 15px; font-weight: 400; color: var(--floresta); }
.product .button {
  display: inline-block; margin-top: 10px; padding-bottom: 2px;
  border-bottom: 1px solid var(--ouro);
  font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--floresta);
}

/* Ecovila */
.ecovila {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: min(86vh, 720px);
  background: var(--floresta-noite);
  color: var(--creme);
}
.ecovila__media { position: relative; overflow: hidden; min-height: 320px; }
.ecovila__media img {
  position: absolute; top: -6%; left: 0;
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.ecovila__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 110px);
}
.ecovila .title { color: var(--creme); }
.ecovila .title em { color: var(--ouro-claro); }
.ecovila .lead { color: rgba(249, 243, 232, .78); max-width: 32em; }

/* ===== Rodapé ===== */
.footer {
  background: var(--floresta-noite);
  color: rgba(249, 243, 232, .8);
  font-size: 15px; line-height: 1.6;
  padding: clamp(56px, 8vh, 90px) var(--gutter) 26px;
}
.footer__grid {
  max-width: 1360px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: stretch;
}
.footer__logo { width: 170px; }
.footer__tag { margin-top: 12px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: clamp(32px, 5vh, 52px); }
.footer address { font-style: normal; }
.footer .kicker { margin-bottom: 10px; font-size: 11px; }
.footer__cols a { transition: color .3s; }
.footer__cols a:hover { color: var(--ouro-claro); }
.footer__route { display: inline-block; margin-top: 10px; padding-bottom: 2px; border-bottom: 1px solid var(--ouro); color: var(--creme); }
.footer__map { min-height: 320px; background: var(--floresta); }
.footer__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(.75) sepia(.12); }
.footer__legal {
  max-width: 1360px; margin: clamp(36px, 5vh, 56px) auto 0; padding-top: 18px;
  border-top: 1px solid rgba(249, 243, 232, .16);
  font-size: 12.5px; color: rgba(249, 243, 232, .6);
}

/* ===== Cursor =====
   Círculo SVG já no tamanho máximo: o JS só reduz, nunca amplia,
   então a borda fica nítida em qualquer estado. */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto !important; }
.has-cursor .cursor {
  display: block;
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  mix-blend-mode: difference;
  pointer-events: none;
  will-change: transform;
}
.cursor svg { width: 100%; height: 100%; }

/* ===== Responsivo ===== */
@media (max-width: 1040px) {
  .header { grid-template-columns: 1fr auto; }
  .header__toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; /* fica sob o logo e o botão de fechar */
    flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: var(--creme);
    opacity: 0; visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font: 300 30px/1.2 var(--serif); letter-spacing: .03em; text-transform: none; }
}

@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero__content { position: relative; inset: auto; padding: 26px 20px 0; order: 1; }
  .hero__stage { position: relative; bottom: auto; order: 2; aspect-ratio: auto; height: 46svh; margin-top: -10px; }
  .hero__lotus { width: 60px; margin-bottom: 12px; }
  .hero__title { font-size: clamp(2.1rem, 9vw, 3.2rem); margin-top: 12px; max-width: 11.5em; }
  .hero__sub { font-size: 15px; margin-top: 12px; }
  .hero__cta { margin-top: 20px; }

  .tiles { grid-template-columns: 1fr; }
  .tile__frame { aspect-ratio: 1.1; }
  .products, .shelf { grid-template-columns: repeat(2, 1fr); }
  .shelf__intro { grid-column: 1 / -1; padding-right: 0; text-align: center; }
  .woocommerce-loop-product__title { font-size: 1.22rem; }
  .ecovila { grid-template-columns: 1fr; }
  .ecovila__media { aspect-ratio: 1.15; }
  .ecovila__text { padding: 48px 20px 56px; text-align: center; }
  .ecovila .lead { margin-inline: auto; }
  .hero__halo { display: none; }
  .footer__grid, .footer__cols { grid-template-columns: 1fr; }
  .footer__map, .footer__map iframe { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hero__zoom { opacity: 1; transform: none; }
  .js .hero__kicker, .js .hero__sub, .js .hero__cta, .js .reveal, .js .lotus__fill { opacity: 1; transform: none; }
  .js .lotus__line { stroke-dashoffset: 0; }
  .js [data-split] { visibility: visible; }
}
