/* ALC Representações — cartões digitais da equipe */

:root {
  --blue: #1B5180;
  --blue-light: #2E80A7;
  --orange: #E08D1D;
  --orange-dark: #C77A12;
  --ink: #1E2A36;
  --muted: #5F6E7C;
  --line: #E3EAF1;
  --tint: #EDF4FA;
  --page: #E9EFF5;
  --card: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

svg.i {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(27, 81, 128, .35), 0 2px 6px rgba(27, 81, 128, .06);
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Cabeçalho ---------- */
.hero {
  position: relative;
  height: 212px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(46, 128, 167, .9) 0%, rgba(46, 128, 167, 0) 60%),
    linear-gradient(160deg, var(--blue) 0%, #163F66 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 38px;
}

/* Faixa diagonal, ecoando os cortes do logotipo */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 56px;
  background: var(--card);
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
}

.hero a { position: relative; z-index: 1; }
.hero .logo { width: 124px; height: auto; display: block; }

/* ---------- Identificação ---------- */
.profile {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 28px;
  margin-top: -76px;
}

.photo {
  width: 136px; height: 136px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 28px -8px rgba(27, 81, 128, .45);
  background: #D9DDE1;
}

.name {
  margin-top: 14px;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.role {
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.company { font-size: .92rem; color: var(--muted); margin-top: 2px; }

.tagline {
  margin: 18px auto 0;
  max-width: 330px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
}

/* ---------- Ações rápidas ---------- */
.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 26px 22px 0;
}
.quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px 12px;
  border-radius: 18px;
  background: var(--tint);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.quick a:hover { background: #E1EDF7; }
.quick a:active { transform: scale(.96); }
.quick .dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
}
.quick a.wa .dot { background: #1FA855; }

.save {
  margin: 12px 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 10px 22px -10px rgba(224, 141, 29, .8);
  transition: transform .15s ease, background .15s ease;
}
.save:hover { background: var(--orange-dark); }
.save:active { transform: scale(.98); }

/* ---------- Links ---------- */
.section-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 30px 26px 10px;
}

.links { list-style: none; padding: 0 22px; }
.links li + li { margin-top: 8px; }
.links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .15s ease, background .15s ease;
}
.links a:hover { border-color: var(--blue-light); background: #FAFCFE; }
.links .ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--tint);
  color: var(--blue);
}
.links .txt { flex: 1; min-width: 0; }
.links .lbl { display: block; font-weight: 700; font-size: .95rem; }
.links .val {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.links .chev { color: #A9B6C2; width: 18px; height: 18px; }

/* ---------- QR / compartilhar ---------- */
.share {
  margin: 30px 22px 0;
  padding: 22px;
  border-radius: 22px;
  background: var(--tint);
  display: flex;
  align-items: center;
  gap: 18px;
}
.qr {
  width: 112px; height: 112px;
  flex-shrink: 0;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  display: grid; place-items: center;
}
.qr img, .qr canvas { width: 96px !important; height: 96px !important; display: block; }
.share-body { min-width: 0; }
.share-body p { font-size: .88rem; color: var(--ink); margin-bottom: 12px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 .8rem/1 'Lato', sans-serif;
  padding: 9px 12px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
}
.btn.ghost { background: #fff; color: var(--blue); }
.btn svg.i { width: 15px; height: 15px; }

/* ---------- Rodapé ---------- */
footer { text-align: center; padding: 30px 22px 28px; }
footer img { width: 64px; height: auto; opacity: .9; display: inline-block; }
footer p { font-size: .72rem; color: var(--muted); margin-top: 6px; }

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Celular: o cartão ocupa a tela inteira */
@media (max-width: 480px) {
  body { padding: 0; background: var(--card); }
  .card { max-width: none; border-radius: 0; box-shadow: none; min-height: 100vh; }
  .share { flex-direction: column; text-align: center; }
  .share-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}
