/* ==========================================================================
   STRATEGYTECH UK — EXECUTIVE DIGITAL BUSINESS CARD STYLESHEET
   Matches StrategyTech Ltd corporate identity (#00382B / #C5A880 / #0D1117)
   ========================================================================== */

:root {
  --st-green: #00382B;
  --st-green-dark: #00241B;
  --st-green-light: #0A4E3D;
  --st-green-tint: #E8F1EE;
  --st-gold: #C5A880;
  --st-gold-dark: #9E825B;
  --st-gold-tint: #F7F3EC;
  --st-obsidian: #0D1117;
  --st-ink: #111827;
  --st-muted: #5B6770;
  --st-border: #E5E7EB;
  --st-bg: #F3F5F4;
  --st-surface: #FFFFFF;
  --shadow-card: 0 24px 48px -12px rgba(0, 36, 27, 0.18), 0 4px 16px -4px rgba(13, 17, 23, 0.08);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--st-ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 56, 43, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(197, 168, 128, 0.14) 0%, transparent 45%),
    var(--st-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

.card-wrapper {
  width: 100%;
  max-width: 460px;
  background: var(--st-surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 56, 43, 0.1);
  box-shadow: var(--shadow-card);
}

/* Header Banner */
.card-hero {
  position: relative;
  background: linear-gradient(135deg, var(--st-green-dark) 0%, var(--st-green) 60%, var(--st-green-light) 100%);
  padding: 1.4rem 1.5rem 3.4rem;
  color: #FFFFFF;
  border-bottom: 3px solid var(--st-gold);
}

.card-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(197, 168, 128, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.hero-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--st-obsidian);
  border: 1.5px solid var(--st-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #FFFFFF;
}

.brand-name span {
  color: var(--st-gold);
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  margin-top: 2px;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.45);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--st-gold-tint);
  white-space: nowrap;
}

.verified-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.28);
}

/* Identity Profile Block */
.profile-section {
  position: relative;
  padding: 0 1.5rem 1.35rem;
  text-align: center;
}

.avatar-badge {
  width: 86px;
  height: 86px;
  margin: -43px auto 0.85rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--st-obsidian) 0%, var(--st-green-dark) 100%);
  border: 3.5px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--st-gold), 0 10px 20px -6px rgba(0, 36, 27, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--st-gold);
}

.person-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--st-obsidian);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.person-role {
  margin-top: 0.28rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--st-green);
}

.person-org {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--st-muted);
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.role-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--st-green-tint);
  color: var(--st-green);
  border: 1px solid rgba(0, 56, 43, 0.12);
}

/* Primary Actions */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0 1.5rem 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  grid-column: 1 / -1;
  background: var(--st-green);
  color: #FFFFFF;
  box-shadow: 0 8px 18px -6px rgba(0, 56, 43, 0.45);
}

.btn-primary:hover {
  background: var(--st-green-dark);
}

.btn-secondary {
  background: var(--st-gold-tint);
  color: var(--st-green-dark);
  border-color: rgba(197, 168, 128, 0.5);
}

.btn-secondary:hover {
  background: #EFE7D9;
}

.btn-outline {
  background: #FFFFFF;
  color: var(--st-ink);
  border-color: var(--st-border);
}

.btn-outline:hover {
  background: #F9FAFB;
  border-color: #CBD5E1;
}

/* Details List */
.details-section {
  padding: 0 1.5rem 1.35rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 0.6rem;
}

.info-list {
  border: 1px solid var(--st-border);
  border-radius: 14px;
  overflow: hidden;
  background: #FAFAFA;
}

.info-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--st-border);
  background: #FFFFFF;
}

.info-item:last-child {
  border-bottom: none;
}

.info-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--st-green-tint);
  color: var(--st-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-meta {
  min-width: 0;
}

.info-key {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--st-muted);
}

.info-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--st-ink);
  word-break: break-word;
}

.info-sub {
  font-size: 0.75rem;
  color: var(--st-muted);
  margin-top: 1px;
}

.copy-mini-btn {
  flex-shrink: 0;
  border: 1px solid var(--st-border);
  background: #F8FAFC;
  color: var(--st-muted);
  border-radius: 7px;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-mini-btn:hover {
  background: var(--st-green-tint);
  color: var(--st-green);
  border-color: rgba(0, 56, 43, 0.25);
}

/* QR Code Panel */
.qr-section {
  padding: 0 1.5rem 1.4rem;
}

.qr-box {
  background: linear-gradient(180deg, #FBFDFC 0%, #F4F7F5 100%);
  border: 1px solid rgba(0, 56, 43, 0.14);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.qr-image-wrap {
  background: #FFFFFF;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.qr-image-wrap img {
  display: block;
  width: 112px;
  height: 112px;
}

.qr-copy {
  flex: 1;
  min-width: 0;
}

.qr-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--st-obsidian);
}

.qr-desc {
  font-size: 0.76rem;
  color: var(--st-muted);
  margin-top: 0.2rem;
  line-height: 1.45;
}

.qr-url {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--st-green);
  background: var(--st-green-tint);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.qr-actions .btn {
  padding: 0.42rem 0.72rem;
  font-size: 0.75rem;
  border-radius: 8px;
}

/* Card Footer */
.card-footer {
  background: var(--st-obsidian);
  color: rgba(255, 255, 255, 0.75);
  padding: 1rem 1.5rem;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.card-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-footer a {
  color: var(--st-gold);
  font-weight: 600;
}

.card-footer a:hover {
  text-decoration: underline;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: var(--st-obsidian);
  color: #FFFFFF;
  border: 1px solid var(--st-gold);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 440px) {
  .qr-box {
    flex-direction: column;
    text-align: center;
  }
  .qr-actions {
    justify-content: center;
  }
}

@media print {
  body {
    background: #FFFFFF;
  }
  .page-shell {
    padding: 0;
  }
  .card-wrapper {
    box-shadow: none;
    border: 1px solid #CBD5E1;
  }
  .actions-grid,
  .copy-mini-btn,
  .qr-actions,
  .toast {
    display: none !important;
  }
}
