/* ============================================================
   card.css — כרטיס ביקור דיגיטלי, שי מאיר
   עמוד עצמאי לגמרי. אין תלות ב-style.css / script.js / content.js.
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --page:  #E8DECB;
  --cream: #F6F1E8;
  --navy:  #0B1F33;
  --gold:  #C8A96A;
  --muted: #5C6670;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--navy);
  font-family: "Assistant", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

/* ===== הכרטיס — יחידה אחת מרוכזת ===== */
.card {
  width: 100%;
  max-width: 368px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  border: 1px solid rgba(11, 31, 51, .07);
  border-radius: 26px;
  box-shadow: 0 26px 52px -20px rgba(11, 31, 51, .36);
  overflow: hidden;
  padding: 28px 26px 24px;
}

/* ===== תמונה ===== */
.card-photo {
  width: 100%;
  max-width: 208px;
  margin: 0 auto;
}

.card-photo picture,
.card-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, black 76%, rgba(0,0,0,.88) 89%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 76%, rgba(0,0,0,.88) 89%, transparent 100%);
}

/* ===== גוף הכרטיס ===== */
.card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 14px 0 0;
  letter-spacing: .01em;
  color: var(--navy);
  line-height: 1.15;
}

.card-tagline {
  margin: 3px 0 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
}

.card-license {
  margin: 4px 0 0;
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
  opacity: .85;
}

.card-rule {
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px 0;
  box-shadow: 0 0 10px rgba(200, 169, 106, .55);
}

.card-motto {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .003em;
}

.card-area {
  margin: 4px 0 14px;
  font-size: .82rem;
  color: var(--muted);
}

.card-remax-logo {
  height: 42px;
  width: auto;
  opacity: .92;
  margin-bottom: 16px;
}

/* ===== כפתור ראשי ===== */
.card-btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--cream);
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 48px;
  box-shadow: 0 6px 16px rgba(11, 31, 51, .18);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-btn-primary:hover {
  background: #12283f;
  border-color: rgba(200, 169, 106, .55);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 31, 51, .22);
}

.card-btn-primary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card-vcf-hint {
  width: 100%;
  margin: 7px 0 0;
  font-size: .68rem;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
}

/* ===== פעולות משניות ===== */
.card-actions {
  width: 100%;
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.card-btn-secondary {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 50px;
  padding: 9px 4px;
  background: rgba(11, 31, 51, .035);
  border: 1px solid rgba(11, 31, 51, .16);
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.card-btn-secondary svg {
  opacity: .8;
  width: 16px;
  height: 16px;
}

.card-btn-secondary:hover {
  border-color: rgba(11, 31, 51, .3);
  background: rgba(11, 31, 51, .07);
  transform: translateY(-1px);
}

.card-btn-secondary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== Facebook עסקי — משני, קטן, בתוך תחתית הכרטיס ===== */
.card-fb {
  margin-top: 16px;
  padding-top: 14px;
  width: 100%;
  border-top: 1px solid rgba(11, 31, 51, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--navy);
  opacity: .72;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  transition: color .18s ease, opacity .18s ease;
}

.card-fb svg { width: 11px; height: 11px; }

.card-fb:hover {
  color: var(--gold);
  opacity: 1;
}

.card-fb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== מובייל קטן ===== */
@media (max-width: 360px) {
  .card { padding: 24px 20px 20px; }
  .card-name { font-size: 1.5rem; }
  .card-motto { font-size: 1rem; }
}

/* ===== מסכים גבוהים — לא למתוח את הכרטיס, רק למרכז ===== */
@media (min-height: 700px) {
  body { padding: 40px 16px; }
}
