/* Movimento, ícones e celular: compartilhado pelo site e pela estratégia da Carina Pajola (11/11/2026).
   Carregar depois do CSS da página. Hovers só para quem tem mouse; com movimento reduzido tudo fica parado e visível. */
@property --kb { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --cs { syntax: '<number>'; inherits: false; initial-value: 1; }

/* superfícies do navegador */
html { scroll-padding-top: 84px; scrollbar-color: #5c4838 #15100d; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(198, 162, 126, .38); color: inherit; }
:focus-visible { outline: 1.5px solid var(--bronze); outline-offset: 4px; }
.light :focus-visible, .nude :focus-visible { outline-color: var(--rose); }
h1, h2, h3 { text-wrap: balance; }
p, li, address { text-wrap: pretty; }

/* ícones desenhados */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn .ic { width: 17px; height: 17px; margin-right: 11px; }
.btn-sm .ic { width: 15px; height: 15px; margin-right: 8px; }
.ic-wa, .has-wa .ic-ig-dm { display: none; }
.has-wa .ic-wa { display: block; }

/* barra de leitura */
.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #b07f72, #c6a27e 60%, #eadfce); }

/* topo some ao descer e volta ao subir */
.top { padding-top: max(18px, env(safe-area-inset-top)); transition: transform .55s var(--ease), background .4s var(--ease); }
.top.solid { padding-top: max(12px, env(safe-area-inset-top)); }
.top.hide { transform: translateY(-110%); }
.menu-open .top { transform: none; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* sublinhado que corre */
.link { border-bottom: 0; padding-bottom: 5px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .55s var(--ease), color .3s; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--bronze); transform: scaleX(0); transition: transform .45s var(--ease); }

/* botões com brilho */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s, color .35s; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .5) 50%, transparent 75%); transform: translateX(-130%); transition: transform 1s var(--ease); }
.btn:active { transform: scale(.98); }

/* faixa que desliza */
.band { padding: 0; overflow: hidden; background: var(--nude2); color: var(--cacau); border-top: 1px solid rgba(58, 42, 36, .1); border-bottom: 1px solid rgba(58, 42, 36, .1); }
.band.dark { background: var(--cafe2); color: var(--champ); border-color: rgba(234, 223, 206, .08); }
.band-track { display: flex; width: max-content; }
.band-track span { display: flex; align-items: center; gap: 34px; padding: 24px 34px 24px 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.2vw, 42px); white-space: nowrap; }
.band-track svg { width: 30px; height: 18px; fill: none; stroke: var(--rose); stroke-width: 1.2; flex: none; }
.band.dark .band-track svg { stroke: var(--bronze); }
@keyframes band { to { transform: translateX(-50%); } }

/* linhas que se desenham */
.step-list li, .flow li, .timeline li { position: relative; border-top-color: rgba(176, 127, 114, .25); }
.step-list li::before, .flow li::before, .timeline li::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rose); transform: scaleX(1); transform-origin: left; transition: transform 1.2s var(--ease) var(--d, 0ms); }
.svc-list li { position: relative; }
.svc-list li::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc-list h3, .flow h3, .timeline h3, .step-list h3, .pillar .num { transition: transform .5s var(--ease), color .4s; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(21, 16, 13, .55), transparent 45%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.tag { z-index: 2; transition: transform .5s var(--ease), background .4s, color .4s; }
.plan, .goal-side, .script { transition: transform .5s var(--ease), border-color .5s, box-shadow .5s var(--ease); }
.dash li, .needs li { transition: transform .45s var(--ease), color .4s; }
.map iframe { transition: filter .8s var(--ease); }
.about-photo::after { transition: transform .8s var(--ease); }
.phone { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }

/* hovers: só com mouse */
@media (hover: hover) and (pointer: fine) {
  .link:hover { background-size: 0 1px; background-position: 100% 100%; }
  .nav a:hover::after { transform: scaleX(1); }
  .btn:hover { background: var(--acc); color: var(--cafe); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
  .light .btn:hover, .nude .btn:hover { color: var(--nude); box-shadow: 0 14px 28px -14px rgba(58, 42, 36, .45); }
  .btn:hover::after { transform: translateX(130%); }
  .band:hover .band-track { animation-play-state: paused; }
  .pillar:hover .num { transform: translateX(8px); }
  .tile:hover::before { opacity: 1; }
  .tile:hover .tag { transform: translateY(-6px); background: rgba(198, 162, 126, .92); color: var(--cafe); }
  .svc-list li:hover::before { transform: scaleX(1); }
  .svc-list li:hover h3 { transform: translateX(8px); color: var(--rose); }
  .step-list li:hover h3, .flow li:hover h3, .timeline li:hover h3 { transform: translateX(6px); }
  .about-photo:hover::after { transform: translate(8px, 8px); }
  .map:hover iframe { filter: grayscale(.2) sepia(.15) brightness(.92); }
  .plan:hover { transform: translateY(-6px); border-color: var(--bronze); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7); }
  .goal-side:hover, .script:hover { border-color: var(--acc); }
  .dash li:hover { transform: translateX(6px); color: var(--champ); }
  .needs li:hover { transform: translateX(8px); }
  .ad:hover .phone { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); }
}

/* resposta ao toque */
@media (hover: none) {
  .tile:active .tag, .svc-list li:active h3 { color: var(--rose); }
  .tile:active img, .tile:active video { transform: scale(.985); }
}

@media (prefers-reduced-motion: no-preference) {
  .band-track { animation: band 46s linear infinite; }

  /* títulos palavra por palavra */
  .js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em; margin: 0 -.08em -.14em; }
  .js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d0, 0ms)); }
  .js [data-split].in .w > span { transform: none; }

  /* entradas em sequência */
  .js .reveal { transition-delay: var(--d, 0ms); }
  .js [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-stagger].in > * { opacity: 1; transform: none; }

  /* linhas que se desenham ao entrar */
  .js .step-list li::before, .js .flow li::before, .js .timeline li::before { transform: scaleX(0); }
  .js .step-list li.in::before, .js .flow.in li::before, .js .timeline.in li::before { transform: scaleX(1); }

  /* imagem: parallax (--py), zoom da capa (--kb) e cortina (--cs) numa transformação só */
  .js .curtain img, .js .curtain video, [data-parallax], .kb { transform: translate3d(0, var(--py, 0px), 0) scale(calc(var(--kb) * var(--cs))); }
  [data-parallax] { will-change: transform; }
  .js .curtain { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease); }
  .js .curtain.in { clip-path: inset(-40px); }
  .js .curtain img, .js .curtain video { --cs: 1.18; transition: --cs 2.2s var(--ease); }
  .js .curtain.in img, .js .curtain.in video { --cs: 1; }
  .kb { animation: kb 3.2s var(--ease) both; }
  @keyframes kb { from { --kb: 1.12; } to { --kb: 1; } }

  .arc { animation: breathe 9s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: translate(-46%, -58%) scale(1.04); opacity: .7; } }
  .float.on { animation: pulse 3.4s ease-in-out 1.5s infinite; }
  @keyframes pulse { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
  .phone { animation: float 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
  @keyframes float { 50% { translate: 0 -8px; } }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js .pillar:hover .clip.in video { --cs: 1.07; transition-duration: 1.2s; }
}
@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
}

/* menu do celular */
.menu-btn { display: none; }
.mnav { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(234, 223, 206, .28); background: rgba(21, 16, 13, .35); color: var(--champ); cursor: pointer; }
  .menu-btn span { position: relative; width: 18px; height: 1px; background: currentColor; transition: background .3s; }
  .menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }
  .menu-open .menu-btn span { background: transparent; }
  .menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
  .top-actions { display: flex; align-items: center; gap: 8px; }

  .mnav { --acc: var(--bronze); position: fixed; inset: 0; z-index: 39; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--gut) max(34px, env(safe-area-inset-bottom)); background: radial-gradient(ellipse 90% 60% at 50% 18%, #2b201a 0%, #15100d 72%); color: var(--champ); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
  .menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .mnav nav { display: flex; flex-direction: column; margin-bottom: auto; padding-top: 4vh; }
  .mnav nav a { display: flex; align-items: baseline; gap: 14px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid rgba(234, 223, 206, .1); font-family: var(--serif); font-size: clamp(32px, 9vw, 44px); line-height: 1.2; color: var(--champ); text-decoration: none; }
  .mnav nav a small { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; color: var(--bronze); }
  .mnav .m-actions { display: grid; gap: 14px; margin-top: 30px; }
  .mnav .btn { width: 100%; }
  .mnav .m-ig { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--champ2); text-decoration: none; border: 1px solid rgba(234, 223, 206, .2); }
  .mnav nav a, .mnav .m-actions > * { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--k, 0) * 55ms + 60ms); }
  .menu-open .mnav nav a, .menu-open .mnav .m-actions > * { opacity: 1; transform: none; }
  .menu-open { overflow: hidden; }
}

/* toque: alvos de 44 px */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .foot-col li a, .foot-links a { display: inline-flex; align-items: center; min-height: 40px; }
  .foot-col li:has(> a) { padding: 0; }
}

/* legibilidade: nada funcional abaixo de 11 px */
.caps.small, .spec .caps, .ph-top small { font-size: 11px; }
@media (max-width: 980px) { .tag { font-size: 11px; letter-spacing: .12em; } }
@media (max-width: 560px) { .tag { font-size: 11px; padding: 5px 8px; letter-spacing: .1em; } }
.plan.rec::before { height: 1px; }
