/* =====================================================================
   PÁGINA /links — "link na bio" da Fazenda dos Cordeiros (01/10/2026)
   Substitui a ferramenta paga de link na bio. Folha própria porque a
   página tem um componente que nenhuma outra tem: a coluna de botões
   empilhados. Paleta, tipografia, .btn, rodapé legal, cookies e widget
   vêm do base.css — NÃO reabrir :root aqui.
   Pensada para o celular (é aberta a partir do Instagram); no desktop vira
   uma coluna centralizada de ~520px.
   ===================================================================== */

.links-page { background: var(--c-bg); min-height: 100vh; min-height: 100svh; }

/* ---- Capa: foto real da casa-sede + selo da fazenda ---- */
/* Altura: era 210px fixos; aumentada DUAS vezes em 01/10/2026 a pedido do
   Cauã (três rodadas). Hoje: 66% da altura visível, entre 420px e 760px, e
   sem o escurecimento de antes. A foto É a primeira tela do celular — os
   botões começam logo abaixo da dobra, a um toque de rolagem. */
.links-capa {
  position: relative; height: clamp(420px, 66svh, 760px); overflow: hidden;
  background: var(--c-ink);
}
.links-capa picture, .links-capa img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 50%;
}
.links-capa img { filter: none; } /* sem escurecer: nada é escrito sobre a foto (01/10/2026) */

.links-wrap { max-width: 520px; margin: 0 auto; padding: 0 18px 3rem; }

.links-perfil { text-align: center; margin-top: -56px; position: relative; z-index: 1; }
.links-logo {
  width: 112px; height: 112px; margin: 0 auto .9rem;
  border-radius: 50%; background: var(--c-white);
  border: 4px solid var(--c-cream);
  box-shadow: 0 10px 30px -12px rgba(1,58,23,.45);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.links-logo img { width: 84%; height: auto; }
.links-perfil h1 { font-size: clamp(1.6rem, 6vw, 2rem); font-weight: 400; color: var(--c-text); margin-bottom: .35rem; }
.links-bio { color: var(--c-muted); font-size: .95rem; line-height: 1.55; max-width: 380px; margin: 0 auto; }

/* ---- Grupos e botões ---- */
.links-grupo { margin-top: 2rem; }
.links-grupo h2 {
  font-family: var(--font-sans, inherit);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-terra-dk); margin: 0 0 .7rem .2rem;
}
.links-lista { display: flex; flex-direction: column; gap: .7rem; }

/* O botão é <a> (navega) ou <button> (abre o formulário); os dois têm a
   mesma cara. Área de toque ≥ 64px, texto à esquerda, seta à direita. */
.link-btn {
  display: flex; align-items: center; gap: .9rem;
  width: 100%; min-height: 64px; padding: .85rem 1rem .85rem 1.05rem;
  background: var(--c-white); color: var(--c-text);
  border: 1px solid rgba(1,58,23,.12); border-radius: 14px;
  box-shadow: 0 6px 18px -12px rgba(1,58,23,.35);
  text-align: left; font: inherit; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.link-btn:hover { transform: translateY(-2px); border-color: var(--c-forest); box-shadow: 0 12px 26px -14px rgba(1,58,23,.45); }
.link-btn:focus-visible { outline: 3px solid var(--c-terra); outline-offset: 2px; }

.link-ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,73,29,.08);
}
.link-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--c-forest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.link-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.link-titulo { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.link-sub { font-size: .84rem; color: var(--c-muted); line-height: 1.4; }

.link-seta { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: var(--c-terra); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Destaque: o próximo evento com página própria */
.link-btn--destaque { background: var(--c-forest); color: var(--c-white); border-color: var(--c-forest); }
.link-btn--destaque .link-sub { color: rgba(250,247,243,.82); }
.link-btn--destaque .link-ic { background: rgba(250,247,243,.14); }
.link-btn--destaque .link-ic svg { stroke: var(--c-cream); }
.link-btn--destaque .link-seta { stroke: var(--c-cream); }
.link-btn--destaque:hover { border-color: var(--c-ink); }

/* WhatsApp: o verde ESCURO do cabeçalho do widget (--wa-green-dark). O verde
   claro oficial (#25D366) com texto branco fica em ~2:1 de contraste — o
   ícone é que carrega o sinal do canal. */
.link-btn--wa { background: var(--wa-green-dark); color: #fff; border-color: var(--wa-green-dark); }
.link-btn--wa .link-sub { color: rgba(255,255,255,.9); }
.link-btn--wa .link-ic { background: rgba(255,255,255,.18); }
.link-btn--wa .link-ic svg { fill: #fff; stroke: none; }
.link-btn--wa .link-seta { stroke: #fff; }

/* ---- Rodapé curto ---- */
.links-rodape { margin-top: 2.6rem; text-align: center; font-size: .8rem; color: var(--c-muted); line-height: 1.6; }
.links-rodape a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 2px; }
.links-rodape a[href*="komplexa"] { color: #1F5FD1; } /* Komplexa em azul (01/10/2026) */
.links-rodape .links-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; margin: .6rem 0; }

@media (prefers-reduced-motion: reduce) {
  .link-btn, .link-btn:hover { transition: none; transform: none; }
}
