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

   כל צבע כאן נבדק מול WCAG 2.0 AA / ת"י 5568 — יחסי הניגודיות רשומים ליד
   כל זוג. */

/* דפי האתר רחבים מטופס ההרשמה: רשת כרטיסים צריכה מקום. */
.site .wrap { width: min(1120px, 100% - 2.5rem); }

/* ---------- קישור דילוג למקלדת ---------- */

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 50;
  background: #ffffff;
  color: var(--primary);          /* 7.99:1 */
  font-weight: 700;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  inset-inline-start: 1rem;
}

/* ---------- סרגל עליון ---------- */

.topbar {
  background: rgba(8, 44, 68, .55);
  border-block-end: 1px solid rgba(255, 255, 255, .14);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #ffffff;                 /* על הסרגל הכהה — 11.95:1 */
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.topbar__brand:hover { text-decoration: underline; }

.topbar__mark {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  flex: none;
}

.topbar__cta {
  color: #0f2942;
  background: var(--accent);      /* זהב עם טקסט כהה — 6.79:1 */
  font-weight: 700;
  text-decoration: none;
  padding: .55rem 1.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.topbar__cta:hover { background: #eab873; }

/* ---------- כותרת ראשית + חיפוש ---------- */

.masthead {
  text-align: center;
  padding-block: 2rem 1.5rem;     /* צפוף יותר — הכרטיסים מתחילים מוקדם יותר על המסך */
  color: #ffffff;
}

.masthead__title {
  margin: 0 0 .9rem;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.masthead__text {
  margin: 0 auto 1.25rem;
  max-width: 46rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #dfeaf3;                 /* על הכחול — 7.72:1 (6.29:1 מעל הזוהר הזהוב) */
}

.search {
  max-width: 44rem;
  margin-inline: auto;
  text-align: start;
}

.search__label {
  display: block;
  margin-block-end: .5rem;
  font-weight: 700;
  color: #ffffff;
}

.search__row {
  display: flex;
  gap: .6rem;
  background: #ffffff;
  border-radius: 999px;
  padding: .35rem;
  box-shadow: var(--shadow);
}

.search__input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  border: 0;
  background: transparent;
  padding-inline: 1.25rem;
  border-radius: 999px;
}

.search__input::placeholder { color: #667684; }  /* על לבן — 4.68:1 */
.search__input:focus { outline: none; }
.search__row:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }

.search__btn {
  flex: none;
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  padding: .75rem 2rem;
  cursor: pointer;
}

.search__btn:hover { background: var(--primary-dark); }

/* ---------- סינון לפי תחום ---------- */

.main { padding-block-end: 1.5rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block-end: 1.75rem;
}
/* בדף הבית: לשוניות התחומים מעל שורת החיפוש — שורה אחת שגוללת לצדדים */
.masthead .filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 64rem;
  margin: 0 auto 1.4rem;
  padding: .35rem .2rem .55rem;
  justify-content: flex-start;
  scrollbar-width: thin;
  border-block-end: 1px solid rgba(255, 255, 255, .22);
}
.masthead .filter { flex: none; white-space: nowrap; }

.filter {
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  cursor: pointer;
}

.filter:hover { background: rgba(255, 255, 255, .22); }

.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f2942;                 /* 6.79:1 */
}

/* ---------- כותרת התוצאות ---------- */

.results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block-end: 1rem;
}

.results__title {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
}

.results__count {
  margin: 0;
  color: #e4eef6;                 /* על הכחול — 4.99:1 גם בנקודה הבהירה ביותר (זוהר הזהב) */
  font-size: .95rem;
}

/* ---------- כרטיסי עסקים ---------- */

.biz-cards {
  display: grid;
  /* עד 3 כרטיסים בשורה (בקשת שרה) — כל עמודה לפחות שליש מהרוחב, ולא פחות מ-20rem
     (במסך צר יותר: 2 או 1 בשורה) */
  grid-template-columns: repeat(auto-fill, minmax(max(20rem, calc((100% - 3rem) / 3)), 1fr));
  gap: 1.5rem;
}
@media (max-width: 420px) { .biz-cards { grid-template-columns: minmax(0, 1fr); } }

.biz-cards:focus { outline: none; }

.biz-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.7rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s ease;
}

.biz-card { position: relative; }
.biz-card--linked:hover { transform: translateY(-3px); }
/* הקישור (שם העסק) נמתח על כל הכרטיס; פוקוס מקלדת מסמן את כל הכרטיס */
.biz-card__link { color: inherit; text-decoration: none; }
.biz-card__link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.biz-card__link:focus-visible { outline: none; }
.biz-card__link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 3px; }
/* מה שלחיץ בעצמו יושב מעל הקישור הנמתח */
.biz-card__phone a, .biz-card__email a, .biz-card__share { position: relative; z-index: 2; }
/* כפתור השיתוף בצד שמאל של הכרטיס (הלוגו בצד ימין). ספציפיות גבוהה מ-.share */
.share.biz-card__share { position: absolute; inset-block-start: .7rem; left: .7rem; }
.share.biz-card__share .share__menu { inset-inline-end: auto; left: 0; }
.biz-card__top { padding-left: 2.6rem; }   /* מקום לכפתור השיתוף */

.biz-card__top {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-block-end: .85rem;
}

.biz-card__logo {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg);
  flex: none;
}

/* כשאין לוגו — עיגול עם האות הראשונה של שם העסק, כדי שהרשת לא תיראה חסרה. */
.biz-card__initial {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 10px;
  background: var(--bg);
  color: var(--primary);          /* 7.43:1 על ‎#f4f7fa */
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.biz-card__name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.biz-card__owner { margin: .1rem 0 0; font-size: .95rem; color: var(--muted); }   /* 6.9:1 */
.biz-card__category {
  margin: .25rem 0 0;
  font-size: .97rem;
  color: var(--primary);          /* 7.99:1 */
  font-weight: 600;
}

.biz-card__text {
  margin: 0 0 1.1rem;
  font-size: 1.04rem;
  color: var(--muted);            /* 6.89:1 */
  line-height: 1.7;
  flex: 1 1 auto;
}

.biz-card__address {
  margin: 0;
  font-size: .97rem;
  color: var(--muted);
  padding-block-start: .85rem;
  border-block-start: 1px solid var(--border);
}
.biz-card__phone {
  margin: .4rem 0 0;
  font-size: .97rem;
  color: var(--muted);            /* 6.89:1 */
  text-align: right;
}
.biz-card__phone a { color: var(--primary); }   /* 7.9:1 על לבן */
.biz-card__phone a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.biz-card__hours { margin-top: .45rem; font-size: .93rem; color: var(--muted); }
.biz-card__today { margin: 0 0 .15rem; font-weight: 700; color: var(--ink); }
.biz-card__week { list-style: none; margin: 0; padding: 0; }
.biz-card__week li { display: flex; justify-content: space-between; gap: .75rem; line-height: 1.6; }
.biz-card__range { font-variant-numeric: tabular-nums; white-space: nowrap; }
.biz-card__email {
  margin: .4rem 0 0;
  font-size: .97rem;
  color: var(--muted);            /* 6.89:1 */
  overflow-wrap: anywhere;
  text-align: right;
}
.biz-card__email a { color: var(--primary); }   /* 7.9:1 על לבן */
.biz-card__email a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- מצבים (טעינה / ריק / שגיאה) ---------- */

.state {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  margin-block: 1rem;
}

.site main > .state { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

.state__title {
  margin: 0 0 .6rem;
  color: var(--ink);
  font-size: 1.4rem;
}

.state__text {
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.state .btn { text-decoration: none; display: inline-block; }

.state--error .state__title { color: var(--error); }  /* 6.54:1 */

/* ---------- רצועת ההצטרפות ---------- */

.join {
  background: rgba(255, 255, 255, .07);
  border-block: 1px solid rgba(255, 255, 255, .16);
  padding-block: 2rem;
  text-align: center;
  color: #ffffff;
}

.join__title { margin: 0 0 .75rem; font-size: 1.7rem; }

.join__text {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  line-height: 1.7;
  color: #dfeaf3;                 /* 7.72:1 */
}

.btn--gold {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f2942;                 /* 6.79:1 */
  text-decoration: none;
  display: inline-block;
}

.btn--gold:hover { background: #eab873; }

/* ---------- כותרת תחתונה ---------- */

.site-footer {
  padding-block: 1.5rem;
  text-align: center;
  color: #e4eef6;                 /* 4.99:1 גם בנקודה הבהירה ביותר */
  font-size: .95rem;
}

.site-footer a { color: #ffffff; }

/* ==========================================================================
   דף נחיתה של עסק
   ========================================================================== */

.biz__head {
  padding-block: 2.5rem 2rem;
  color: #ffffff;
}

.biz__crumb { margin: 0 0 1.25rem; font-size: .95rem; }

/* הלוגו, שם העסק, הקטגוריה והתיאור הקצר — ממורכזים לאמצע הדף, הלוגו מעל השם.
   כפתור "חזרה לדף הבית" נשאר בפינה (biz__crumb), מחוץ לבלוק הממורכז. */
.biz__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.biz__tagline { max-width: 42rem; margin-inline: auto; }

.biz__logo {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius);
  padding: .5rem;
  flex: none;
}

.biz__name {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
}

.biz__category {
  margin: .45rem 0 0;
  display: inline-block;
  background: var(--accent);
  color: #0f2942;                 /* 6.79:1 */
  font-weight: 700;
  font-size: .9rem;
  padding: .25rem 1rem;
  border-radius: 999px;
}

.biz__tagline {
  margin: .75rem 0 0;
  font-size: 1.1rem;
  color: #dfeaf3;                 /* 7.72:1 */
  line-height: 1.6;
}

.biz__body { padding-block-end: 1.5rem; }

.biz__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 800px) {
  .biz__cols { grid-template-columns: 1fr; }
}

.biz__content, .biz__side {
  display: grid;
  /* minmax(0, 1fr) ולא auto: בלעדיו קרוסלת ההמלצות (שורה ארוכה של כרטיסים)
     מותחת את העמודה לרוחב כל הכרטיסים ושוברת את פריסת הדף. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  min-width: 0;
}

/* ---------- לוח תוכן ---------- */

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.panel__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--ink);
}

.panel__text {
  margin: 0 0 1rem;
  color: var(--muted);            /* 6.89:1 */
  line-height: 1.8;
  white-space: pre-line;          /* שומר על מעברי שורה שהעסק כתב */
}

.panel__text:last-child { margin-block-end: 0; }

/* ---------- כפתורי יצירת קשר ---------- */

/* גדולים בכוונה: חלק ניכר מהגולשים יגיעו מהטלפון, ומטרת הדף היא שיחה. */
.action {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin-block-end: .65rem;
  font-weight: 700;
}

.action--call {
  background: var(--primary);
  color: #ffffff;                 /* 7.99:1 */
}

.action--call:hover { background: var(--primary-dark); }

.action--whatsapp {
  background: #0f7b52;            /* לבן עליו — 5.28:1 */
  color: #ffffff;
}

.action--whatsapp:hover { background: #0c6544; }

.action--web {
  background: var(--bg);
  color: var(--primary);          /* 7.5:1 */
  border: 1px solid var(--border-strong);
}

.action--web:hover { background: #e7eef4; }

.action__label { font-size: .9rem; opacity: .92; }
.action__value { font-size: 1.15rem; letter-spacing: .02em; }

.action:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- פרטים ---------- */

.facts {
  margin: 1.1rem 0 0;
  padding-block-start: 1.1rem;
  border-block-start: 1px solid var(--border);
}

.facts dt {
  font-weight: 700;
  color: var(--ink);
  font-size: .9rem;
}

.facts dd {
  margin: .2rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- שעות פעילות ---------- */

.biz-hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.biz-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  border-block-end: 1px solid var(--border);
  color: var(--ink);
}

.biz-hours li:last-child { border-block-end: 0; }

.biz-hours b { font-weight: 700; }

.biz-hours span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

/* ---------- גלריה ---------- */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: .75rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg);
  display: block;
}

.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in;
  border-radius: 10px;
}
.gallery__btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.gallery__btn:hover img { filter: brightness(1.05); }

/* ---------- תמונה בגודל מלא ---------- */
.photo-dialog {
  width: min(1100px, 100% - 1.5rem);
  max-height: 95vh;
  padding: 2.6rem .8rem .8rem;
  border: 0; border-radius: var(--radius);
  background: #0c2231; color: #ffffff;
  box-shadow: var(--shadow);
}
.photo-dialog::backdrop { background: rgba(5, 22, 36, .85); }
/* X ברור על הרקע הכהה (עיגול לבן) — הכלל הכללי של quote-dialog__close צבע אותו כהה על כהה */
.photo-dialog .photo-dialog__close {
  z-index: 2; width: 2.75rem; height: 2.75rem; font-size: 1.7rem;
  color: #0f2942; background: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.photo-dialog .photo-dialog__close:hover { background: #e4eef6; }
.photo-dialog__close:focus-visible { outline-color: var(--accent); }
.photo-dialog__img {
  display: block; margin-inline: auto;
  max-width: 100%; max-height: calc(95vh - 7.5rem);
  object-fit: contain; border-radius: 8px; background: #061520;
}
.photo-dialog__bar { display: flex; align-items: center; gap: .8rem; margin-block-start: .7rem; }
.photo-dialog__caption { flex: 1 1 auto; margin: 0; text-align: center; line-height: 1.5; }
.photo-dialog__count { color: #e4eef6; font-variant-numeric: tabular-nums; }   /* 4.99:1 על הרקע הכהה */
.photo-dialog__nav {
  flex: none; width: 2.6rem; height: 2.6rem; font: inherit; font-size: 1.9rem; line-height: 1;
  color: #ffffff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer;
}
.photo-dialog__nav:hover { background: rgba(255, 255, 255, .25); }
.photo-dialog__nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.gallery figcaption {
  margin-block-start: .4rem;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- המלצות ---------- */

/* (עיצוב ההמלצות — ראו "המלצות: קרוסלה" בסוף הקובץ) */

/* ---------- טופס בקשת קטלוג ---------- */

.field__label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-block-end: .4rem;
}

.field__opt {
  font-weight: 400;
  color: var(--muted);
  font-size: .9rem;
}

.field__input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: .7rem .9rem;
}

.field__input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--primary);
}

textarea.field__input { resize: vertical; }

.catalog__done {
  margin: 1rem 0 0;
  color: var(--success);          /* 5.28:1 */
  font-weight: 700;
}

/* ---------- כיבוד העדפת תנועה מופחתת ---------- */

@media (prefers-reduced-motion: reduce) {
  .biz-card { transition: none; }
  .biz-card:hover { transform: none; }
}

/* ---------- קטלוג להורדה ---------- */

.downloads { list-style: none; margin: 0; padding: 0; }
.downloads li + li { margin-block-start: .6rem; }

.download {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  color: var(--ink);
}
.download:hover { background: #e7eef4; }
.download:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.download__name { font-weight: 700; overflow-wrap: anywhere; }
.download__meta { font-size: .85rem; color: var(--muted); }   /* 6.89:1 על #f4f7fa — 6.5:1 */

/* ---------- המלצות: קרוסלה ---------- */

/* שורה אחת של כרטיסים בגובה קבוע; גוללים הצידה (חצים / החלקה / מקלדת),
   ולחיצה על כרטיס פותחת אותו בגודל מלא בחלון. */

.quotes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1rem;
}
.quotes-head .panel__title { margin: 0; }
.quotes-head__count { font-size: .95rem; font-weight: 400; color: var(--muted); }

.quotes-nav { display: flex; gap: .45rem; }
.quotes-nav__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
}
.quotes-nav__btn:hover:not([disabled]) { background: #eef4f8; border-color: var(--primary); }
.quotes-nav__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.quotes-nav__btn[disabled] { color: var(--border-strong); cursor: default; }

.quotes {
  list-style: none;
  margin: 0;
  padding: .2rem .2rem .7rem;      /* מקום לטבעת הפוקוס ולפס הגלילה */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13.5rem, calc((100% - 2rem) / 3));
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
@media (max-width: 560px) {
  .quotes { grid-auto-columns: 78%; }   /* בנייד: כרטיס וקצה של הבא — רמז שאפשר להחליק */
}

.quote-card { scroll-snap-align: start; display: flex; }

.quote-card__btn {
  position: relative;   /* מעגן את טקסט ה-sr-only בתוך הכרטיס — אחרת הוא בורח מהקרוסלה ויוצר גלילה אופקית */
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: 100%;
  height: 12.5rem;
  padding: .9rem 1rem;
  font: inherit;
  text-align: start;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: 10px;
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.quote-card__btn:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(3, 18, 30, .12); }
.quote-card__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.quote-card__img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.quote-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  line-height: 1.6;
  font-size: .95rem;
  white-space: pre-line;
  flex: 0 1 auto;
}
/* כרטיס עם תמונה וגם טקסט — הטקסט מקוצר לשתי שורות כדי שהתמונה תיראה */
.quote-card__img + .quote-card__text { -webkit-line-clamp: 2; line-clamp: 2; flex: none; }
.quote-card__author {
  margin-block-start: auto;
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);           /* 7.43:1 על #f4f7fa */
}

/* ---------- המלצה בגודל מלא ---------- */

.quote-dialog {
  width: min(640px, 100% - 2rem);
  max-height: min(90vh, 900px);
  padding: 2.4rem 1.6rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  background: var(--card);
  overflow: auto;
}
.quote-dialog::backdrop { background: rgba(5, 22, 36, .72); }
.quote-dialog__close {
  position: absolute;
  inset-block-start: .5rem;
  inset-inline-end: .5rem;
  width: 2.4rem;
  height: 2.4rem;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.quote-dialog__close:hover { background: var(--bg); }
.quote-dialog__close:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.quote-dialog__img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  margin-inline: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.quote-dialog__text {
  margin: 1rem 0 0;
  line-height: 1.8;
  white-space: pre-line;
  font-size: 1.05rem;
}
.quote-dialog__img + .quote-dialog__text { margin-block-start: 1rem; }
.quote-dialog__text:first-child { margin-block-start: 0; }
.quote-dialog__author { margin: 1rem 0 0; font-weight: 700; color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  .quotes { scroll-behavior: auto; }
  .quote-card__btn { transition: none; }
}

/* ---------- כרטיסים לפי מסלול ---------- */

/* חינמי: אותו כרטיס, בלי התנהגות של קישור */
.biz-card--basic { cursor: default; }
.biz-card--basic:hover { transform: none; }

/* מסלול בתשלום: מסגרת זהב דקה — "בולט יותר", בלי לשנות את הסדר או הגודל */
/* מודגש בבירור (בקשת שרה 9.10): מסגרת זהב עבה, הילה זהובה, ופס זהב בראש הכרטיס */
.biz-card--highlighted {
  position: relative;
  border: 3px solid #f0b55e;
  background: linear-gradient(180deg, #fff6e6 0%, #ffffff 40%);
  box-shadow:
    0 0 0 3px #ffd89a,
    0 0 22px 4px rgba(255, 205, 120, .55),
    0 8px 20px rgba(3, 18, 30, .25);
}
.biz-card--highlighted::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 6px;
  background: linear-gradient(90deg, #f0b55e, #ffd89a, #f0b55e);
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
}
.biz-card--highlighted:hover {
  box-shadow:
    0 0 0 4px #ffd89a,
    0 0 30px 6px rgba(255, 205, 120, .7),
    0 8px 20px rgba(3, 18, 30, .25);
}

/* ---------- דף המסלולים ---------- */

.plans-hero { color: #ffffff; text-align: center; padding-block: 2.5rem 1.5rem; }
.plans-hero__title { margin: 0 0 .75rem; font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.plans-hero__text { max-width: 40rem; margin: 0 auto; color: #dfeaf3; line-height: 1.7; }   /* 7.72:1 */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin-block: 1rem 1.5rem;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem;
}
.plan--featured { border: 2px solid var(--accent); }
.plan__name { margin: 0 0 .25rem; font-size: 1.35rem; color: var(--ink); }
.plan__price { margin: 0 0 .8rem; font-weight: 700; color: var(--primary); }   /* 7.9:1 */
.plan__desc { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; }
.plan__list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .45rem; flex: 1; }
.plan__item { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.5; }
.plan__item--no { color: var(--muted); }
.plan__mark { flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--success); width: 1.2rem; height: 1.5rem; }
.plan__item--no .plan__mark { color: var(--border-strong); }
.plan .btn { text-align: center; text-decoration: none; display: block; padding-inline: 1rem; }
.plans__note { color: #e4eef6; text-align: center; max-width: 44rem; margin: 1.6rem auto 2.5rem; line-height: 1.7; }   /* 4.99:1 */


/* ---------- פינת עדכונים ---------- */

.panel--updates { border-inline-start: 5px solid var(--accent); }
.updates { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.update { background: var(--bg); border-radius: 10px; padding: .9rem 1.1rem; }
.update--urgent { background: #fff6e8; border: 1px solid #f0c98a; }
.update__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.update__tag {
  background: #b3261e; color: #ffffff;        /* 6.5:1 */
  font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .1rem .6rem;
}
.update__title { margin: 0; font-size: 1.05rem; color: var(--ink); }
.update__body { margin: .4rem 0 0; line-height: 1.7; white-space: pre-line; color: var(--ink); }
.update__meta { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- מאמרים ---------- */

.articles { display: grid; gap: .6rem; }
.article { background: var(--bg); border-radius: 10px; padding: 0 1rem; }
.article__summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .9rem 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--primary);
}
.article__summary::-webkit-details-marker { display: none; }
.article__summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.article[open] .article__summary::after { content: "–"; }
.article__summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.article__date { font-weight: 400; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.article__body { padding: 0 0 1rem; line-height: 1.8; white-space: pre-line; color: var(--ink); }

/* ---------- שעות: היום/מחר + שינויים קרובים ---------- */
.today { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .35rem; }
.today__item { background: var(--bg); border-radius: 8px; padding: .5rem .8rem; line-height: 1.5; }
.today__item--exception { background: #fff6e8; border: 1px solid #f0c98a; }
.exceptions { margin-block-start: 1rem; padding-block-start: .8rem; border-block-start: 1px solid var(--border); }
.exceptions__title { margin: 0 0 .4rem; font-size: .95rem; color: var(--muted); }
.exceptions__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .95rem; }

/* ---------- באנרים ---------- */

/* ---------- מכירות בבית דוד שאול ---------- */
/* ---------- מכירות בבית דוד שאול: כפתור ליד החיפוש + עמוד /sales ---------- */
.sales-link-wrap { max-width: 44rem; margin: .9rem auto 0; text-align: center; }
.sales-link {
  display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; justify-content: center;
  padding: .55rem 1.2rem; border-radius: 999px;
  color: #ffe6c4;                                   /* 4.86:1 גם בנקודה הבהירה של הרקע */
  border: 2px solid rgba(255, 230, 196, .7);
  font-weight: 700; text-decoration: none;
}
.sales-link svg { width: 22px; height: 22px; flex: none; }
.sales-link:hover { background: rgba(255, 255, 255, .1); color: #ffffff; border-color: #ffffff; }
.sales-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sales-link__count {
  background: var(--accent); color: #0c405f;        /* 5.1:1 */
  border-radius: 999px; padding: .05rem .65rem; font-size: .88rem; font-weight: 800;
}
.sales-wrap { padding-block-end: 2rem; }
.sales { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 1rem; max-width: 46rem; }
.sales__item {
  background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem; border-inline-start: 5px solid var(--accent);
}
.sales__date { margin: 0 0 .25rem; font-weight: 800; color: var(--primary); }   /* 7.9:1 */
.sales__title { margin: 0; font-size: 1.2rem; }
.sales__body { margin: .5rem 0 0; line-height: 1.75; white-space: pre-line; }

/* ---------- דפים משפטיים ---------- */
.legal { padding-block: 1.5rem 3rem; }
.legal__wrap { display: grid; gap: 1.25rem; max-width: 820px; }
.legal__panel { line-height: 1.8; }
.legal__panel h2 { margin: 1.5rem 0 .5rem; font-size: 1.15rem; color: var(--primary); }
.legal__panel h3 { margin: 1rem 0 .3rem; font-size: 1rem; color: var(--ink); }
.legal__panel ul, .legal__panel ol { padding-inline-start: 1.3rem; margin: 0 0 .8rem; }
.legal__panel li { margin-block-end: .35rem; }
.legal__title { margin: 0 0 .6rem; font-size: 1.6rem; color: var(--ink); }
.legal__updated { margin: 0 0 .3rem; font-size: .88rem; color: var(--muted); }
.legal__note { background: var(--bg); border-radius: 8px; padding: .7rem .9rem; color: var(--muted); font-size: .92rem; }
.site-footer__legal { margin: .4rem 0 0; font-size: .9rem; }
.site-footer__legal a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- כרטיסי מסלולים — משותף ל-/plans ול-/join (public/plan-cards.js) ---------- */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
/* מתחת לרוחב טאבלט: מסלול מתחת למסלול */
@media (max-width: 760px) { .lp-plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }
.lp-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem;
}
.lp-plan--paid { border: 3px solid #f0b55e; box-shadow: 0 0 0 3px #ffd89a, 0 0 22px 4px rgba(255, 205, 120, .45), 0 8px 20px rgba(3, 18, 30, .25); }
.lp-plan--featured { background: linear-gradient(180deg, #fff6e6 0%, #ffffff 40%); }
.lp-plan__badge {
  position: absolute; inset-block-start: -.9rem; inset-inline-start: 1.2rem; margin: 0;
  background: #10557f; color: #ffffff; font-weight: 800; font-size: .85rem;
  border-radius: 999px; padding: .2rem .8rem;
}
.lp-plan__name { margin: 0; font-size: 1.35rem; }
.lp-plan__sub { margin: .15rem 0 0; color: var(--muted); font-weight: 700; }
.lp-plan__price { margin: .8rem 0 .9rem; color: var(--primary); font-size: 1.05rem; line-height: 1.6; }
.lp-plan__price b { font-size: 1.5rem; }
.lp-plan__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; flex: 1; align-content: start; }
.lp-plan__row { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.55; }
.lp-plan__mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.55rem; color: var(--success); }   /* 5.3:1 */
.lp-plan__row--new strong { color: var(--ink); font-weight: 800; }
.lp-plan__rownote { display: block; color: var(--muted); font-size: .92rem; }
.lp-plan__cta { text-align: center; text-decoration: none; display: block; padding-inline: 1rem; margin-block-start: .6rem; }

/* בטלפון: מקום לכפתור הנגישות הצף, שלא יסתיר את הקרדיט בתחתית */
@media (max-width: 560px) { .site-footer { padding-bottom: 5rem; } }

/* ---------- סרגל ניווט עליון: כניסת משתמשים / בעלי עסקים / הרשמה ---------- */
.topnav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.topnav__link {
  color: #ffffff; text-decoration: none; font-weight: 700;          /* 11.95:1 על הסרגל */
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); white-space: nowrap;
}
.topnav__link:hover { background: rgba(255, 255, 255, .14); }
.topnav__link[aria-current="page"] { background: rgba(255, 255, 255, .18); border-color: #ffffff; }
.topnav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .topbar__inner { flex-wrap: wrap; justify-content: center; }
  .topnav { justify-content: center; width: 100%; }
  .topnav__link, .topnav .topbar__cta { padding: .42rem .8rem; font-size: .92rem; }
}

/* ---------- הכל / פתוח עכשיו ---------- */
.open-toggle {
  display: inline-flex; margin-block-start: .9rem; padding: .25rem; gap: .25rem;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px;
}
.open-toggle__btn {
  font: inherit; font-weight: 700; color: #ffffff; background: transparent;
  border: 0; border-radius: 999px; padding: .4rem 1.1rem; cursor: pointer;
}
.open-toggle__btn[aria-pressed="true"] { background: var(--accent); color: #0f2942; }   /* 6.79:1 */
.open-toggle__btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }

/* ---------- כפתור שיתוף ---------- */
.share { position: relative; display: inline-block; }
.share__btn {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0;
  color: var(--primary); background: #ffffff; border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
}
.share__btn:hover { background: var(--bg); }
.share__btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.share__menu {
  position: absolute; inset-block-start: calc(100% + .35rem); inset-inline-end: 0; z-index: 30;
  list-style: none; margin: 0; padding: .35rem; min-width: 11rem;
  background: #ffffff; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.share__item {
  display: flex; align-items: center; gap: .55rem; width: 100%; text-align: start; font: inherit; font-weight: 600;
  color: var(--ink); background: transparent; border: 0; border-radius: 8px;
  padding: .5rem .75rem; text-decoration: none; cursor: pointer;
}
.share__item:hover, .share__item:focus-visible { background: var(--bg); outline: none; }
.share__item:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }

/* ---------- מודעה מאורכת בצד שמאל ---------- */
/* טלפון/טאבלט: מתחת לתוכן, ברוחב סביר */
.side-ad { display: block; max-width: 260px; margin: 1.5rem auto 0; }
.side-ad__link { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.side-ad__link img { display: block; width: 100%; height: auto; }   /* תמיד שלמה — בלי חיתוך */
a.side-ad__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* מסך רחב: קבועה בצד שמאל לכל גובה המסך — לא זזה בגלילה (בקשת שרה).
   התמונה מוצגת שלמה (בלי חיתוך טקסט); שאר הגובה ממולא בגרסה מטושטשת שלה.
   התוכן מצטמצם באותה מידה משני הצדדים — כך הוא נשאר ממורכז ולא מתחת למודעה. */
.side-ad__link .side-ad__backdrop { display: none; }   /* רק במסך רחב */
@media (min-width: 1280px) {
  .site { --ad-w: clamp(170px, 14vw, 260px); }
  .side-ad {
    /* מתחיל מתחת לפס הכחול העליון, ונגמר מעל כפתור הנגישות; בגובה עד 760px */
    position: fixed; z-index: 15; left: 16px; top: 92px; bottom: 96px; max-height: 760px;
    width: var(--ad-w); max-width: none; margin: 0;
  }
  .side-ad[hidden] { display: none; }
  .side-ad__link { position: relative; height: 100%; display: flex; align-items: center; background: #0b2233; }
  .side-ad__backdrop {
    display: block !important; position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px);
    object-fit: cover; filter: blur(14px) brightness(.55); transform: scale(1.05);
  }
  .side-ad__link img.side-ad__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
  /* כשיש מודעה: התוכן תופס את הרוחב שמימין לה (בקשת שרה), עם שוליים נוחים —
     מהקצה הימני 32–72px ומהמודעה 32–56px (גדל עם רוחב המסך). */
  .site.has-side-ad .wrap {
    width: auto; max-width: none;
    margin-inline-start: clamp(32px, 4vw, 72px);
    margin-inline-end: calc(var(--ad-w) + 16px + clamp(32px, 3vw, 56px));
  }
}
@media (prefers-reduced-transparency: reduce) { .side-ad__backdrop { display: none !important; } }

/* ---------- ניווט במפה ליד הכתובת ---------- */
.map-link {
  display: inline-flex; align-items: center; gap: .3rem; margin-block-start: .35rem;
  color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.map-link svg { width: 18px; height: 18px; flex: none; }
.map-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- תיק עבודות: כותרת ותיאור, קישורים, מסמכים ---------- */
.portfolio__part + .portfolio__part { margin-block-start: 1.4rem; }
.portfolio__sub { margin: 0 0 .6rem; font-size: 1.02rem; color: var(--ink); }
.gallery figcaption strong { display: block; color: var(--ink); font-weight: 700; }
.photo-dialog__desc { margin: .35rem 0 0; color: #e4eef6; white-space: pre-line; line-height: 1.6; font-size: .95rem; }   /* 4.99:1 */
.photo-dialog__text { flex: 1 1 auto; text-align: center; }
.plinks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.plinks a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.plinks a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.article__pdf { display: inline-block; margin-block-start: .6rem; color: var(--primary); font-weight: 700; }
/* תפריט שיתוף פתוח — הכרטיס שלו מעל הכרטיסים השכנים */
.biz-card:focus-within, .biz-card:has(.share__menu:not([hidden])) { z-index: 20; }
/* כפתור שיתוף בראש דף העסק */
.biz__head-inner { position: relative; }
.biz__share { position: absolute; inset-block-start: 0; inset-inline-end: 16px; }
@media (max-width: 560px) { .biz__share { position: static; display: flex; justify-content: flex-end; margin-block-end: .4rem; } }

.share__icon { flex: none; }
/* פתוח / סגור עכשיו */
.open-badge { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.open-badge--open { background: #e3f4ec; color: #0b5c3d; border: 1px solid #0f7b52; }     /* 7.3:1 */
.open-badge--closed { background: #fdecea; color: #8c1c16; border: 1px solid #b3261e; }   /* 7.6:1 */
.biz-card__now { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 .35rem; }
.biz-card__now .biz-card__today { margin: 0; font-weight: 800; color: var(--ink); font-size: .92rem; }
.now-status { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .75rem .9rem; border-radius: 12px; background: var(--bg); margin-block-end: 1rem; }
.now-status .open-badge { font-size: 1rem; padding: .25rem .85rem; }
.now-status__today { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.biz-hours__title { margin: 0 0 .4rem; font-size: .95rem; color: var(--muted); }

/* הכל / פתוח עכשיו בתוך שורת החיפוש הלבנה */
.search__row .open-toggle { margin: 0; flex: none; align-self: center; background: var(--bg); border-color: var(--border); }
.search__row .open-toggle__btn { color: var(--ink); padding: .45rem .9rem; }                     /* 14.9:1 */
.search__row .open-toggle__btn[aria-pressed="true"] { background: var(--accent); color: #0f2942; }
.search__row .open-toggle__btn:focus-visible { outline: 3px solid var(--primary); }
@media (max-width: 620px) {
  .search__row { flex-wrap: wrap; border-radius: 22px; }
  .search__row .search__input { flex: 1 1 60%; }
  .search__row .open-toggle { flex: 1 1 100%; justify-content: center; }
  .search__row .open-toggle__btn { flex: 1 1 50%; }
}

/* ---------- התחברות (public/auth.js) ---------- */
.auth-dialog {
  width: min(440px, 100% - 1.5rem); max-height: 92vh; overflow: auto;
  padding: 2.2rem 1.5rem 1.4rem; border: 0; border-radius: var(--radius);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.auth-dialog::backdrop { background: rgba(5, 22, 36, .72); }
.auth-dialog__close {
  position: absolute; inset-block-start: .5rem; inset-inline-end: .5rem; width: 2.4rem; height: 2.4rem;
  font: inherit; font-size: 1.6rem; line-height: 1; color: var(--ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.auth-dialog__close:hover { background: var(--bg); }
.auth-dialog__close:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.auth__title { margin: 0 0 .4rem; font-size: 1.35rem; }
.auth__reason { margin: 0 0 .9rem; color: var(--muted); line-height: 1.6; }
.auth__google {
  display: flex; align-items: center; justify-content: center; gap: .6rem; margin-block: .6rem;
  padding: .7rem 1rem; border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--ink); background: #ffffff; font-weight: 700; text-decoration: none;
}
.auth__google:hover { background: var(--bg); }
.auth__google:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.auth__or { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .4rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.auth__or::before, .auth__or::after { content: ''; flex: 1; border-block-start: 1px solid var(--border); }
.auth__form { display: grid; gap: .75rem; }
.auth__field { display: grid; gap: .3rem; }
.auth__field label { font-weight: 700; }
.auth__field input {
  font: inherit; padding: .65rem .8rem; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--ink); background: #ffffff;
}
.auth__field input:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.auth__submit {
  font: inherit; font-weight: 800; color: #ffffff; background: var(--primary); border: 0; border-radius: 999px;
  padding: .75rem 1rem; cursor: pointer;
}
.auth__submit:hover { background: var(--primary-dark); }
.auth__submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.auth__row { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin: 0; }
.auth__link { font: inherit; font-size: .92rem; font-weight: 700; color: var(--primary); background: none; border: 0; padding: .2rem 0; text-decoration: underline; cursor: pointer; }
.auth__link:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.auth__hint { margin: 0; color: var(--muted); }
.auth__msg { margin: .6rem 0; padding: .6rem .8rem; border-radius: 10px; background: #e3f4ec; color: #0b5c3d; font-weight: 600; }   /* 7.3:1 */
.auth__error { margin: .6rem 0; padding: .6rem .8rem; border-radius: 10px; background: var(--error-bg); color: var(--error); font-weight: 600; }
.auth-toast {
  position: fixed; z-index: 60; inset-block-start: 1rem; inset-inline: 0; width: fit-content; max-width: calc(100% - 2rem);
  margin: 0 auto; padding: .8rem 1.2rem; border-radius: 12px; background: #ffffff; color: var(--ink); font-weight: 700; box-shadow: var(--shadow);
}
/* מחובר: "שלום, שם" בסרגל העליון */
.topnav__user { display: inline-flex; align-items: center; gap: .45rem; color: #ffffff; font-weight: 700; padding: .5rem .4rem; }
.topnav__dot { width: .6rem; height: .6rem; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.topnav__logout { font: inherit; background: transparent; cursor: pointer; }
.auth--page { max-width: 420px; margin: 0 auto 3rem; padding: 1.5rem; background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- דירוג וביקורות (public/reviews.js) ---------- */
.stars { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; color: var(--muted); }
.stars__icons { color: #b26a00; letter-spacing: .05em; font-size: 1rem; }   /* זהב כהה — 4.6:1 על לבן */
.stars__num { font-weight: 800; color: var(--ink); }
.stars__none { font-size: .85rem; }
.biz-card__rating { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-block-start: .3rem; position: relative; z-index: 2; }
.biz-card__rate {
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--primary); background: #ffffff;
  border: 1px solid var(--primary); border-radius: 999px; padding: .12rem .7rem; cursor: pointer;
}
.biz-card__rate:hover { background: #eef4f8; }
.biz-card__rate:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.review-dialog { width: min(520px, 100% - 1.5rem); }
.review-form { display: grid; gap: .9rem; }
.rate { border: 0; margin: 0; padding: 0; }
.rate__label { font-weight: 800; padding: 0; margin-block-end: .25rem; }
.rate__stars { display: flex; gap: .2rem; }   /* RTL: הכוכב הראשון (1) מימין */
.rate__star { cursor: pointer; font-size: 2rem; line-height: 1; color: #c9d3dc; padding: .05rem; border-radius: 6px; }
.rate__star.is-on { color: #e0a458; }
.rate__star:focus-within { outline: 3px solid var(--primary); outline-offset: 1px; }
.rate__error { margin: .2rem 0 0; color: var(--error); font-size: .9rem; font-weight: 600; }
.review-form textarea {
  font: inherit; width: 100%; padding: .65rem .8rem; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--ink); resize: vertical;
}
.review-form textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.review-form__text { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .8rem; align-items: start; }
@media (max-width: 520px) { .review-form__text { grid-template-columns: 1fr; } }

.reviews__head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-block-end: 1rem; }
.reviews__score { display: flex; align-items: center; gap: .5rem; }
.reviews__avg { font-size: 2.2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.reviews__bars { margin: 0; display: grid; gap: .15rem; font-size: .9rem; }
.reviews__bar { display: flex; gap: .5rem; }
.reviews__bar dt { min-width: 5.5rem; color: var(--muted); }
.reviews__bar dd { margin: 0; color: var(--ink); font-weight: 700; }
.reviews__barstars { color: #b26a00; }
.reviews__add { margin-inline-start: auto; text-decoration: none; padding: .6rem 1.4rem; font-size: 1rem; }
.reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.review { padding: .8rem 1rem; border-radius: 12px; background: var(--bg); }
.review--empty { color: var(--muted); }
.review__top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0; }
.review__stars { color: #b26a00; }
.review__date { color: var(--muted); font-size: .85rem; margin-inline-start: auto; }
.review__sub { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }
.review__body { margin: .45rem 0 0; line-height: 1.7; white-space: pre-line; color: var(--ink); }

/* ---------- תיק עבודות בפרויקטים ---------- */
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .9rem; }
.project__btn {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: start; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer;
}
.project__btn:hover { border-color: var(--primary); }
.project__btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.project__cover { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #dfe7ee; }
.project__cover--empty { display: grid; place-items: center; font-size: 2.2rem; }
.project__body { display: grid; gap: .3rem; padding: .75rem .9rem .9rem; }
.project__title { font-weight: 800; font-size: 1.02rem; }
.project__excerpt { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.project__meta { color: var(--muted); font-size: .82rem; }
.project__more { color: var(--primary); font-weight: 700; font-size: .9rem; }
.project-dialog {
  width: min(900px, 100% - 1.5rem); max-height: 92vh; overflow: auto;
  padding: 2.4rem 1.4rem 1.4rem; border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.project-dialog::backdrop { background: rgba(5, 22, 36, .72); }
.project-dialog__title { margin: 0 0 .5rem; font-size: 1.4rem; }
.project-dialog__desc { margin: 0 0 1rem; line-height: 1.75; white-space: pre-line; }

/* תפריט השיתוף: שורת סמלים קטנה שנפתחת *לצד* הכפתור (לא מכסה את הדירוג שמתחת) */
.share__menu {
  inset-block-start: 50%; transform: translateY(-50%); inset-inline-end: auto;
  left: calc(100% + .4rem); min-width: 0;
  display: flex; gap: .2rem; padding: .25rem; border-radius: 999px;
}
.share__menu[hidden] { display: none; }
.share.biz-card__share .share__menu { left: calc(100% + .4rem); }
.share__menu .share__item { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; border-radius: 50%; }
.share__menu .share__item.is-done { box-shadow: inset 0 0 0 2px #0f7b52; }

/* ---------- דף עסק: לשוניות (תיק עבודות / ממליצים / ביקורות / הודעה) ---------- */
.biz-tabs { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.biz-tabs[hidden] { display: none; }
.biz-tabs__list {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin;
  padding: .2rem .1rem .3rem;
}
.biz-tabs__tab {
  flex: none; white-space: nowrap; min-height: 2.75rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-size: 1rem; font-weight: 700;
  color: #ffffff; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px;
  padding: .5rem 1.2rem; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.biz-tabs__tab:hover { background: rgba(255, 255, 255, .22); }
.biz-tabs__tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #0f2942; }   /* 6.79:1 */
.biz-tabs__tab:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.biz-tabs__count {
  min-width: 1.5rem; padding: 0 .4rem; border-radius: 999px; font-size: .8rem; line-height: 1.5rem; text-align: center;
  background: rgba(255, 255, 255, .2);
}
.biz-tabs__tab[aria-selected="true"] .biz-tabs__count { background: rgba(15, 41, 66, .14); }
.biz-tabs__panel--off { display: none !important; }
.biz-tabs__panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* שם הלשונית כבר כתוב על הכפתור — הכותרת בתוך החלק נשארת לקוראי מסך בלבד */
.biz-tabs__panel .panel__title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.biz-tabs__panel .quotes-head { justify-content: flex-end; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .biz-tabs__tab { transition: none; } }
/* טלפון: הלשוניות ב-2×2 — כולן נראות בלי גלילה הצידה */
@media (max-width: 560px) {
  .biz-tabs__list { flex-wrap: wrap; overflow: visible; }
  .biz-tabs__tab { flex: 1 1 calc(50% - .25rem); justify-content: center; padding-inline: .6rem; font-size: .95rem; }
}

.biz__owner { margin: .35rem 0 0; color: #e4eef6; font-weight: 600; }   /* על הרקע הכהה של ראש הדף */

/* ---------- עמוד מכירות: כפתור חזרה + סינון ---------- */
.sales-crumb { text-align: start; }
.sales-filter {
  max-width: 46rem; margin: 0 auto 1rem; padding: .9rem 1rem;
  display: flex; flex-wrap: wrap; align-items: end; gap: .6rem .8rem;
  background: var(--card); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sales-filter[hidden] { display: none; }
.sales-filter__field { display: grid; gap: .25rem; flex: 0 1 10rem; }
.sales-filter__field--q { flex: 1 1 15rem; }
.sales-filter label { font-weight: 700; font-size: .9rem; }
.sales-filter input {
  min-height: 2.75rem; padding: .45rem .7rem; font: inherit; color: var(--ink);
  background: #ffffff; border: 1px solid #6b7f91; border-radius: 8px; width: 100%;   /* 4.1:1 — גבול שדה נראה (WCAG 1.4.11) */
}
.sales-filter input:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.sales-filter__clear {
  min-height: 2.75rem; padding: .45rem 1rem; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--primary); background: #eef4f8; border: 1px solid transparent; border-radius: 999px;
}
.sales-filter__clear[hidden] { display: none; }
.sales-filter__clear:hover { background: #dde9f2; }
.sales-filter__clear:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sales-filter__count { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--muted); }
.sales-filter__count:empty { display: none; }

/* טלפון של ממליץ (לא חובה) — ליד השם */
.quote-card__phone { display: block; direction: ltr; text-align: end; font-size: .85rem; color: var(--muted); }   /* 6.9:1 */
.quote-dialog__phone { margin: .3rem 0 0; color: var(--muted); }
.quote-dialog__phone a { color: var(--primary); font-weight: 700; }
.quote-dialog__phone a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
