/* Digital business card. Builds on /styles.css: same tokens, buttons, and form fields. */

.bc-wrap {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-inline: 16px;
}

.bc-page main {
  background: none;
  padding-block: 24px 48px;
}

@media (min-width: 640px) {
  .bc-page main {
    padding-top: 48px;
  }
}

.bc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Identity */

.bc-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 8px;
  text-align: center;
}

.bc-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold-soft);
  box-shadow: var(--shadow-sm);
}

.bc-identity h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-deep);
}

.bc-title {
  margin-top: 8px;
  font-size: 18px;
  color: var(--navy-soft);
}

.bc-meta {
  margin-top: 4px;
  color: var(--muted);
}

/* Contact buttons */

.bc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.bc-actions .btn,
.bc-share .btn {
  gap: 12px;
  font-size: 18px;
}

.bc-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--cream);
}

.bc-save-help {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--navy-deep);
}

.bc-save-help p + p {
  margin-top: 8px;
}

.bc-save-help-title {
  font-weight: 600;
}

.bc-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
  text-align: center;
}

.bc-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

/* Lead form */

.bc-form {
  padding: 24px;
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
}

.bc-form .form-title {
  font-size: 24px;
}

.bc-form-sub {
  margin-top: 4px;
  color: var(--muted);
}

/* Share, on the navy below the card */

.bc-share {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.bc-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--gold-soft);
  text-align: center;
  text-underline-offset: 4px;
}

/* Full-screen QR page (/business-card/qr) */

.qr-page {
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 100vh;
  min-height: 100lvh;
  padding: 40px 24px;
  text-align: center;
  color: var(--cream);
}

.qr-page .bc-photo {
  width: 80px;
  height: 80px;
  border-width: 3px;
}

.qr-name {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.qr-agency {
  margin-top: 4px;
  color: var(--on-navy-muted);
}

.qr-frame {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fcf9f5;
  box-shadow: var(--shadow-lg);
}

.qr-frame img {
  display: block;
  width: min(280px, 70vw);
  height: auto;
}

.qr-hint {
  max-width: 20rem;
  font-size: 18px;
  color: var(--on-navy);
}

.qr-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-navy-muted);
  text-underline-offset: 4px;
}
