/* EPCO — shared base: reset, motion states, WhatsApp button. Each option sets its own tokens. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html, body { overflow-x: clip; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus, #2F6B4F); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Motion ---------- */
:root { --ease: cubic-bezier(.2, .7, .15, 1); }
html.motion [data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); will-change: opacity, transform; }
html.motion [data-reveal="fade"] { transform: none; }
html.motion [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
html.motion [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
html.motion [data-reveal="scale"] { transform: scale(.94); }
@media (max-width: 760px) { html.motion [data-reveal="left"], html.motion [data-reveal="right"] { transform: translate3d(0, 32px, 0); } }
html.motion [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
html.motion [data-reveal="img"] img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
html.motion [data-reveal].in { opacity: 1; transform: none; }
html.motion [data-reveal="img"].in { clip-path: inset(0 0 0 0); }
html.motion [data-reveal="img"].in img { transform: scale(1); }
html.motion [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
html.motion [data-reveal="line"].in { transform: scaleX(1); }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
html.motion [data-split] .w > span { transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease); }
html.motion [data-split].in .w > span { transform: none; }

[data-parallax] { will-change: transform; }

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: left; transform: scaleX(0); background: var(--accent, #2F6B4F); pointer-events: none; }

/* ---------- WhatsApp ---------- */
.whats {
  position: fixed; z-index: 70;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.whats-label {
  background: #FFFFFF; color: #0F2A1E; font: 600 14px/1 Inter, system-ui, sans-serif;
  padding: 12px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(10, 30, 20, .16);
  opacity: 0; transform: translateX(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; white-space: nowrap;
}
.whats:hover .whats-label, .whats:focus-visible .whats-label { opacity: 1; transform: none; }
.whats-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #FFFFFF;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(18, 140, 70, .38);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.whats-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: ping 2.6s var(--ease) infinite; }
.whats:hover .whats-btn { transform: scale(1.07); box-shadow: 0 16px 36px rgba(18, 140, 70, .45); }
.whats.nudge .whats-btn { animation: nudge .6s var(--ease); }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
@media (max-width: 640px) { .whats-label { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .whats-btn::before { display: none; }
}
