/* Nelsane Wellspring — cartão de visita digital (/card/). Só é carregado nessa página. */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 700; font-stretch: 100%; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 700; font-stretch: 100%; font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --azul: #0b142e;
  --ouro: #e2b458;
  --ouro-claro: #f3d58d;
  --tinta: #15151b;
  --branco: #fff;
  --texto: rgba(255, 255, 255, .86);
  --fraco: rgba(255, 255, 255, .64);   /* contraste ≥ 7:1 sobre o azul-noite */
  --linha: rgba(255, 255, 255, .11);
  --titulos: "Bricolage Grotesque", system-ui, sans-serif;
  --base: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  font-family: var(--base); font-size: 16px; line-height: 1.5; color: var(--texto);
  background:
    radial-gradient(60% 50% at 88% 0%, rgba(226, 180, 88, .13), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(60, 90, 170, .22), transparent 70%),
    var(--azul);
  background-attachment: fixed;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 20px 28px;
}
p, h1, h2, ul { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }

.so-leitor {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Disposição: cartão + painel do QR Code (computador) ---------- */
.palco {
  width: 100%; max-width: 780px;
  display: grid; grid-template-columns: minmax(0, 440px) 270px; gap: 28px;
  align-items: start; justify-content: center;
}

.cartao, .lado {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.cartao { border-radius: 28px; padding: 32px 30px 28px; }
.cartao::before { /* fio dourado no topo */
  content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ouro), transparent); opacity: .8;
}

.cartao-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartao-logo img { width: 52px; }
.idiomas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.idiomas a { color: var(--fraco); text-decoration: none; padding: 7px 8px; border-radius: 8px; transition: color .15s ease, background-color .15s ease; }
.idiomas a:hover { color: var(--branco); }
.idiomas a[aria-current] { color: var(--ouro-claro); background: rgba(226, 180, 88, .12); }

.cartao-empresa { margin-top: 26px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ouro); }
h1 { margin-top: 8px; font-family: var(--titulos); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; color: var(--branco); }
.cartao-funcao { margin-top: 10px; font-size: 16px; color: var(--texto); }
.cartao-local { margin-top: 12px; display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--fraco); }
.cartao-local .ic { width: 16px; height: 16px; color: var(--ouro); }

/* ---------- Botões ---------- */
.cartao-accoes { margin-top: 26px; display: grid; gap: 10px; }
.botao {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font: 600 15px/1.2 var(--base); padding: 15px 18px; border-radius: 12px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.botao-ouro { background: var(--ouro); color: var(--tinta); }
.botao-ouro:hover { background: var(--ouro-claro); }
.botao-linha { background: rgba(255, 255, 255, .06); color: var(--branco); border-color: rgba(255, 255, 255, .22); }
.botao-linha:hover { background: rgba(255, 255, 255, .11); }

/* Partilha: o próprio telemóvel quando existe (cartao.js), senão este painel */
.partilha summary { list-style: none; }
.partilha summary::-webkit-details-marker { display: none; }
.partilha[open] summary { border-color: rgba(226, 180, 88, .55); }
.partilha-painel {
  margin-top: 10px; padding: 14px; border-radius: 14px;
  background: rgba(8, 14, 34, .6); border: 1px solid var(--linha);
}
.partilha-copiar { display: flex; gap: 8px; }
.partilha-copiar input {
  flex: 1 1 auto; min-width: 0; font: 400 14px/1.2 var(--base); color: var(--texto);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--linha); border-radius: 10px; padding: 11px 12px;
}
.botao-copiar {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font: 600 14px/1 var(--base); color: var(--tinta); background: var(--ouro);
  border: 0; border-radius: 10px; padding: 0 14px; cursor: pointer;
}
.botao-copiar:hover { background: var(--ouro-claro); }
.botao-copiar .ic { width: 16px; height: 16px; }
.partilha-redes { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.partilha-redes a {
  display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--branco);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--linha);
}
.partilha-redes a:hover { border-color: rgba(226, 180, 88, .45); }
.partilha-redes .ic { width: 17px; height: 17px; color: var(--ouro-claro); }

/* ---------- Contactos ---------- */
.contactos { margin-top: 26px; border-top: 1px solid var(--linha); }
.contactos li { border-bottom: 1px solid var(--linha); }
.contactos a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 2px; text-decoration: none; color: var(--branco); }
.contacto-icone {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: var(--ouro-claro); background: rgba(226, 180, 88, .1); border: 1px solid rgba(226, 180, 88, .22);
  transition: background-color .15s ease;
}
.contacto-texto { min-width: 0; }
.contactos small { display: block; font-size: 12.5px; color: var(--fraco); letter-spacing: .02em; }
.contacto-valor { display: block; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.contactos a > .ic { flex: none; margin-left: auto; width: 16px; height: 16px; color: var(--fraco); transition: transform .2s ease, color .15s ease; }
.contactos a:hover .contacto-icone { background: rgba(226, 180, 88, .18); }
.contactos a:hover > .ic { color: var(--ouro-claro); transform: translateX(2px); }

/* ---------- QR Code ---------- */
.qr img { width: 100%; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(226, 180, 88, .5), 0 18px 40px -20px rgba(0, 0, 0, .6); }
.lado { border-radius: 24px; padding: 26px; text-align: center; }
.lado .qr { width: 190px; margin: 0 auto; }
.lado h2 { margin-top: 18px; font: 700 17px/1.2 var(--titulos); color: var(--branco); }
.lado p { margin-top: 6px; font-size: 14px; color: var(--fraco); }
.qr-descarregar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; font-size: 13px; font-weight: 600; }
.lado .qr-descarregar { margin-top: 14px; }
.qr-descarregar .ic { width: 16px; height: 16px; color: var(--fraco); }
.qr-descarregar a { color: var(--ouro-claro); text-underline-offset: 4px; text-decoration-color: rgba(243, 213, 141, .45); padding: 6px 2px; }
.qr-movel { display: none; }

.cartao-rodape { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 13px; color: var(--fraco); }
.cartao-rodape a { text-decoration: none; padding: 4px 2px; }
.cartao-rodape a:hover { color: var(--branco); text-decoration: underline; }

/* Confirmação discreta (ligação copiada) */
.aviso {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 10;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: rgba(19, 32, 63, .97); color: var(--branco); border: 1px solid rgba(226, 180, 88, .45);
  padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  transition: opacity .2s ease, transform .2s ease;
}
.aviso.visivel { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Telemóvel: uma coluna, QR Code no fim do cartão ---------- */
@media (max-width: 760px) {
  body { justify-content: flex-start; padding: 16px 14px 22px; }
  .palco { grid-template-columns: 1fr; max-width: 440px; }
  .lado { display: none; }
  .cartao { padding: 24px 20px 22px; border-radius: 24px; }
  h1 { font-size: 30px; }
  .qr-movel { display: block; margin-top: 24px; text-align: center; }
  .qr-movel img { width: 160px; margin: 0 auto; }
  .qr-movel p { margin-top: 10px; font-size: 13.5px; color: var(--fraco); }
  .qr-movel .qr-descarregar { margin-top: 6px; }
}
@media (max-width: 360px) {
  .partilha-copiar { flex-direction: column; }
  .botao-copiar { justify-content: center; min-height: 44px; }
  .partilha-redes { grid-template-columns: 1fr; }
}

/* ---------- Entrada discreta ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cartao { animation: surgir .7s cubic-bezier(.2, .7, .2, 1) both; }
  .lado { animation: surgir .7s cubic-bezier(.2, .7, .2, 1) .12s both; }
  @keyframes surgir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .cartao, .lado { background: #16213f; }
}
