/* Cartão digital da Ana Morais Cestas: etiqueta de presente pendurada numa fita dourada.
   Movimento: a fita desce, a etiqueta chega balançando e assenta, o varal de cestas desce e os atalhos sobem.
   Só CSS: sem JS, nada fica escondido se algo falhar. Movimento reduzido: só esmaece. */

@font-face { font-family: "Lora"; src: url("../fonts/lora.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --papel: #FBF8F3; --linho: #F2EBDF; --marinho: #1E2940; --marinho-2: #2B3858; --azul-claro: #C9D2E5;
  --ouro: #C1910C; --ouro-claro: #E2BE62; --ouro-texto: #8A6610; --tinta: #1E2940; --tinta-2: #4F5666;
  --serif: "Lora", Georgia, serif; --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; }
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track, html::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-button { display: none; height: 0; }
html::-webkit-scrollbar-thumb { background: var(--ouro-claro); border-radius: 8px; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--ouro-claro) transparent; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--papel);
  font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background: var(--marinho) radial-gradient(120% 60% at 50% 0%, var(--marinho-2) 0%, rgba(43, 56, 88, 0) 70%) no-repeat;
}
body { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.c__pagina { position: relative; width: min(100%, 27rem); margin: 0 auto; padding: 0 1.1rem calc(2.5rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; }

/* fita dourada que segura a etiqueta */
.c__fio { width: 3px; height: clamp(2.2rem, 7vh, 3.6rem); background: linear-gradient(90deg, #A97D08, var(--ouro-claro) 50%, #A97D08); transform-origin: top; }

/* etiqueta: papel com cantos de cima chanfrados e o furo da fita */
.c__etiqueta {
  position: relative; width: 94%; padding: 2.6rem 1.4rem 1.7rem; text-align: center; color: var(--tinta);
  background: var(--papel); transform-origin: 50% 0;
  clip-path: polygon(16% 0, 84% 0, 100% 2.6rem, 100% 100%, 0 100%, 0 2.6rem);
  filter: drop-shadow(0 1.2rem 1.6rem rgba(8, 12, 22, .45));
}
.c__furo { position: absolute; top: .95rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%; background: var(--marinho); box-shadow: inset 0 0 0 2px var(--ouro); }
.c__logo { width: min(15rem, 78%); margin: .4rem auto 1rem; }
.c__frase { margin: 0; font: 400 1.32rem/1.3 var(--serif); font-style: italic; letter-spacing: -.005em; }
.c__frase span, .c__lugar span { white-space: nowrap; }
.c__lugar span { display: block; }
.c__lugar { margin: .8rem 0 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; color: var(--ouro-texto); }

/* varal: três cestas reais presas por prendedores numa linha dourada */
.c__varal { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 2rem 0 .6rem; padding-top: .9rem; }
.c__linha { position: absolute; left: 0; right: 0; top: .35rem; height: 1.6rem; border-bottom: 1.5px solid var(--ouro-claro); border-radius: 0 0 50% 50% / 0 0 100% 100%; opacity: .8; }
.c__foto { position: relative; display: block; padding: .38rem .38rem 1.75rem; background: var(--papel); text-decoration: none; color: var(--tinta); box-shadow: 0 .8rem 1.3rem -.6rem rgba(8, 12, 22, .6); transform-origin: 50% -.5rem; rotate: calc((var(--i) - 1) * 3.5deg); translate: 0 calc((1 - (var(--i) - 1) * (var(--i) - 1)) * .55rem); transition: rotate .5s var(--ease), translate .5s var(--ease); }
.c__foto img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.c__prendedor { position: absolute; z-index: 1; top: -.75rem; left: 50%; width: .5rem; height: 1.35rem; margin-left: -.25rem; border-radius: 2px; background: linear-gradient(90deg, #A97D08, var(--ouro-claro), #A97D08); }
.c__legenda { position: absolute; left: 0; right: 0; bottom: .42rem; font: 500 .74rem/1.15 var(--serif); font-style: italic; text-align: center; padding: 0 .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .c__foto:hover { rotate: 0deg; translate: 0 -.25rem; } }
.c__foto:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }

/* atalhos */
.c__botoes { width: 100%; display: grid; gap: .7rem; margin-top: 1.4rem; }
.atalho {
  display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: .9rem;
  min-height: 4.1rem; padding: .7rem 1.1rem .7rem .8rem; text-decoration: none;
  background: rgba(251, 248, 243, .06); border: 1px solid rgba(226, 190, 98, .32); border-radius: 3px;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.atalho__icone { width: 2.6rem; height: 2.6rem; }
.atalho__icone--laco { padding: .3rem; fill: none; stroke: var(--ouro-claro); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atalho__icone--laco circle { fill: var(--ouro-claro); stroke: none; }
.atalho__txt { display: grid; font-weight: 700; font-size: 1.04rem; line-height: 1.25; }
.atalho__txt small { font-weight: 400; font-size: .86rem; color: var(--azul-claro); overflow-wrap: anywhere; }
.atalho__seta { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--ouro-claro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.atalho--wa { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.atalho--wa small { color: var(--tinta-2); }
.atalho--wa .atalho__seta { stroke: var(--ouro-texto); }
@media (hover: hover) {
  .atalho:hover { background: rgba(251, 248, 243, .12); border-color: var(--ouro-claro); transform: translateY(-2px); }
  .atalho--wa:hover { background: #fff; }
  .atalho:hover .atalho__seta { transform: translateX(4px); }
}
.atalho:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }


/* ---------- entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .c__fio { animation: fio .55s var(--ease) both; }
  .c__etiqueta { animation: etiqueta 1.5s cubic-bezier(.3, .7, .35, 1) .25s both; }
  .c__linha { animation: aparece .5s ease 1s both; }
  .c__foto { animation: foto .9s var(--ease) calc(1.05s + var(--i) * .12s) both; }
  .c__botoes > * { animation: sobe .7s var(--ease) calc(1.35s + var(--i, 0) * .09s) both; }
}
@media (prefers-reduced-motion: reduce) {
  .c__etiqueta, .c__varal, .c__botoes { animation: aparece .6s ease both; }
  .c__varal { animation-delay: .15s; } .c__botoes { animation-delay: .3s; }
}
@keyframes fio { from { transform: scaleY(0); } }
@keyframes etiqueta {
  0% { opacity: 0; transform: translateY(-1.6rem) rotate(-3.5deg); }
  30% { opacity: 1; transform: translateY(0) rotate(3.5deg); }
  52% { transform: rotate(-2deg); }
  72% { transform: rotate(1deg); }
  88% { transform: rotate(-.4deg); }
  100% { transform: none; }
}
@keyframes foto { from { opacity: 0; transform: translateY(-1.2rem) rotate(-6deg); } 60% { opacity: 1; transform: rotate(2.5deg); } to { transform: none; } }
@keyframes sobe { from { opacity: 0; transform: translateY(1rem); } }
@keyframes aparece { from { opacity: 0; } }

/* crédito Fillconnect (regra de todos os sites) */
.c__credito { margin: 2rem 0 0; font-size: .8rem; color: var(--azul-claro); text-align: center; }
.c__credito .site-por { white-space: nowrap; }
.c__credito a { color: inherit; text-decoration: underline; text-decoration-color: var(--ouro-claro); text-underline-offset: 3px; }
.c__credito a:hover { color: var(--papel); }
.c__credito a:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 2px; }

/* celular estreito: textos dos atalhos numa linha só */
@media (max-width: 359px) {
  .c__pagina { padding-left: .85rem; padding-right: .85rem; }
  .atalho { grid-template-columns: 2.2rem 1fr auto; gap: .7rem; padding: .65rem .8rem .65rem .7rem; }
  .atalho__icone { width: 2.2rem; height: 2.2rem; }
  .atalho__txt { font-size: .97rem; }
  .atalho__txt small { font-size: .78rem; }
  .atalho__seta { width: 1.05rem; height: 1.05rem; }
}

@media (min-width: 48rem) { .c__pagina { padding-bottom: 4rem; } }
