:root {
  --ink-deep: #0E2A4A; --ink: #1B3A66; --ink-soft: #4A5E7D; --ink-mute: #8293AD;
  --blue: #1E4FBF; --blue-bright: #5B8BC9; --blue-wash: #E8EFFB;
  --teal: #2FBFB0; --teal-deep: #1E8A7E; --teal-wash: #E3F6F3;
  --lime: #B5E04A; --lime-wash: #EEF7DA;
  --cream: #F8F3EA; --sand: #EADFCA; --clay: #C9A37A; --parchment: #FDFAF3;
  --white: #FFFFFF; --stone: #DAD6CD;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(47, 191, 176, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(201, 163, 122, 0.24), transparent 60%),
    radial-gradient(1000px 700px at 50% 50%, rgba(30, 79, 191, 0.06), transparent 70%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ===== CARD ===== */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--parchment);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(14, 42, 74, 0.18),
    0 2px 8px rgba(14, 42, 74, 0.06);
  position: relative;
  animation: rise 800ms var(--ease-out) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Top banner */
.card-banner {
  position: relative;
  height: 170px;
  background:
    radial-gradient(400px 280px at 80% 30%, rgba(47, 191, 176, 0.35), transparent 60%),
    linear-gradient(135deg, #1B3A66 0%, #0E2A4A 100%);
  overflow: hidden;
}
.card-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
}
/* Animated breath rings */
.breath {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
}
.breath-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(47, 191, 176, 0.3);
  animation: breathe 6s ease-in-out infinite;
}
.breath-ring:nth-child(2) { animation-delay: 1s; }
.breath-ring:nth-child(3) { animation-delay: 2s; }
.breath-ring:nth-child(4) {
  animation: none;
  background: radial-gradient(circle, rgba(47, 191, 176, 0.4), transparent 60%);
  filter: blur(24px);
}
@keyframes breathe {
  0%, 100% { transform: scale(0.6); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
}

.card-logo-wrap {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  width: 92px;
  height: 92px;
  background: var(--parchment);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(14, 42, 74, 0.15), 0 0 0 4px var(--parchment);
  display: grid;
  place-items: center;
}
.card-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }

/* Body */
.card-body { padding: 64px 28px 28px; text-align: center; }

.card-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-deep);
  margin-bottom: 6px;
}
.card-role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--teal-deep);
  line-height: 1.3;
  margin-bottom: 16px;
}

.card-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--clay);
  font-weight: 400;
  padding: 10px 16px;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  margin: 0 auto 20px;
  letter-spacing: 0.01em;
}

/* Credential chips */
.creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 24px;
}
.cred {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal-deep);
}
.cred.blue { background: var(--blue-wash); color: var(--blue); }
.cred.lime { background: var(--lime-wash); color: #648B1F; }
.cred.sand { background: var(--sand); color: #8A4E2E; }

/* Services list */
.services {
  background: var(--cream);
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--sand);
  margin-bottom: 24px;
  text-align: left;
}
.services-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.services-list {
  display: grid;
  gap: 6px;
  list-style: none;
}
.services-list li {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-deep);
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.35;
}
.services-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* Action buttons (mobile-friendly) */
.actions {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--sand);
  transition: all 200ms var(--ease-out);
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
}
.action:hover, .action:focus-visible {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 42, 74, 0.08);
}
.action:active { transform: translateY(0); }
.action-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal-wash);
  color: var(--teal-deep);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.action-icon.wa { background: #E6F7EF; color: #128C7E; }
.action-icon.phone { background: var(--blue-wash); color: var(--blue); }
.action-icon.book { background: var(--ink-deep); color: var(--lime); }
.action-icon.save { background: #F5E6D7; color: #8A4E2E; }
.action-icon.web { background: var(--lime-wash); color: #648B1F; }
.action-text { flex: 1; min-width: 0; }
.action-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.action-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
  line-height: 1.25;
  word-break: break-word;
}
.action-value.small { font-size: 13px; }
.action-arrow {
  color: var(--ink-mute);
  transition: transform 200ms;
  flex-shrink: 0;
}
.action:hover .action-arrow { transform: translateX(3px); color: var(--teal-deep); }

/* Memberships footer */
.memberships {
  padding: 20px 20px 16px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--sand);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.memberships-badge {
  width: 76px; height: 38px;
  border-radius: 6px;
  background: var(--parchment);
  border: 1px solid var(--sand);
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.memberships-badge img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 3px; }
.memberships-text { flex: 1; line-height: 1.3; }
.memberships-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-deep);
}
.memberships-text small { color: var(--ink-soft); font-size: 11.5px; }

/* Share + QR */
.card-foot {
  padding: 0 20px 24px;
  text-align: center;
}
.share-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.share-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--sand);
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: all 200ms var(--ease-out);
}
.share-btn:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  transform: translateY(-2px);
}

.card-meta {
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.card-meta a { color: var(--teal-deep); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink-deep);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(14, 42, 74, 0.3);
  opacity: 0;
  transition: all 300ms var(--ease-spring);
  z-index: 100;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .breath-ring { animation: none; opacity: 0.4; }
}

/* Very small screens */
@media (max-width: 380px) {
  .card-body { padding: 60px 20px 24px; }
  .card-name { font-size: 25px; }
  .action { padding: 12px 14px; }
  .action-icon { width: 36px; height: 36px; }
}
