/* Digital business card (templates/pages/team_card_page.html). Mirrors the printed card. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-400.657ceef57276.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-600.4f54d6c65e11.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-700.bf5e25824fd7.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-800.9e00056eb42e.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --red: #ed1941; --red-dark: #c4102f; --ink: #2d3539; --grey: #465a65; --muted: #7c8790;
  --line: #e8ebed; --tint: #f6f7f8; --dark: #26333a; --dark-2: #1b252b;
  --font: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); line-height: 1.5;
  background: radial-gradient(120% 70% at 50% 0%, #34444d 0%, var(--dark) 45%, var(--dark-2) 100%) fixed;
}
a { color: inherit; text-decoration: none; }
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ecard { display: flex; justify-content: center; padding: clamp(16px, 5vw, 48px) 16px calc(32px + env(safe-area-inset-bottom)); }
.ecard-card {
  position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 18px;
  padding: 0 clamp(22px, 6vw, 36px) 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); overflow: hidden;
}

/* Facebook-style header: the partner's photo as the cover, the PR symbol sitting on its bottom edge. */
.ecard-cover { position: relative; margin: 0 calc(-1 * clamp(22px, 6vw, 36px)) 64px; }
.ecard-cover-img { aspect-ratio: 11 / 9; background: linear-gradient(135deg, #34444d, var(--dark-2)); overflow: hidden; }
.ecard-cover-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.ecard-cover-img::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: var(--red); }
.ecard-initials { display: grid; place-items: center; height: 100%; color: #fff; font-size: 4rem; font-weight: 800; letter-spacing: .04em; }
.ecard-logo {
  position: absolute; left: clamp(22px, 6vw, 36px); bottom: -48px; width: 96px; height: 96px; padding: 6px;
  border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(31, 42, 48, .22);
}

.ecard-name { margin: 0; font-size: clamp(1.9rem, 8vw, 2.35rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.ecard-name strong { font-weight: 800; }
.ecard-creds { margin: 10px 0 0; font-size: .86rem; color: var(--grey); letter-spacing: .01em; }
.ecard-bar { display: block; width: 56px; height: 5px; margin: 16px 0 12px; background: var(--red); }
.ecard-role { margin: 0; font-weight: 700; font-size: 1.02rem; color: var(--ink); }

.ecard-save {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 8px; padding: 15px 20px;
  border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; font-size: 1rem;
  box-shadow: 0 10px 24px rgba(237, 25, 65, .3); transition: background .2s, transform .2s;
}
.ecard-save:hover { background: var(--red-dark); transform: translateY(-1px); }
.ecard-save:focus-visible, .ecard-actions a:focus-visible, .ecard-share:focus-visible, .ecard-foot a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.ecard-actions { list-style: none; margin: 8px 0 0; padding: 0; }
.ecard-actions a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); transition: color .2s; }
.ecard-actions li:last-child a { border-bottom: 0; }
.ecard-actions a:hover { color: var(--red); }
.ecard-actions .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--tint); color: var(--red); }
.ecard-actions span { display: flex; flex-direction: column; min-width: 0; font-size: .95rem; font-weight: 600; overflow-wrap: break-word; }
.ecard-actions small { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.ecard-firm { margin-top: 22px; padding: 20px; border-radius: 12px; background: var(--tint); }
.ecard-firm h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--red); letter-spacing: -.01em; }
.ecard-firm-sub { margin: 2px 0 12px; color: var(--grey); font-size: .92rem; }
.ecard-addr { display: flex; gap: 10px; margin: 0; font-size: .92rem; color: var(--ink); }
.ecard-addr .icon { margin-top: 3px; color: var(--red); }

.ecard-qr { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.ecard-qr-code { flex: none; width: 112px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ecard-qr-code svg { display: block; width: 100%; height: auto; }
.ecard-qr p { margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
.ecard-qr p strong { display: block; color: var(--ink); font-size: .95rem; }
.ecard-share {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--grey); border-radius: 8px;
  background: #fff; color: var(--ink); font: 600 .88rem var(--font); cursor: pointer; transition: border-color .2s, color .2s;
}
.ecard-share:hover { border-color: var(--red); color: var(--red); }

.ecard-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.ecard-foot p { margin: 0 0 8px; font-size: .8rem; color: var(--muted); }
.ecard-foot a { font-size: .85rem; font-weight: 700; color: var(--red); }

@media (max-width: 360px) { .ecard-qr { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
