/* Nauticolour · coming soon. Cores do Manual de Normas V1.0 (mar 2026).
   Michroma no lugar da Field Gothic (paga, sem licença web); Figtree no texto. Ambas OFL, em /fonts. */

@font-face { font-family: "Michroma"; src: url("/fonts/michroma-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --nauti-blue: #313579;
  --deep-purple: #282d65;
  --flare-orange: #e65300;
  --pale-sand: #e5e1e6;
  --letra-titulo: "Michroma", "Arial", sans-serif;
  --letra-texto: "Figtree", system-ui, "Segoe UI", Arial, sans-serif;
  --transicao: 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  overflow-x: hidden;
  background: var(--nauti-blue);
  color: var(--pale-sand);
  font-family: var(--letra-texto);
  -webkit-font-smoothing: antialiased;
}

/* Símbolo grande em marca de água, como na capa do manual (3%). */
.marca-de-agua {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/img/simbolo.svg") center / auto min(122vh, 1100px) no-repeat;
  opacity: 0.03;
}

.conteudo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logotipo { width: 232px; height: auto; margin-bottom: 56px; }

.titulo {
  margin: 0 0 32px;
  font-family: var(--letra-titulo);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.05rem + 2.6vw, 3.375rem);
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.descricao {
  max-width: 760px;
  margin: 0 0 32px;
  font-size: clamp(1rem, 0.93rem + 0.3vw, 1.1875rem);
  line-height: 1.5;
  color: rgb(229 225 230 / 0.78);
  text-wrap: pretty;
}

/* Botões de contacto: cápsula com o ícone num círculo. No hover sobem 2 px e o ícone troca para seta. */
.contactos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }

.botao {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 6px 22px 6px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color var(--transicao), color var(--transicao), border-color var(--transicao), transform var(--transicao);
}

.botao__chip {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color var(--transicao), color var(--transicao);
}

.icone { grid-area: 1 / 1; transition: opacity var(--transicao), transform var(--transicao); }
.icone--seta { opacity: 0; transform: translate(-6px, 6px); }

.botao--primario { background: var(--pale-sand); color: var(--nauti-blue); }
.botao--primario .botao__chip { background: var(--nauti-blue); color: var(--pale-sand); }

.botao--secundario { background: rgb(229 225 230 / 0.06); border-color: rgb(229 225 230 / 0.28); color: var(--pale-sand); }
.botao--secundario .botao__chip { background: rgb(229 225 230 / 0.14); color: var(--pale-sand); }

@media (hover: hover) {
  .botao:hover { transform: translateY(-2px); }
  .botao:hover .icone--base { opacity: 0; transform: translate(6px, -6px); }
  .botao:hover .icone--seta { opacity: 1; transform: none; }

  .botao--primario:hover { background: transparent; border-color: var(--pale-sand); color: var(--pale-sand); }
  .botao--primario:hover .botao__chip { background: var(--pale-sand); color: var(--nauti-blue); }

  .botao--secundario:hover { background: var(--pale-sand); border-color: var(--pale-sand); color: var(--nauti-blue); }
  .botao--secundario:hover .botao__chip { background: var(--nauti-blue); color: var(--pale-sand); }
}

.botao:active { transform: translateY(0); }

/* Redes sociais */
.redes { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }

.rede {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(229 225 230 / 0.28);
  border-radius: 50%;
  background: rgb(229 225 230 / 0.06);
  color: var(--pale-sand);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color var(--transicao), color var(--transicao), border-color var(--transicao), transform var(--transicao);
}

@media (hover: hover) {
  .rede:hover { transform: translateY(-2px); background: var(--pale-sand); border-color: var(--pale-sand); color: var(--nauti-blue); }
}

/* Foco visível em qualquer fundo: contorno laranja do manual. */
a:focus-visible { outline: 2px solid var(--flare-orange); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Telemóvel */
@media (max-width: 600px) {
  body { padding: 40px 24px; }
  .logotipo { width: 168px; margin-bottom: 40px; }
  .titulo { margin-bottom: 24px; font-size: 1.5rem; }
  .descricao { margin-bottom: 24px; }
  .contactos { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-bottom: 24px; }
  .marca-de-agua { background-size: auto 76vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .botao:hover, .rede:hover { transform: none; }
}
