/* ==========================================================
   Cartão Digital (iCard) — Diogo Porfírio
   Base "Onyx" (réplica do cartão Mobirise original
   cristianamoura.mobirisesite.com, adaptada a ficheiros
   estáticos: index.html + style.css + assets/)
   ----------------------------------------------------------
   Para mudar cores, editar só as variáveis em :root
   ========================================================== */

:root {
  --navy:        #1E345D;   /* barra de topo, rodapé, cartão de contacto */
  --navy-escuro: #232B45;   /* véu sobre o fundo de estrelas */
  --grafite:     #212428;   /* fundo da secção de contacto */
  --grafite-2:   #23272B;   /* fim do gradiente do cartão de contacto */
  --dourado:     #BC9D5A;   /* cor de destaque (botões, ícones, links) */
  --dourado-lt:  #D4B979;
  --texto:       #FFFFFF;
  --texto-suave: #D2D2DF;
  --cinza:       #878E99;
  --fonte: "Finlandica", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fonte);
  background: var(--grafite);
  color: var(--texto);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---------- 1. Barra de topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.topo > .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.topo-logo img { height: 52px; width: auto; }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  padding: 0 6px;
}
.menu-btn span {
  display: block; height: 2px; background: var(--dourado-lt);
  transition: transform .25s, opacity .25s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  background: var(--navy);
}
.menu.aberto { max-height: 260px; }
.menu ul { list-style: none; padding: 6px 0 18px; }
.menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 16px; color: var(--texto);
}
.menu li svg { width: 18px; height: 18px; fill: var(--dourado); flex-shrink: 0; }
.menu .btn { margin-top: 8px; }

/* ---------- Botão dourado ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: var(--dourado);
  border: 1px solid var(--dourado);
  border-radius: 6px;
  color: #fff; font-family: var(--fonte); font-size: 17px; font-weight: 600;
  box-shadow: 10px 10px 19px #1C1E22, -10px -10px 19px #262A2E;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--dourado-lt); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.menu .btn { box-shadow: none; padding: 14px 20px; }

/* ---------- 2. Apresentação (fundo de estrelas) ---------- */
.hero {
  position: relative;
  padding: 48px 0 44px;
  background: url("assets/fundo-estrelas.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--navy-escuro); opacity: .5;
}
.hero .wrap { position: relative; }
.hero-foto {
  width: 260px; height: 260px; margin: 0 auto 36px;
  border-radius: 50%;
  border: 3px solid var(--dourado);
  overflow: hidden;
  background: #fff;
  box-shadow: 10px 10px 50px rgba(210,210,223,.9);
}
.hero-foto img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 {
  font-size: 39px; font-weight: 400; line-height: 1.3; margin-bottom: 20px;
}
.hero h2 {
  font-size: 21px; font-weight: 400; color: var(--dourado); margin-bottom: 30px;
}
.hero p { font-size: 17px; color: var(--texto-suave); margin-bottom: 14px; }
.hero p strong { color: #fff; font-weight: 700; }
.hero .btn { margin-top: 28px; }

/* ---------- 3. Atalhos (fundo moradia) ---------- */
.atalhos {
  position: relative;
  padding: 72px 0;
  background: url("assets/fundo-moradia.jpg") center / cover no-repeat;
}
.atalhos::before {
  content: ""; position: absolute; inset: 0;
  background: #0F0E0E; opacity: .8;
}
.atalhos .wrap { position: relative; display: grid; gap: 44px; padding: 0 30px; }
.atalho { display: block; color: var(--dourado); }
.atalho svg { width: 40px; height: 40px; fill: none; stroke: var(--dourado); stroke-width: 1.6; margin-bottom: 18px; }
.atalho span {
  display: block; font-size: 21px; letter-spacing: .02em; line-height: 1.15;
  transition: color .2s;
}
.atalho:hover span { color: var(--dourado-lt); }

/* ---------- 4. Contacto ---------- */
.contacto { padding: 140px 0 80px; }
.cartao {
  position: relative;
  padding: 120px 20px 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy), var(--grafite-2));
  box-shadow: 10px 10px 19px #191B1F, -10px -10px 19px #23272B;
  text-align: center;
}
.cartao-logo {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  width: 200px; height: 200px;
  border-radius: 15px; overflow: hidden; background: #fff;
}
.cartao-logo img { width: 100%; height: 100%; object-fit: cover; }
.cartao h3 { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.cartao .cargo { font-size: 17px; color: var(--cinza); line-height: 1.4; }

.redes { display: flex; justify-content: center; gap: 14px; margin: 26px 0 30px; }
.redes a {
  width: 54px; height: 54px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #C9AB66, #8E7640);
  box-shadow: 6px 6px 14px #16181C, -4px -4px 12px rgba(60,70,90,.35);
  transition: transform .15s, filter .2s;
}
.redes a:hover { filter: brightness(1.1); transform: translateY(-2px); }
.redes svg { width: 22px; height: 22px; fill: #F3EEE2; }

.linha { height: 1px; background: var(--dourado); opacity: .7; margin: 0 16px 30px; }
/* sem redes sociais: a linha encosta ao cargo, por isso ganha espaço em cima */
.cargo + .linha { margin-top: 30px; }

.dado { margin-bottom: 28px; }
.dado:last-child { margin-bottom: 0; }
.dado p { font-size: 17px; margin-bottom: 4px; }
.dado a { font-size: 17px; color: var(--dourado); word-break: break-word; }
.dado a strong { font-weight: 700; }

/* ---------- 5. Rodapé ---------- */
.rodape { background: var(--navy); padding: 36px 0 40px; text-align: center; }
.rodape p { font-size: 16px; color: var(--dourado); line-height: 1.45; }
.rodape a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Ecrãs maiores ---------- */
@media (min-width: 760px) {
  .hero { padding: 72px 0 64px; }
  .hero-foto { width: 300px; height: 300px; }
  .hero h1 { font-size: 46px; }
}
