/* ═══════════════════════════════════════════════════════════
   כרטיס ביקור דיגיטלי — טטיאנה ביטון
   הפלטה נדגמה מקובץ הלוגו עצמו: רקע #EEEBE0 הוא הצבע המדויק
   של הנייר בציור, ולכן התמונה יושבת על הכרטיס בלי תפר.
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/heebo-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/heebo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --paper:      #EEEBE0;   /* נדגם מהלוגו */
  --paper-lift: #F6F4EC;
  --ground:     #E3DFD1;
  --ink:        #33382F;
  --ink-soft:   #6E7367;
  --sage:       #7E9581;
  --sage-deep:  #5C7663;
  --line:       #D8D3C2;

  --radius: 16px;
  --gap: 22px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  padding: clamp(0px, 4vw, 40px) clamp(0px, 4vw, 40px) clamp(0px, 6vw, 56px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--ground);
  color: var(--ink);
  font-family: "Heebo", system-ui, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* ── הכרטיס ─────────────────────────────────────────────── */

.card {
  width: 100%;
  max-width: 430px;
  background: var(--paper);
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 26px 64px -28px rgba(51, 56, 47, .42);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rise .5s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

/* במסך קטן הכרטיס ממלא את המסך ומוותר על הפינות והצל */
@media (max-width: 520px) {
  .card {
    border-radius: 0;
    border-inline: 0;
    border-top: 0;
    box-shadow: none;
    min-height: 100dvh;
  }
}

/* ── כותרת ──────────────────────────────────────────────── */

.hero {
  padding: 30px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  background: radial-gradient(115% 85% at 50% 6%, var(--paper-lift) 0%, var(--paper) 64%);
  border-bottom: 1px solid var(--line);
}

.mark {
  width: min(56%, 210px);
  height: auto;
  margin-bottom: 6px;
}

.name {
  margin: 0;
  font-size: clamp(27px, 7.4vw, 31px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  text-wrap: balance;
}

.role {
  margin: 2px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--sage-deep);
}

.field {
  margin: 1px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.slogan {
  margin: 15px 0 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--sage-deep);
}
.slogan::before,
.slogan::after {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--line);
}

/* ── רשת הפעולות ────────────────────────────────────────── */

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 4px;
  padding: 26px 16px 24px;
}

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.disc {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-lift);
  border: 1.5px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.action svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--sage-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--sage-deep);
}

.action:hover .disc { border-color: var(--sage); background: #fff; transform: translateY(-3px); }
.action:active .disc { transform: translateY(0) scale(.94); }

/* ── מקטעי טקסט ─────────────────────────────────────────── */

.about,
.details {
  padding: 24px 26px;
  border-top: 1px solid var(--line);
}

.about h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-soft);
}

.about p {
  margin: 0;
  font-size: 15px;
  max-width: 58ch;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.tags li {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--sage-deep);
  background: var(--paper-lift);
  border: 1px solid var(--line);
}

.details dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.details dl > div { display: flex; gap: 10px; }
.details dt { width: 62px; flex: none; color: var(--ink-soft); }
.details dd { margin: 0; }
.details a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.details a:hover { text-decoration-color: var(--sage); }
.details [dir="ltr"] { display: inline-block; font-variant-numeric: tabular-nums; }

/* ── כפתורים תחתונים ────────────────────────────────────── */

.foot {
  margin-top: auto;
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.btn-primary { background: var(--sage-deep); color: var(--paper-lift); }
.btn-primary svg { stroke: var(--paper-lift); }
.btn-primary:hover { background: #526B58; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost svg { stroke: var(--ink); }
.btn-ghost:hover { border-color: var(--sage); background: var(--paper-lift); }

.btn:active { transform: scale(.985); }

.status {
  margin: 2px 0 0;
  min-height: 18px;
  font-size: 12.5px;
  text-align: center;
  color: var(--sage-deep);
}

.legal {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
}
.legal a { color: var(--ink-soft); text-underline-offset: 3px; }

/* ── נגישות ─────────────────────────────────────────────── */

:focus-visible {
  outline: 2.5px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
