.contact-card-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 5vw, 4rem) 0 2rem;
  background: var(--page-hero-bg);
}

.contact-card-wrap {
  width: min(100% - 2rem, 920px);
  margin-inline: auto;
}

.contact-card-page .eyebrow { color: var(--brand-dark); }

.card-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-intro p { margin: 0; }

.business-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-identity {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.6rem;
  background: var(--brand-slate);
  color: #fff;
}

.card-logo { width: 174px; height: auto; }
.card-role { color: #d9e0e7; font-size: 0.85rem; margin-bottom: 0.55rem; }
.card-identity h1 { font-size: clamp(2.4rem, 4.2vw, 3.65rem); margin-bottom: 1rem; }
.card-name-dot { color: #ee9b45; }
.card-tagline { color: #d9e0e7; margin: 0; font-size: 0.95rem; }
.card-identity-line {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, #e3bd47, var(--brand-orange) 58%, var(--brand-red));
}

.card-details { padding: 1.6rem; }
.card-details-intro { font-size: 1.28rem; font-weight: 700; margin-bottom: 0.25rem; }
.card-details-copy { color: var(--muted); font-size: 0.95rem; }
.card-contact-links { list-style: none; padding: 0; margin: 1.1rem 0 1.3rem; }
.card-contact-links li + li { border-top: 1px solid var(--line); }
.card-contact-links a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  min-height: 70px;
  color: var(--ink);
  border-radius: 4px;
}
.card-contact-links a:hover { color: var(--brand-dark); text-decoration: none; background: var(--surface-alt); }
.card-contact-links a:focus-visible,
.card-permalink:focus-visible,
.card-qr a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.card-contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--brand-dark);
}
.card-contact-icon svg,
.card-link-arrow,
.card-save svg,
.card-share-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-contact-label { display: block; color: var(--muted); font-size: 0.75rem; }
.card-contact-value { display: block; font-weight: 600; overflow-wrap: anywhere; }
.card-link-arrow { color: var(--muted); width: 16px; height: 16px; }
.card-save { width: 100%; background: var(--brand-slate); border-color: var(--brand-slate); color: #fff; font-size: 1rem; }
.card-save:hover, .card-save:focus { background: #354554; border-color: #354554; color: #fff; }
.card-save-hint { color: var(--muted); font-size: 0.78rem; text-align: center; margin: 0.65rem 0 0; }

.card-share {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  padding: 2.5rem 0 1.75rem;
}
.card-share h2 { font-size: clamp(1.6rem, 4vw, 2rem); max-width: 17ch; margin-bottom: 0.8rem; }
.card-share-copy > p:not(.eyebrow) { color: var(--muted); font-size: 0.9rem; max-width: 48ch; }
.card-permalink { display: block; color: var(--brand-dark); font-weight: 600; overflow-wrap: anywhere; font-size: 0.9rem; }
.card-share-button { margin-top: 1rem; cursor: pointer; font: inherit; font-weight: 600; }
.card-share-button[hidden] { display: none; }
.card-share-copy .card-share-status { min-height: 1.5em; margin: 0.4rem 0; color: var(--brand-dark); }
.card-qr { margin: 0; justify-self: center; text-align: center; }
.card-qr img { width: 200px; height: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-qr figcaption { color: var(--ink); font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; }
.card-qr a { display: inline-block; color: var(--brand-dark); font-size: 0.8rem; min-height: 44px; padding: 0.5rem; text-decoration: underline; }
.card-services { color: var(--muted); font-size: 0.8rem; text-align: center; margin: 0; }
.card-services span { padding-inline: 0.4rem; color: var(--brand-orange); }

@media (min-width: 660px) {
  .business-card { display: grid; grid-template-columns: 0.95fr 1.15fr; }
  .card-identity { padding: 2.5rem; }
  .card-details { padding: 2.25rem; }
  .card-share { grid-template-columns: minmax(0, 1fr) 240px; padding-inline: 0.25rem; }
  .card-qr { justify-self: end; }
}

@media (max-width: 659px) {
  .card-identity { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem; }
  .card-logo { grid-column: 2; grid-row: 1; width: 100px; }
  .card-name-block { grid-column: 1; grid-row: 1; }
  .card-identity h1 { font-size: 2.5rem; }
  .card-role { font-size: 0.75rem; }
  .card-tagline { font-size: 0.8rem; }
  .card-services { line-height: 1.8; }
}

@media (max-width: 380px) {
  .card-identity { grid-template-columns: minmax(0, 1fr) 60px; gap: 0.4rem; padding: 1.25rem; }
  .card-logo { width: 60px; }
  .card-details { padding: 1.25rem; }
  .card-contact-links a { grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 0.6rem; }
  .card-contact-icon { width: 32px; height: 32px; }
}
