/* ============================================================================
 * דאבל פרינט — מערכת עיצוב
 * ----------------------------------------------------------------------------
 * הרעיון המרכזי: הרקע הוא המשטח שעליו מניחים תמונות (קריר, אפור-כחלחל),
 * והכרטיסים הם נייר הצילום עצמו (לבן חמים, מסגרת לבנה עבה, צל רך).
 * ההיפוך הזה — משטח קר, נייר חם — הוא חתימת האתר.
 * ========================================================================== */

:root {
  /* מותג */
  --navy:      #0e2a47;
  --navy-soft: #1d3f63;
  --teal:      #2fe0c7;
  --fuchsia:   #f0186b;
  --crimson:   #e11c4a;

  /* משטחים */
  --surface:   #e9eef4;   /* המשטח שעליו מונחות התמונות */
  --surface-2: #dfe7ef;
  --paper:     #fffdfa;   /* נייר הצילום */
  --line:      #d3dee8;

  /* טקסט */
  --ink:       #16232f;
  --muted:     #5f7891;
  --faint:     #93a8bd;

  /* צל — רך, כמו תמונה מונחת על שולחן */
  --lift-1: 0 1px 2px rgba(14,42,71,.06), 0 2px 8px rgba(14,42,71,.06);
  --lift-2: 0 2px 4px rgba(14,42,71,.07), 0 8px 24px rgba(14,42,71,.10);
  --lift-3: 0 4px 8px rgba(14,42,71,.08), 0 18px 44px rgba(14,42,71,.16);

  --r-sm: 6px;  --r: 12px;  --r-lg: 20px;
  --wrap: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- בסיס ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Assistant', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Suez One', Georgia, serif; font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- כותרות ומידע -------------------------------------------------------- */
.eyebrow {
  font-family: 'Heebo', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: none; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }

.h-xl { font-size: clamp(32px, 5.5vw, 56px); letter-spacing: -.01em; }
.h-lg { font-size: clamp(26px, 3.4vw, 38px); }
.h-md { font-size: clamp(20px, 2.4vw, 26px); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 52ch; }

/* ============================================================================
 *  החתימה: כרטיס־תמונה. מסגרת נייר לבנה עבה, כמו הדפסה אמיתית.
 * ========================================================================== */
.print {
  background: var(--paper);
  padding: 12px 12px 0;
  border-radius: var(--r-sm);
  box-shadow: var(--lift-2);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
.print > .print-img {
  aspect-ratio: 4/3; background: var(--surface-2);
  overflow: hidden; border-radius: 2px;
  display: grid; place-items: center;
}
.print > .print-img img { width: 100%; height: 100%; object-fit: cover; }
.print > .print-cap { padding: 14px 2px 16px; }

/* --- ניווט --------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233,238,244,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-left: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy);
  display: grid; place-items: center; color: var(--teal); font-family: 'Suez One'; font-size: 17px; }
.brand-name { font-family: 'Suez One'; font-size: 18px; color: var(--navy); line-height: 1; }
.brand-sub { font-family: 'Heebo'; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 13px; border-radius: 999px; text-decoration: none;
  font-size: 14.5px; color: var(--muted); transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(255,255,255,.7); color: var(--navy); }
.nav a[aria-current] { background: var(--navy); color: #fff; }
@media (max-width: 860px) { .nav { display: none; } }

.icon-btn {
  position: relative; width: 40px; height: 40px; border: 0; border-radius: 11px;
  background: transparent; color: var(--navy); cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.75); }
.icon-btn svg { width: 21px; height: 21px; }
.badge {
  position: absolute; top: 3px; inset-inline-start: 3px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--fuchsia); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  font-family: 'Heebo';
}

/* --- כפתורים ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 0; border-radius: 11px; cursor: pointer;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .22s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fuchsia); color: #fff; box-shadow: 0 4px 14px rgba(240,24,107,.28); }
.btn-primary:hover { background: #d9145d; box-shadow: 0 6px 20px rgba(240,24,107,.34); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-sm { padding: 9px 17px; font-size: 14px; border-radius: 9px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

.link { background: none; border: 0; padding: 0; color: var(--fuchsia);
  cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 54px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 { margin: 16px 0 18px; }
.hero h1 em { font-style: normal; color: var(--fuchsia); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.hero-facts { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.fact b { font-family: 'Suez One'; font-size: 21px; color: var(--navy); display: block; line-height: 1.1; }
.fact span { font-family: 'Heebo'; font-size: 12.5px; color: var(--muted); }

/* ערימת ההדפסות — התמונות מונחות על המשטח */
.stack { position: relative; height: 400px; }
.stack .print { position: absolute; width: 62%; }
.stack .print:nth-child(1) { top: 0;    inset-inline-end: 4%;  transform: rotate(-4.5deg); z-index: 3; }
.stack .print:nth-child(2) { top: 84px; inset-inline-start: 2%; transform: rotate(3.5deg);  z-index: 2; width: 56%; }
.stack .print:nth-child(3) { bottom: 6px; inset-inline-end: 16%; transform: rotate(-1.5deg); z-index: 1; width: 50%; }
.stack .print:hover { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: var(--lift-3); z-index: 9; }
@media (max-width: 900px) { .stack { height: 320px; } }

/* --- קטלוג --------------------------------------------------------------- */
.sec { padding: 56px 0; }
.sec-head { margin-bottom: 30px; }
.sec-head p { margin-top: 8px; }

.cat-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 9px 17px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 14.5px; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }

.card { cursor: pointer; border: 0; padding: 12px 12px 0; text-align: start; font: inherit; width: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: var(--lift-3); }
.card .name { font-family: 'Suez One'; font-size: 16.5px; color: var(--navy); }
.card .model { font-family: 'Heebo'; font-size: 11.5px; color: var(--faint); }
.card .price { margin-top: 7px; font-size: 14.5px; color: var(--muted); }
.card .price b { font-family: 'Heebo'; font-weight: 700; font-size: 17px; color: var(--fuchsia); }
.card .tag {
  position: absolute; top: 20px; inset-inline-start: 20px; z-index: 2;
  background: var(--teal); color: var(--navy); font-family: 'Heebo'; font-size: 11px;
  font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.card-wrap { position: relative; }
.card.out { opacity: .62; }
.card.out .tag { background: var(--surface-2); color: var(--muted); }

/* --- מודאל --------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(11,25,44,.55); backdrop-filter: blur(3px);
  padding: 20px; overflow-y: auto;
}
.overlay.open { display: grid; place-items: start center; }
.sheet {
  background: var(--paper); border-radius: var(--r-lg); width: min(720px, 100%);
  margin: 5vh 0; box-shadow: var(--lift-3); overflow: hidden;
  animation: rise .26s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.sheet-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h3 { font-size: 19px; color: var(--navy); margin-inline-end: auto; }
.sheet-body { padding: 22px; }
.sheet-foot {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px;
  border-top: 1px solid var(--line); background: #fff;
}
.sheet-foot .total { margin-inline-end: auto; }
.sheet-foot .total b { font-family: 'Suez One'; font-size: 22px; color: var(--navy); display: block; line-height: 1.1; }
.sheet-foot .total span { font-size: 12px; color: var(--muted); }

/* --- טפסים --------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; transition: border-color .18s;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 12.5px; color: var(--crimson); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

/* --- בחירת מידה ---------------------------------------------------------- */
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 11px; }
.size {
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--r);
  padding: 14px 10px; cursor: pointer; text-align: center; transition: all .18s;
}
.size:hover { border-color: var(--navy); }
.size[aria-pressed="true"] { border-color: var(--fuchsia); box-shadow: 0 0 0 3px rgba(240,24,107,.12); }
.size .shape { margin: 0 auto 9px; background: var(--surface-2); border-radius: 2px; }
.size .dim { font-family: 'Heebo'; font-size: 14px; font-weight: 600; color: var(--navy); }
.size .amt { font-size: 13px; color: var(--fuchsia); font-weight: 600; }
.size .min { font-size: 11px; color: var(--faint); }
.size[disabled] { opacity: .45; cursor: not-allowed; }

/* --- מסלולים ------------------------------------------------------------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
@media (max-width: 700px) { .paths { grid-template-columns: 1fr; } }
.path {
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px;
  background: #fff; cursor: pointer; text-align: start; transition: all .2s;
}
.path:hover { border-color: var(--navy); transform: translateY(-2px); }
.path h4 { font-size: 16px; color: var(--navy); margin-bottom: 5px; }
.path p { font-size: 13.5px; color: var(--muted); margin: 0; }
.path .cost { font-family: 'Heebo'; font-size: 12.5px; font-weight: 700; color: var(--fuchsia); margin-top: 9px; display: block; }

/* --- עגלה ---------------------------------------------------------------- */
.line-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item .thumb { width: 60px; height: 60px; border-radius: 8px; background: var(--surface-2); flex: none; overflow: hidden; }
.line-item .info { flex: 1; min-width: 0; }
.line-item .info b { display: block; color: var(--navy); font-size: 15px; }
.line-item .info small { color: var(--muted); font-size: 12.5px; }
.line-item .amt { font-family: 'Heebo'; font-weight: 700; color: var(--navy); }

.totals { margin-top: 18px; }
.totals .r { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; color: var(--muted); }
.totals .r.sum { border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 13px;
  font-family: 'Suez One'; font-size: 19px; color: var(--navy); }

/* --- מצבים --------------------------------------------------------------- */
.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty h3 { color: var(--navy); margin-bottom: 8px; }

.note { padding: 13px 16px; border-radius: var(--r); font-size: 13.5px; line-height: 1.6; }
.note-info { background: #eaf7ff; color: #14506e; border-inline-start: 3px solid #2b9fd6; }
.note-warn { background: #fff6e6; color: #7a5c00; border-inline-start: 3px solid #f0a500; }
.note-ok   { background: #eafaf4; color: #12634a; border-inline-start: 3px solid var(--teal); }
.note-err  { background: #fdeef1; color: #8d1030; border-inline-start: 3px solid var(--crimson); }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #f2f6fa 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r-sm); }
@keyframes sk { to { background-position: -200% 0; } }

.toast {
  position: fixed; inset-block-end: 22px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--navy); color: #fff; padding: 13px 22px; border-radius: 11px;
  box-shadow: var(--lift-3); z-index: 200; font-size: 14.5px;
  animation: rise .24s var(--ease);
}

/* --- כותרת תחתונה -------------------------------------------------------- */
.site-foot { background: var(--navy); color: #b9cbdd; margin-top: 60px; padding: 46px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-foot h4 { color: #fff; font-size: 15px; margin-bottom: 13px; }
.site-foot a { color: #b9cbdd; text-decoration: none; }
.site-foot a:hover { color: var(--teal); }
.hours { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,.12); }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px;
  font-size: 12.5px; color: #7d95ac; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* --- מסכים צרים ---------------------------------------------------------- */
@media (max-width: 480px) {
  .hero { padding: 34px 0 44px; }
  .hero-facts { gap: 18px; }
  .sheet { margin: 0; border-radius: var(--r) var(--r) 0 0; min-height: 92vh; }
  .sheet-foot { flex-wrap: wrap; }
  .sheet-foot .btn { flex: 1; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card .name { font-size: 14.5px; }
  .size-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* --- הודעת הרצה ---------------------------------------------------------- */
.ribbon {
  background: var(--navy); color: var(--teal); text-align: center;
  padding: 8px 16px; font-size: 13.5px; font-family: 'Heebo';
}
