/* Sublim.art.br — hub de links (linktree da marca)
   Paleta CMYK sobre tinta/preto, fonte Archivo. Tokens herdados do design system. */

:root {
  --ink-950: #0D0D0F;
  --ink-900: #17171A;
  --ink-800: #232326;
  --ink-700: #333338;
  --ink-300: #B9B9C0;
  --ink-100: #ECECEE;

  --cyan:    #00AEEF;
  --cyan-dk: #0091C9;
  --magenta: #F4067E;
  --mag-dk:  #D2006B;
  --yellow:  #FFD400;
  --whats:   #25D366;

  --font: "Archivo", Helvetica, Arial, sans-serif;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --maxw: 520px;
  --shadow: 0 14px 40px rgb(0 0 0 / .45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink-100);
  background: var(--ink-950);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- fundo aurora CMYK ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 58vmax;
  height: 58vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob--cyan    { background: var(--cyan);    top: -18%; left: -14%; animation: drift1 18s ease-in-out infinite; }
.blob--magenta { background: var(--magenta); top: 22%;  right: -20%; animation: drift2 22s ease-in-out infinite; }
.blob--yellow  { background: var(--yellow);  bottom: -22%; left: 18%; opacity: .4; animation: drift3 26s ease-in-out infinite; }

.grain {
  position: absolute;
  inset: -50%;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,6%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7%,9%) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%,-7%) scale(1.15); } }

/* ---------- layout ---------- */
.hub {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 8vh, 72px) 20px 120px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-100);
  color: var(--ink-950);
  padding: 10px 16px;
  border-radius: var(--r-md);
  z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- cabeçalho ---------- */
.hub__head { text-align: center; margin-bottom: clamp(24px, 5vh, 40px); }
.hub__logo {
  width: clamp(150px, 44vw, 220px);
  height: auto;
  filter: drop-shadow(0 6px 20px rgb(0 0 0 / .5));
}
.hub__tagline {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 14px 0 4px;
}
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--magenta) 55%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hub__sub {
  margin: 0;
  color: var(--ink-300);
  font-size: .92rem;
  font-weight: 500;
}

/* ---------- cards de link ---------- */
.links { display: grid; gap: 14px; }

.card {
  --accent: var(--cyan);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  min-height: 72px;
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .1);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  background: rgb(255 255 255 / .09);
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent) inset;
  outline: none;
}
.card:focus-visible { box-shadow: 0 0 0 3px rgb(0 174 239 / .5); }

.card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  font-size: 1.5rem;
  color: var(--accent);
  border-radius: var(--r-md);
  background: rgb(255 255 255 / .08);
}
.card__icon svg { display: block; }
.card__body { flex: 1 1 auto; min-width: 0; }
.card__title { display: block; font-weight: 700; font-size: 1.05rem; }
.card__desc  { display: block; color: var(--ink-300); font-size: .84rem; margin-top: 2px; }
.card__arrow {
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform .18s ease;
}
.card:hover .card__arrow { transform: translateX(4px); }

.card--cyan    { --accent: var(--cyan); }
.card--magenta { --accent: var(--magenta); }
.card--yellow  { --accent: var(--yellow); }
.card--whats   { --accent: var(--whats); }
.card--whats .card__arrow,
.card--yellow .card__arrow { color: var(--accent); }

/* ---------- do nosso catálogo (produtos WooCommerce) ---------- */
.prod { margin-top: clamp(32px, 6vh, 48px); }
.prod__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.prod__title { font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink-100); }
.prod__all { font-size: .86rem; font-weight: 600; color: var(--cyan); }
.prod__all:hover { color: var(--magenta); }

.prod__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.prod__tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan-dk), var(--mag-dk) 70%, var(--ink-800));
  transition: transform .18s ease, filter .18s ease;
}
.prod__tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.prod__name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 8px 8px;
  background: linear-gradient(to top, rgb(0 0 0 / .8), transparent);
}
.prod__name-txt {
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.25;
  /* corte confiável em 2 linhas: a altura fixa garante o corte mesmo onde o
     -webkit-box é normalizado p/ flow-root; o line-clamp dá as reticências
     nos navegadores que o respeitam. */
  max-height: 2.5em;        /* 2 linhas × 1.25 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.prod__tile:hover { transform: scale(1.03); filter: brightness(1.06); }
.prod__tile:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(0 174 239 / .6); }
.prod__empty { color: var(--ink-300); font-size: .86rem; grid-column: 1 / -1; }

/* ---------- rodapé ---------- */
.hub__foot {
  margin-top: clamp(32px, 6vh, 48px);
  text-align: center;
  color: var(--ink-300);
  font-size: .78rem;
}

/* ---------- botão flutuante whatsapp ---------- */
.fab-whats {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: var(--whats);
  color: #fff;
  box-shadow: 0 8px 24px rgb(37 211 102 / .5);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab-whats:hover,
.fab-whats:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgb(37 211 102 / .65);
  outline: none;
}
.fab-whats:focus-visible { box-shadow: 0 0 0 3px #fff, 0 8px 24px rgb(37 211 102 / .5); }

/* ---------- acessibilidade / movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .card, .card__arrow, .prod__tile, .fab-whats { transition: none !important; }
}

@media (min-width: 560px) {
  .card { padding: 20px 22px; }
}
