/* base.css · שלד העיצוב של ערכת האתרים. כל ערך כאן מגיע מ-tokens.css של הלקוח.
 *
 * ⛔ לא לשים כאן צבע, פונט או גודל קשיח. הזהות של הלקוח חיה ב-tokens.css ובתוספות
 * שלו ב-site.css. כך אותו שלד נראה אחרת אצל כל לקוח, וכל תיקון כאן מגיע לכולם.
 * כללים שמקודדים כאן: RTL בלי גלישה, תמונות שלא נמתחות, rem בלבד (וידג'ט הנגישות
 * מגדיל rem), שורה עד 66ch, כניסה בגלילה עם רשת ביטחון, מגע שווה ריחוף.
 */

/* ---------- איפוס ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }   /* hidden קודם, clip למי שתומך */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body, 400);
  line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture source { display: none; }
h1, h2, h3 { font-family: var(--ff-head); font-weight: var(--fw-head, 600); line-height: 1.2; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: 1.15; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 var(--s-text); max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-ink); text-underline-offset: .2em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--navh, 4.5rem) + 1rem); }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; }

/* ---------- פריסה ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw, 72rem)); margin-inline: auto; }
.wrap-narrow { --maxw: 46rem; }
.sec { padding-block: var(--s-section); }
.sec-head { margin-bottom: var(--s-block); max-width: 44rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center p { margin-inline: auto; }
.sec-head h2 + .lead { margin-top: var(--s-tight); }
.eyebrow { font-size: var(--fs-label); letter-spacing: .06em; color: var(--brand-ink); font-weight: 600; margin-bottom: var(--s-pair); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); }

/* רקעים. אף פעם לא שני זהים ברצף (השער ב-build בודק). כהה רק בתחתית */
.bg-a { background: var(--bg); }
.bg-b { background: var(--bg-2); }
.bg-c { background: var(--bg-3); }
.dark { background: var(--dark); color: var(--on-dark); --ink: var(--on-dark); --ink-soft: var(--on-dark-soft); --brand-ink: var(--accent-on-dark); }
.dark a:not(.btn) { color: var(--accent-on-dark); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.6rem; border-radius: var(--radius-btn, 999px);
  background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--accent);
  font: inherit; font-weight: 600; font-size: var(--fs-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .btn:active { transform: translateY(-2px); box-shadow: 0 .5rem 1.25rem -.5rem var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- כותרת עליונה ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--head-bg, var(--bg)); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 1.5rem; min-height: var(--navh, 4.5rem); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: var(--logo-h, 2.75rem); width: auto; }
.brand-text { flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--ff-head); font-weight: var(--fw-head, 600); font-size: var(--fs-h3); }
.brand-tag { font-size: var(--fs-label); color: var(--ink-soft); }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; gap: 1.5rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-small); white-space: nowrap; padding-block: .5rem; }
.nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.nav-cta { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: var(--fs-small); }
.burger { display: none; }

@media (max-width: 960px) {
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; background: none; border: 0; cursor: pointer; padding: .6rem; }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { order: 3; margin-inline-start: 0; }
  .nav-cta { margin-inline-start: auto; }
  .nav ul { display: none; position: fixed; inset: var(--navh, 4.5rem) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--head-bg, var(--bg)); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; box-shadow: 0 1rem 2rem -1rem var(--shadow); }
  .menu-open .nav ul { display: flex; }
  .nav ul a { display: block; padding: .85rem 0; font-size: var(--fs-body); border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ---------- הירו ---------- */
.hero { padding-block: var(--s-hero, 4.5rem); }
.hero-grid { display: grid; gap: var(--s-block); align-items: center; }
.hero-text > * + * { margin-top: var(--s-text); }
.hero .eyebrow + h1 { margin-top: var(--s-pair); }
.hero-lead { font-size: var(--fs-lead); color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { font-size: var(--fs-small); color: var(--ink-soft); }
.hero-media img { width: 100%; object-fit: cover; }
.frame-soft img { border-radius: var(--radius-lg); }
.frame-arch img { border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.frame-round img { border-radius: 50%; aspect-ratio: 1; }
.frame-plain img { border-radius: 0; }
.frame-offset { position: relative; }
.frame-offset::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1.5px solid var(--brand); border-radius: var(--radius-lg); z-index: 0; }
.frame-offset img { position: relative; z-index: 1; border-radius: var(--radius-lg); }
@media (min-width: 861px) {
  .hero-split .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-stacked .hero-text { text-align: center; max-width: 46rem; margin-inline: auto; }
  .hero-stacked .hero-text p { margin-inline: auto; }
  .hero-stacked .hero-ctas { justify-content: center; }
}
@media (max-width: 860px) {
  .face-first .hero-media { order: -1; }
  .hero-media img { max-height: 70vh; }
}
/* cover: תמונה ברוחב מלא, גרדיאנט רק בצד הטקסט (קרן: שכבה על כל התמונה = "לא רואים כלום") */
.hero-cover { position: relative; padding: 0; min-height: min(88vh, 46rem); display: grid; align-items: end; color: var(--on-dark); }
.hero-cover .hero-grid { position: relative; z-index: 2; padding-block: var(--s-section); }
.hero-cover .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-cover .hero-media img { height: 100%; max-height: none; border-radius: 0; }
.hero-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to left, var(--cover-shade, rgba(20,20,24,.72)) 0%, rgba(20,20,24,.35) 45%, transparent 70%); }
.hero-cover h1, .hero-cover .hero-lead, .hero-cover .hero-note { color: var(--on-dark); }
.hero-cover .hero-text { max-width: 36rem; }
@media (max-width: 860px) { .hero-cover::after { background: linear-gradient(to top, var(--cover-shade, rgba(20,20,24,.78)) 0%, rgba(20,20,24,.3) 55%, transparent 80%); } }
.hero-legal { padding-block: var(--s-section) var(--s-block); }

/* ---------- רצועות ---------- */
.offer-strip { background: var(--band, var(--brand)); color: var(--on-band, var(--on-accent)); padding-block: 1.1rem; }
.offer-strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.5rem; }
.offer-strip li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.offer-strip b { font-size: var(--fs-label); font-weight: 600; opacity: .85; }
.quick-bar { background: var(--band, var(--brand)); color: var(--on-band, var(--on-accent)); padding-block: 1rem; }
.quick-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.5rem; text-align: center; }
.quick-bar p { margin: 0; font-weight: 600; }
.quick-bar .btn { background: var(--on-band, var(--on-accent)); color: var(--band, var(--brand)); border-color: transparent; }

/* ---------- כרטיסים ---------- */
.cards { display: grid; gap: var(--s-grid, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cards.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover, a.card:active { transform: translateY(-4px); box-shadow: 0 1.25rem 2.5rem -1.5rem var(--shadow); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: var(--s-tight); flex: 1; }
.card-body p { margin: 0; }
.card-meta { font-size: var(--fs-label); color: var(--brand-ink); font-weight: 600; }
.card-price { font-weight: 600; color: var(--ink); }
.card-link { margin-top: auto; padding-top: var(--s-tight); font-weight: 600; color: var(--brand-ink); }
.card-link::after { content: " ←"; }

/* ---------- תהליך ---------- */
.steps { list-style: none; display: grid; gap: var(--s-block); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); counter-reset: s; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-n { font-family: var(--ff-head); font-size: var(--fs-h2); line-height: 1; color: var(--brand); flex-shrink: 0; }
.steps h3 { margin-bottom: var(--s-pair); }

/* ---------- קצת עליי ---------- */
.about { display: grid; gap: var(--s-block); align-items: start; }
@media (min-width: 861px) { .about { grid-template-columns: .8fr 1.2fr; } }
.about-media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: var(--s-text); }

/* ---------- עדויות ---------- */
.tst-grid { display: grid; gap: var(--s-grid, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.tst { margin: 0; background: var(--card, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: var(--s-text); }
.tst blockquote { margin: 0; }
.tst blockquote p { font-size: var(--fs-body); }
.tst blockquote p::before { content: "״"; } .tst blockquote p::after { content: "״"; }   /* המירכאות עוטפות, לא עומדות לבד */
.tst figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: var(--fs-small); }
.tst figcaption span { color: var(--ink-soft); }
.pull { margin: 0 auto; max-width: 44rem; text-align: center; }
.pull blockquote { margin: 0; }
.pull p { font-family: var(--ff-head); font-size: var(--fs-h3); line-height: 1.5; margin-inline: auto; }
.pull figcaption { margin-top: var(--s-text); color: var(--ink-soft); font-size: var(--fs-small); }

/* ---------- שאלות ---------- */
.faq { max-width: 46rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--brand-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 1.25rem; color: var(--ink-soft); }

/* ---------- טופס ---------- */
.contact-grid { display: grid; gap: var(--s-block); align-items: start; }
@media (min-width: 861px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-text h2 { margin-bottom: var(--s-text); }
.lead-form { display: grid; gap: 1rem; background: var(--form-bg, rgba(255,255,255,.06)); border: 1px solid var(--form-line, rgba(255,255,255,.16)); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: .35rem; }
.field span { font-size: var(--fs-small); font-weight: 600; }
.field input { font: inherit; font-size: 1rem; min-height: 3rem; padding: .7rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--input-line, var(--line-strong)); background: var(--input-bg, #fff); color: var(--input-ink, #1d1d1f); width: 100%; }
.field input[dir="ltr"] { text-align: right; }
.field input[aria-invalid="true"] { border-color: var(--error, #c0392b); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-small); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--accent); }
.form-legal { font-size: var(--fs-label); opacity: .85; margin: 0; }
.form-status { font-weight: 600; min-height: 1.5em; margin: 0; }
.form-status.bad { color: var(--error-on-dark, #ffb4a8); }
.trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* לא left:-9999px: ב-RTL זה גלישה */

.after-submit { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 60; max-width: 26rem; margin-inline: auto; background: var(--bg); color: var(--ink); border-radius: var(--radius-lg); box-shadow: 0 1.5rem 3rem -1rem rgba(0,0,0,.35); padding: 1.5rem 1.5rem 1.25rem; transform: translateY(130%); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.after-submit.show { transform: none; }
.after-submit p { margin-bottom: 1rem; }
.after-close { position: absolute; top: .4rem; inset-inline-end: .6rem; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink-soft); }

/* ---------- פוטר ---------- */
.site-foot { background: var(--foot-bg, var(--dark)); color: var(--on-dark-soft); padding-block: var(--s-block) 1.5rem; font-size: var(--fs-small); }
.site-foot a { color: var(--on-dark); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .brand, .site-foot .brand-name { color: var(--on-dark); }
.site-foot .brand-tag { color: var(--on-dark-soft); }
.foot-in { display: grid; gap: var(--s-block); padding-bottom: var(--s-block); border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 861px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-about p { margin-top: var(--s-text); }
.foot-h { font-weight: 600; color: var(--on-dark); margin-bottom: var(--s-tight); }
.site-foot ul { list-style: none; display: grid; gap: .4rem; }
.foot-bot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-top: 1.25rem; font-size: var(--fs-label); }
.credit { opacity: .75; }   /* שורה עדינה, לא כפתור בולט (קרן: "בולט מדי") */
.site-foot.bare { padding-block: 1.5rem; }

/* ---------- וואטסאפ צף: right/bottom פיזיים. inset-inline-end נופל על כפתור הנגישות משמאל ---------- */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #0F7A6C; color: #fff; display: grid; place-items: center; box-shadow: 0 .5rem 1.25rem -.25rem rgba(0,0,0,.3); }
.wa-float svg { width: 1.75rem; height: 1.75rem; }

/* ---------- עמודים משפטיים ---------- */
.legal-sec { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; margin-bottom: var(--s-block); }
.legal-n { font-weight: 600; color: var(--brand-ink); padding-top: .35rem; }
.legal h2 { font-size: var(--fs-h3); margin-bottom: var(--s-tight); }

/* ---------- כניסה בגלילה: מוסתר רק תחת .js, ו-site.js חושף הכל אחרי 2.5 שניות ---------- */
.js .rise { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s ease, transform .7s ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
