:root {
  --navy: #0b3f63;
  --navy-2: #072c47;
  --blue: #1d6fa5;
  --sky: #7cc0ea;
  --soft: #e8f1f8;
  --ink: #13202b;
  --muted: #5d6c78;
  --line: #dde6ec;
  --bg: #f3f7fa;
  --wa: #1fa855;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: 'DM Sans', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ===== Página inteira ===== */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}

/* ===== Painel da identidade ===== */
.side {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy) url('../img/background.jpg') center / cover no-repeat;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 24px 34px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.side > * { position: relative; z-index: 1; }

.logo {
  display: block; width: 210px; max-width: 70%; height: auto;
  margin: 10px auto 22px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.25));
}
h1 { font: 700 30px/1.15 'Sora', sans-serif; letter-spacing: -.01em; }
.role { margin-top: 8px; font-size: 16px; font-weight: 500; }
.role-en { margin-top: 3px; font-size: 13px; opacity: .8; font-style: italic; }

.share {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font: 700 13px 'DM Sans', sans-serif;
  transition: background .2s;
}
.share:hover { background: rgba(255,255,255,.15); }

/* ===== Conteúdo ===== */
.main {
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: 24px 18px calc(120px + env(safe-area-inset-bottom, 0px));
}
h2 {
  font: 600 14px 'Sora', sans-serif; color: var(--muted);
  margin: 26px 4px 12px;
}
h2:first-child { margin-top: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 6px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  font-weight: 700; font-size: 13px; color: var(--navy);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.action .bubble {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.action.wa .bubble { background: linear-gradient(135deg, #2bd06f, #13803f); }
.action.mail .bubble { background: linear-gradient(135deg, #f0a43a, #d9771c); }
.action:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(11,63,99,.14); }

.list { display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.row:hover { transform: translateX(4px); border-color: #bcd3e3; box-shadow: 0 8px 20px rgba(11,63,99,.1); }
.ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.ico.wa { background: linear-gradient(135deg, #2bd06f, #13803f); }
.ico.mail { background: linear-gradient(135deg, #f0a43a, #d9771c); }
.txt { flex: 1; min-width: 0; }
.txt small { display: block; font-size: 12px; color: var(--muted); }
.txt b { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.go { color: #9fb1bd; font-size: 13px; }

/* Localizações */
.place {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; transition: box-shadow .2s, border-color .2s;
}
.place:hover { border-color: #bcd3e3; box-shadow: 0 10px 24px rgba(11,63,99,.1); }
.place-head { display: flex; gap: 14px; align-items: flex-start; }
.place .ico { background: var(--soft); color: var(--navy); }
.place b { font: 700 17px 'Sora', sans-serif; }
.place .addr { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.tag {
  display: inline-block; vertical-align: 2px; margin-left: 8px;
  font: 700 11px 'DM Sans', sans-serif; padding: 3px 9px; border-radius: 999px;
  background: var(--navy); color: #fff;
}
.tag.alt { background: var(--soft); color: var(--navy); }
.nav-btns { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.nav-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 10px; border-radius: 12px;
  font-weight: 700; font-size: 13px; transition: filter .2s, transform .2s;
}
.nav-btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.nav-btn.gm { background: var(--navy); color: #fff; }

footer { text-align: center; font-size: 12px; color: var(--muted); padding: 30px 0 0; }

/* ===== Botão fixo ===== */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(243,247,250,1) 55%, rgba(243,247,250,0));
  pointer-events: none;
}
.save {
  pointer-events: auto; width: 100%; max-width: 560px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; cursor: pointer; padding: 18px 24px; border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; font: 700 17px 'DM Sans', sans-serif;
  box-shadow: 0 12px 28px rgba(11,63,99,.4);
  transition: transform .2s, box-shadow .2s;
}
.save i { font-size: 20px; }
.save:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(11,63,99,.45); }
.save:active { transform: translateY(1px); }
.save.done { background: linear-gradient(135deg, #2bd06f, #13803f); }

/* ===== Computador: duas colunas a ocupar o ecrã todo ===== */
@media (min-width: 900px) {
  .page { grid-template-columns: 42% 58%; }
  .side {
    position: sticky; top: 0; height: 100vh;
    justify-content: center; padding: 40px;
  }
  .logo { width: 340px; margin-bottom: 30px; }
  h1 { font-size: 40px; }
  .role { font-size: 19px; }
  .main { padding: 56px 48px 140px; max-width: 760px; margin: 0; }
  .dock { left: 42%; }
  .save { max-width: 620px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }