/* ==========================================================================
   Pure Nature Cosméticos — Página de links
   Estrutura: variáveis · base · logo · links · divisor · redes · rodapé ·
              animações · acessibilidade · responsivo
   ========================================================================== */

:root {
  --verde: #08453a;
  --verde-escuro: #05332b;
  --laranja: #f28a2e;
  --laranja-claro: #fdf1e6;
  --linha: #e7ece9;
  --texto-suave: #5b706a;
}

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

html, body { background: #ffffff; }

body {
  height: 100vh;
  height: 100dvh;
  font-family: "Encode Sans", system-ui, sans-serif;
  color: var(--verde);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(16px, 4dvh, 40px) 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* brilhos decorativos suaves no fundo */
body::before, body::after {
  content: "";
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,138,46,.08) 0%, rgba(242,138,46,0) 70%);
  z-index: 0;
  pointer-events: none;
}
body::before { top: -160px; right: -160px; }
body::after {
  bottom: -180px; left: -180px;
  background: radial-gradient(circle, rgba(8,69,58,.06) 0%, rgba(8,69,58,0) 70%);
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---------- Logo ---------- */
.logo {
  width: min(300px, 78vw);
  height: auto;
  display: block;
  margin-bottom: clamp(10px, 2.2dvh, 18px);
}

.tagline {
  font-size: 0.95rem;
  color: var(--texto-suave);
  text-align: center;
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: clamp(26px, 6dvh, 48px);
}

/* ---------- Links ---------- */
.links {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8dvh, 14px);
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: clamp(50px, 7.4dvh, 62px);
  padding: 8px 18px 8px 10px;
  border: 1.5px solid var(--verde);
  border-radius: 16px;
  background: #fff;
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s ease, transform .25s ease, box-shadow .35s ease, border-color .35s ease;
}

/* preenchimento animado no hover */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.65,0,.35,1);
  z-index: -1;
}

.link:hover, .link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(8,69,58,.55);
  outline: none;
}
.link:hover::before, .link:focus-visible::before { transform: scaleX(1); }
.link:active { transform: translateY(0) scale(.99); }

.link .icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--laranja-claro);
  color: var(--laranja);
  transition: background .35s ease, color .35s ease;
}
.link:hover .icon, .link:focus-visible .icon { background: var(--laranja); color: #fff; }

.link .icon svg { width: 21px; height: 21px; }

.link .label { flex: 1; text-align: center; padding-right: 26px; }

.link .arrow {
  position: absolute;
  right: 18px;
  width: 18px; height: 18px;
  opacity: .45;
  transition: transform .35s ease, opacity .35s ease;
}
.link:hover .arrow, .link:focus-visible .arrow { transform: translateX(4px); opacity: 1; }

/* destaque principal */
.link.destaque {
  background: var(--verde);
  color: #fff;
}
.link.destaque::before { background: var(--verde-escuro); }
.link.destaque .icon { background: rgba(255,255,255,.12); color: var(--laranja); }
.link.destaque .arrow { opacity: .8; }

/* ---------- Divisor ---------- */
.divisor {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: clamp(18px, 4dvh, 34px) 0 clamp(12px, 2.2dvh, 18px);
  font-family: "Marcellus", serif;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--verde);
}
.divisor::before, .divisor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--verde) 50%, transparent);
  opacity: .35;
}

/* ---------- Redes ---------- */
.redes {
  list-style: none;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.rede {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--verde);
  display: grid;
  place-items: center;
  color: var(--verde);
  text-decoration: none;
  transition: background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.rede svg { width: 23px; height: 23px; }
.rede:hover, .rede:focus-visible {
  background: var(--laranja);
  border-color: var(--laranja);
  color: #fff;
  transform: translateY(-4px) rotate(-6deg);
  box-shadow: 0 10px 20px -10px rgba(242,138,46,.8);
  outline: none;
}

footer {
  margin-top: clamp(16px, 4dvh, 40px);
  font-size: .78rem;
  color: var(--texto-suave);
  text-align: center;
  opacity: .8;
}

/* ---------- Animações de entrada ----------
   Só ativadas quando o JS adiciona a classe .js no <html>.
   Sem JS, todo o conteúdo aparece normalmente. */
.js .reveal {
  opacity: 0;
  animation: subir .8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 150ms);
}

.js .logo.reveal {
  animation-name: logoEntrada;
  animation-duration: 1.1s;
  animation-delay: 0ms;
}

.js .rede.reveal { animation-name: pop; animation-duration: .6s; }

@keyframes subir {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes logoEntrada {
  0%   { opacity: 0; transform: scale(.85); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1);   filter: blur(0); }
}
@keyframes pop {
  0%   { opacity: 0; transform: scale(.4); }
  70%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* leve respiração da logo depois da entrada */
.logo-wrap { animation: flutuar 6s ease-in-out 1.4s infinite; }
@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .logo-wrap { animation: none !important; opacity: 1 !important; }
  .link, .rede, .link::before { transition: none; }
}

/* ---------- Responsivo ----------
   A página foi feita para caber inteira na altura da tela (sem rolagem).
   Os espaçamentos usam clamp() com dvh e encolhem em telas baixas. */
@media (min-width: 768px) {
  .logo { width: 340px; }
  .link { font-size: 1.05rem; }
}

/* telas estreitas */
@media (max-width: 360px) {
  .link { font-size: .93rem; gap: 10px; }
  .link .icon { flex-basis: 36px; width: 36px; height: 36px; }
  .rede { width: 48px; height: 48px; }
  .redes { gap: 12px; }
}

/* telas baixas (celulares pequenos, notebook com zoom, paisagem) */
@media (max-height: 640px) {
  .tagline { font-size: .85rem; }
  .link .icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
  .link .icon svg { width: 18px; height: 18px; }
  .rede { width: 44px; height: 44px; }
  .rede svg { width: 20px; height: 20px; }
  footer { font-size: .72rem; }
}

@media (max-height: 520px) {
  .tagline { display: none; }
  .logo { width: min(220px, 60vw); }
}

/* rede de segurança: se ainda assim não couber, permite rolar */
@media (max-height: 420px) {
  body { height: auto; min-height: 100dvh; }
}
