/* حل مشکل CLS و Font-Display */
@font-face {
  font-family: 'Vazirmatn';
  font-display: swap;
}

:root {
  --primary-red: #dc2626;
  --primary-dark-red: #991b1b;
  --accent-navy: #0f172a;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569;
  
  /* اصلاح رنگ‌های مسیریابی جهت دست‌یابی به کنتراست بالای 4.5:1 */
  --balad-color: #007a37;
  --google-color: #1a62d6;
  --insta-color: #b51252;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

/* جهت جلوگیری از Layout Shift هنگام بارگذاری اولیه */
.vcard-card {
  width: 100%;
  max-width: 440px;
  min-height: 700px;
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.header-banner {
  background: linear-gradient(135deg, var(--accent-navy) 0%, #1e293b 100%);
  padding: 35px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
}

.header-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--primary-dark-red));
}

.heart-icon-wrapper {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
  color: var(--primary-red);
  font-size: 38px;
}

.header-banner h1 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.header-banner p {
  font-size: 13px;
  opacity: 0.9;
}

.card-body {
  padding: 24px 20px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  border: none;
}

.btn-call {
  background-color: var(--primary-red);
  color: #ffffff;
}

.btn-vcard {
  background-color: #f1f5f9;
  color: var(--accent-navy);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.info-box {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  font-size: 18px;
  color: var(--primary-red);
  margin-top: 2px;
}

.info-content h3 {
  font-size: 12px;
  color: #334155;
  margin-bottom: 2px;
  font-weight: 700;
}

.info-content p {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.btn-map {
  padding: 10px 6px;
  font-size: 12px;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 700;
}

.btn-google { background-color: var(--google-color); }
.btn-balad { background-color: var(--balad-color); }
.btn-insta { background-color: var(--insta-color); }

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.badge {
  background: #fee2e2;
  color: var(--primary-dark-red);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.footer {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.domain {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}