/* =====================================================================
   DEBBIE DID STUFF — Digital Business Card (Standalone)
   Red / black / cream palette — clean single-card layout
   Fonts: Playfair Display (serif) + Open Sans (body) + Tangerine (script)
   ===================================================================== */

:root {
  --red: #c80000;
  --red-dark: #a00000;
  --red-deep: #7a0000;
  --red-soft: #f4e0e0;

  --black: #1a1a1a;
  --charcoal: #2a2a2a;

  --cream: #faf8f5;
  --cream-2: #f3efe8;
  --light-gray: #f0ede8;
  --paper: #ffffff;

  --text: #333333;
  --text-light: #666666;
  --text-muted: #8a8a8a;

  --line: #e3ddd3;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Tangerine", "Brush Script MT", cursive;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 28px rgba(26,26,26,.10);
  --shadow-lg: 0 20px 60px rgba(26,26,26,.14);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; }

/* ---------- Card page + shell ---------- */
.card-page { display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; }
.card-shell {
  width: 100%; max-width: 400px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

/* ---------- Hero ---------- */
.card-hero {
  background: linear-gradient(160deg, var(--black) 0%, var(--charcoal) 100%);
  text-align: center;
  padding: 34px 22px 26px;
  position: relative;
}
.hero-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--red);
}
.avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 4px solid var(--red);
  object-fit: cover;
  margin: 0 auto 14px;
  background: #fff;
}
.card-hero h1 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700;
  color: #fff; letter-spacing: .3px;
  margin-bottom: 3px;
}
.hero-subtitle {
  font-size: 12px; font-weight: 600;
  color: var(--red);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: 13.5px; font-style: italic;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  max-width: 270px; margin: 0 auto;
}

/* ---------- Content ---------- */
.card-content { padding: 20px 18px 8px; }

/* Save to Contacts — primary CTA */
.btn-save {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
  background: var(--red); color: #fff;
  font-size: 14.5px; font-weight: 700;
  padding: 13px 16px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 12px;
}
.btn-save:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-save:active { transform: translateY(0); }
.btn-save-icon { font-size: 18px; font-weight: 800; line-height: 1; }

/* ---------- Contact Debbie dropdown ---------- */
.contact-dropdown { position: relative; margin-bottom: 12px; }
.btn-contact {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: var(--black); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-contact:hover { background: var(--charcoal); }
.contact-icon { display: flex; align-items: center; color: var(--red); }
.contact-label { flex: 1; text-align: left; }
.contact-caret { font-size: 10px; color: rgba(255,255,255,.7); transition: transform var(--transition); }

.contact-menu {
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition), margin var(--transition);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 0;
}
.contact-menu.open {
  max-height: 240px;
  margin-top: 8px;
  box-shadow: 0 8px 22px rgba(26,26,26,.10);
}
.contact-option {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}
.contact-option:last-child { border-bottom: none; }
.contact-option:hover { background: var(--light-gray); }
.co-icon { display: flex; align-items: center; color: var(--red); flex-shrink: 0; }
.co-text { display: flex; flex-direction: column; min-width: 0; }
.co-title { font-size: 13.5px; font-weight: 700; color: var(--black); }
.co-detail { font-size: 11.5px; color: var(--text-light); }

/* ---------- About Debbie ---------- */
.btn-about {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-about:hover { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-deep) 100%); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(200,0,0,.22); }
.btn-about:active { transform: translateY(0); }

/* ---------- Quick-link grid (Website / Facebook / Instagram) ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.quick-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 6px;
  background: var(--light-gray);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: center;
}
.quick-btn:hover {
  border-color: var(--red); background: #fff;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,0,0,.08);
}
.qb-icon { display: flex; align-items: center; color: var(--black); }
.quick-btn:hover .qb-icon { color: var(--red); }
.qb-label { font-size: 11.5px; font-weight: 600; color: var(--black); }

/* ---------- Feature buttons (Bid to Care / Thoroughbroads) ---------- */
.feature-btn {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--light-gray);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  margin-bottom: 10px;
}
.feature-btn:hover {
  border-color: var(--red); background: #fff;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,0,0,.08);
}
.feature-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.feature-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.feature-title { font-size: 14px; font-weight: 700; color: var(--black); }
.feature-sub { font-size: 11.5px; color: var(--text-light); line-height: 1.4; }
/* Red variant for Bid to Care */
.feature-btn.feature-red {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border: none;
}
.feature-btn.feature-red:hover {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-deep) 100%);
  box-shadow: 0 6px 18px rgba(200,0,0,.25); transform: translateY(-1px);
}
.feature-btn.feature-red .feature-title,
.feature-btn.feature-red .feature-sub { color: #fff; }

/* ---------- Signature ---------- */
.card-sig {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 0 4px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.card-sig img { width: 22px; height: 22px; object-fit: contain; }
.card-sig span {
  font-family: var(--font-script);
  font-size: 22px; font-weight: 700;
  color: var(--red);
}

/* =====================================================================
   OWNER-ONLY SHARE SECTION
   ===================================================================== */
.owner-section { padding: 6px 18px 16px; }
.owner-divider { height: 1px; background: var(--line); margin: 6px 0 14px; }
.owner-label {
  font-size: 10.5px; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 10px; text-align: center;
}
.owner-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 8px;
}
.owner-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 8px;
  background: var(--light-gray);
  color: var(--black);
  font-size: 12px; font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.owner-btn:hover {
  border-color: var(--red); background: #fff;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(200,0,0,.08);
}
.ob-icon { font-size: 15px; line-height: 1; }
.owner-btn.homescreen-btn {
  grid-column: 1 / -1;
  margin-top: 2px;
  background: var(--black); color: #fff;
}
.owner-btn.homescreen-btn:hover { background: var(--charcoal); border-color: transparent; }

/* ---------- Send Card menu ---------- */
.send-menu {
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition);
  margin-bottom: 0;
}
.send-menu.open { max-height: 200px; margin-bottom: 8px; }
.send-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--black);
  transition: all var(--transition);
  width: 100%;
}
.send-option:hover { border-color: var(--red); background: var(--light-gray); }
.send-icon { font-size: 16px; flex-shrink: 0; }
.send-label { flex: 1; text-align: left; }
.send-arrow { color: var(--red); font-size: 16px; }

/* ---------- Download to Home Screen tips ---------- */
.homescreen-tips {
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition);
  background: var(--cream);
  border-radius: var(--radius);
}
.homescreen-tips.open { max-height: 560px; padding: 14px; margin-top: 8px; }

.hs-platform-tabs {
  display: flex; gap: 6px;
  margin-bottom: 12px;
}
.hs-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 6px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
}
.hs-tab.active {
  border-color: var(--red); color: var(--red); background: #fff;
  box-shadow: 0 2px 8px rgba(200,0,0,.10);
}
.hs-tab-icon { font-size: 14px; }

.hs-platform-panel { animation: hsFade .3s ease; }
@keyframes hsFade { from { opacity: 0; } to { opacity: 1; } }
.hs-step {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 10px;
}
.hs-step:last-child { margin-bottom: 0; }
.hs-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--red); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.hs-step p { font-size: 12.5px; line-height: 1.5; color: var(--text); }
.hs-step strong { color: var(--black); }

/* ---------- Footer ---------- */
.card-footer {
  text-align: center;
  padding: 14px 20px 18px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  border-top: 1px solid var(--line);
}

/* =====================================================================
   QR CODE MODAL OVERLAY
   ===================================================================== */
.qr-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.qr-overlay.active { display: flex; }
.qr-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 340px; width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  overflow: hidden;
}
.qr-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  color: var(--text-light);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.qr-close:hover { background: var(--red); color: #fff; }
.qr-modal h2 {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--black);
  padding: 28px 20px 6px;
}
.qr-sub { font-size: 13px; color: var(--text-light); padding: 0 20px 14px; }
.qr-image-wrap {
  padding: 0 20px;
}
.qr-image-wrap img {
  width: 220px; height: 220px;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.qr-hint { font-size: 12px; color: var(--text-muted); padding: 12px 20px 6px; }
.qr-download {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 6px 0 24px;
  padding: 10px 18px;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.qr-download:hover { background: var(--red-dark); }

/* =====================================================================
   ABOUT OVERLAY
   ===================================================================== */
.about-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.about-overlay.open { display: flex; }
.about-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 440px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  position: relative;
}
.about-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff; font-size: 20px;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.about-close:hover { background: var(--red); }
.about-header {
  background: linear-gradient(160deg, var(--black) 0%, var(--charcoal) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 24px 22px;
  text-align: center;
  position: relative;
}
.about-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--red);
}
.about-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 3px solid var(--red);
  object-fit: cover;
  margin: 0 auto 12px;
  background: #fff;
}
.about-header h2 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; color: #fff;
  margin-bottom: 4px;
}
.about-role {
  font-size: 11px; font-weight: 600;
  color: var(--red);
  letter-spacing: 2px; text-transform: uppercase;
}
.about-body { padding: 26px 26px 30px; }
.about-body p {
  font-size: 14.5px; line-height: 1.7;
  color: var(--text); margin-bottom: 14px;
}
.about-body p.dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 40px; font-weight: 700;
  color: var(--red);
  float: left; line-height: 1;
  margin: 3px 7px 0 0;
}
.about-sig {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.about-sig img { width: 22px; height: 22px; object-fit: contain; }
.about-sig span {
  font-family: var(--font-script);
  font-size: 24px; font-weight: 700;
  color: var(--red);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 420px) {
  body { padding: 12px; }
  .card-content { padding: 18px 14px 8px; }
  .owner-section { padding: 6px 14px 16px; }
  .avatar { width: 96px; height: 96px; }
  .card-hero h1 { font-size: 24px; }
}
