/* =========================================================
   Daniel Solar Engineering & Design — Digital Business Card
   Adapted style system using the main website's theme tokens
   ========================================================= */

:root {
  --e-gold-mist:    rgba(169, 129, 42, 0.12);
  --e-line:         rgba(27, 23, 18, 0.09);
  --e-shadow-soft:  0 1px 2px rgba(41, 32, 15, 0.06), 0 18px 50px -12px rgba(41, 32, 15, 0.22);
  --e-shadow-lift:  0 6px 20px -6px rgba(41, 32, 15, 0.3);
  --radius-card:    28px;
  --radius-tile:    16px;
  --card-max:       clamp(320px, 88vw, 400px);
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 18px 20px;
  background:
    radial-gradient(circle at 12% 8%, rgba(169, 129, 42, 0.12), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(169, 129, 42, 0.12), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  overflow: hidden;
}

/* Scoped Ambient background glows */
.stage .ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
  opacity: .5;
}
.stage .glow-1 {
  width: 420px; height: 420px;
  top: -140px; left: -140px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.55), transparent 70%);
}
.stage .glow-2 {
  width: 480px; height: 480px;
  bottom: -180px; right: -160px;
  background: radial-gradient(circle, rgba(169, 129, 42, 0.35), transparent 70%);
}

.card-scaler {
  transform-origin: center center;
  will-change: transform;
  z-index: 1;
}

/* ============ CARD ============ */
.business-card {
  position: relative;
  width: var(--card-max);
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFAF4 100%);
  border-radius: var(--radius-card);
  box-shadow: var(--e-shadow-soft);
  border: 1px solid rgba(169, 129, 42, 0.18);
  overflow: hidden;
  animation: card-rise .6s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-topline, .card-bottomline {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), var(--blue), var(--amber), transparent);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ HEADER ============ */
.card-header {
  padding: 26px 30px 18px;
  text-align: center;
  position: relative;
}

.logo-ring {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #FFFFFF, var(--paper-alt));
  box-shadow:
    0 0 0 1px rgba(169, 129, 42, 0.35),
    0 10px 24px -10px rgba(41, 32, 15, 0.35);
  animation: logo-pop .7s .05s cubic-bezier(.34, 1.4, .64, 1) both;
}

.logo-halo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(169, 129, 42, 0.25);
  pointer-events: none;
}
.logo-halo::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(169, 129, 42, 0.14);
}

@keyframes logo-pop {
  from { opacity: 0; transform: scale(.6) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.company-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .4px;
  color: var(--ink);
  line-height: 1.05;
}

.company-suffix {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #9C7A2E;
  text-transform: uppercase;
}

.divider {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px auto 12px;
  width: 128px;
}
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--blue)); }
.divider span:last-child { background: linear-gradient(90deg, var(--blue), transparent); }
.divider i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
  display: block;
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.25;
}

.subtagline {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: .2px;
}

/* ============ ACTION ROW ============ */
.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 24px 4px;
}

.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 13px 6px 12px;
  border-radius: var(--radius-tile);
  background: var(--white);
  border: 1px solid var(--e-line);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 16px -10px rgba(41,32,15,0.22);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.action-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--e-gold-mist);
  color: var(--blue);
}
.action-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.action-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 129, 42, 0.55);
  background: linear-gradient(180deg, #FFFFFF, var(--paper));
  box-shadow: 0 12px 22px -12px rgba(169, 129, 42, 0.45);
}
.action-btn:active { transform: translateY(-1px); }

/* ============ SAVE CONTACT BUTTON ============ */
.save-contact-container {
  padding: 14px 24px 8px;
  text-align: center;
}
.save-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-weight: 600;
  background-color: #E7C578 !important;
  color: var(--ink) !important;
  border-color: rgba(169, 129, 42, 0.3) !important;
}
.save-contact-btn:hover {
  background-color: #D4AF37 !important;
  color: var(--ink) !important;
}

/* ============ QR SECTION ============ */
.qr-section {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 24px 4px;
}

.qr-code {
  width: 116px;
  height: 116px;
  margin: 0 auto 10px;
  padding: 8px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(169, 129, 42, 0.35);
  box-shadow: var(--e-shadow-lift);
  display: flex; align-items: center; justify-content: center;
}
.qr-code svg { width: 100%; height: 100%; display: block; }

.qr-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ============ FOOTER ============ */
.card-footer {
  text-align: center;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--e-line);
  margin-top: 18px;
}
.footer-contact {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .2px;
}
.footer-copy {
  margin: 0;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: .2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 360px) {
  :root { --card-max: 92vw; }
  .card-header { padding: 22px 20px 14px; }
  .action-row { padding: 4px 16px 4px; }
  .save-contact-container { padding: 10px 16px 6px; }
  .qr-section { padding: 12px 16px 4px; }
}

@media (min-width: 700px) {
  .stage { padding: 100px 36px; }
}

@media (min-width: 1440px) {
  .stage .glow-1 { width: 520px; height: 520px; }
  .stage .glow-2 { width: 580px; height: 580px; }
}

@media (prefers-reduced-motion: reduce) {
  .business-card, .logo-ring, .card-topline, .card-bottomline { animation: none !important; }
  .action-btn { transition: none !important; }
  .card-scaler { transition: none !important; }
}

.business-card a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Remove excessive gap above global site-footer */
.site-footer {
  margin-top: 0 !important;
}
