/* Shipwright Digital Business Cards - Brand Styles */

:root {
  --color-primary: #c94a4a;
  --color-primary-hover: #b33d3d;
  --color-navy: #1a3a5c;
  --color-teal: #2a7d8c;
  --color-text: #4a4a4a;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-subtle: #f5f5f5;
  --color-border: #e0e0e0;
  --font-heading: 'Libre Caslon Text', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.5;
  background: var(--color-bg-subtle);
  min-height: 100vh;
}

.card-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
}

.banner {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: var(--space-8);
  padding-top: 0;
  text-align: center;
}

/* ===== OPTION A: Banner + Logo (no avatar) ===== */
.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -10px;
  margin-bottom: var(--space-4);
}

.logo {
  width: 172px;
  height: auto;
  display: block;
  border-radius: 8px;
  background: white;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== OPTION D: Avatar + Logo Badge ===== */
.avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -15px;
  margin-bottom: var(--space-4);
  position: relative;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal) 100%);
  color: white;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-badge {
  position: absolute;
  bottom: -5px;
  right: calc(50% - 75px);
  width: 55px;
  height: 55px;
  border-radius: var(--radius-full);
  background: white;
  padding: 4px;
  box-shadow: var(--shadow-md);
  object-fit: contain;
}

/* ===== Shared Content Styles ===== */
.card h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-navy);
  margin: 0 0 var(--space-1);
  letter-spacing: 0.5px;
}

.tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-6);
}

.cta-button {
  display: block;
  width: 100%;
  padding: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.1s ease;
  margin-bottom: var(--space-6);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.contact-info a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--color-primary);
}

.links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-subtle);
  color: var(--color-navy);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.link-button:hover {
  background: var(--color-bg);
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.link-button .arrow {
  transition: transform 0.2s ease;
}

.link-button:hover .arrow {
  transform: translateX(3px);
}

.card-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  margin-top: var(--space-2);
}

.qr-code {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-2);
  display: block;
}

.qr-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (min-width: 480px) {
  .card-content {
    padding: var(--space-10);
    padding-top: 0;
  }
  .banner { height: 160px; }
  .logo { width: 196px; }
  .avatar { width: 120px; height: 120px; font-size: 2.75rem; }
  .logo-badge { width: 60px; height: 60px; right: calc(50% - 80px); }
  .card h1 { font-size: 2rem; }
}

@media print {
  body { background: white; }
  .card { box-shadow: none; }
  .cta-button, .links, .contact-info { display: none; }
  .qr-code { width: 150px; height: 150px; }
}
