/* ============================================================
   SCA — DIGITAL BUSINESS CARD (card.html only)
   Uses the tokens from styles.css
============================================================ */

.vcard-page {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  background-color: var(--colour-bg);
}
.vcard-page .container {
  max-width: 520px;
}

.vcard {
  background: var(--colour-surface);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(30, 20, 10, 0.08);
  padding: clamp(1.25rem, 5vw, 2.25rem);
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

/* Head: logo + name */
.vcard__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.vcard__logo {
  width: 96px;
  height: auto;
  flex: 0 0 auto;
}
.vcard__head .section-label {
  margin-bottom: 0.35rem;
}
.vcard__name {
  font-size: clamp(1.6rem, 6vw, 2rem);
  line-height: 1.1;
  margin: 0;
}
.vcard__tagline {
  margin: 0.35rem 0 0;
  color: var(--colour-text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Promise chips */
.vcard__promise {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.vcard__promise li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--colour-accent);
  background: var(--colour-accent-subtle);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
}

/* Main buttons */
.vcard__main {
  display: grid;
  gap: 0.75rem;
}
.vcard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  font-size: 1rem;
}
.vcard svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* Small actions */
.vcard__acts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.vcard__act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 72px;
  min-width: 0;
  padding: 0.6rem 0.25rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--colour-text);
  background: var(--colour-bg);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast) var(--ease-out);
}
.vcard__act svg {
  color: var(--colour-accent);
}
.vcard__act:hover {
  border-color: var(--colour-accent);
  color: var(--colour-accent);
  transform: translateY(-1px);
}
.vcard__act span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vcard__toast {
  margin: -0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--colour-accent);
  text-align: center;
}
.vcard [hidden] {
  display: none !important;
}

/* Contact details */
.vcard__info {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--colour-border);
}
.vcard__info > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  border-bottom: 1px solid var(--colour-border);
}
.vcard__info dt {
  font-size: 0.8125rem;
  color: var(--colour-text-faint);
  flex: 0 0 auto;
}
.vcard__info dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.vcard__info a {
  color: var(--colour-text);
  font-weight: 500;
  text-decoration: none;
}
.vcard__info a:hover {
  color: var(--colour-accent);
}

/* Services */
.vcard__services {
  display: grid;
  gap: 0.5rem;
}
.vcard__services .section-label {
  margin-bottom: 0.25rem;
}
.vcard__service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-lg);
  color: var(--colour-text);
  text-decoration: none;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}
.vcard__service:hover {
  border-color: var(--colour-accent);
  background: var(--colour-accent-subtle);
}
.vcard__service strong {
  display: block;
  font-weight: 600;
}
.vcard__service small {
  display: block;
  font-size: 0.8125rem;
  color: var(--colour-text-muted);
}
.vcard__service > span:last-child {
  color: var(--colour-accent);
}

/* QR */
.vcard__qr {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--colour-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--colour-border);
}
.vcard__qr img {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
}
.vcard__qr p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--colour-text-muted);
  line-height: 1.5;
}
.vcard__qr strong {
  display: block;
  color: var(--colour-text);
}

.vcard__legal {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--colour-text-faint);
  text-align: center;
}

@media (max-width: 380px) {
  .vcard__acts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vcard__qr {
    flex-direction: column;
    text-align: center;
  }
  .vcard__logo {
    width: 72px;
  }
}
