/* האתר החדש – תוספות לבסיס: תפריט עם תת-תפריט, עמודים פנימיים, יומן בחלון, עוגיות, קרוסלת ביקורות */

/* כפתורים מהאתר הקודם, בשפה החדשה */
.btn--primary { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 24px rgb(246 166 35 / .35); }
.btn--primary:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 16px 30px rgb(246 166 35 / .45); }
.btn--soft { background: #fff; color: var(--purple); border-color: #CFCBEF; }
.btn--soft:is(:hover, :focus-visible) { border-color: var(--purple); }
.btn--dark { background: var(--grad); color: #fff; }
.btn--green { background: var(--good); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.site-footer .link-btn:hover { text-decoration: underline; }

/* תפריט: מוצרים ושירותים */
.main-nav > ul { align-items: center; }
.has-sub { position: relative; }
.sub-trigger { display: inline-flex !important; align-items: center; gap: 4px; }
.caret { width: 16px; height: 16px; transition: transform .2s; }
.has-sub::after { content: ""; position: absolute; inset: 100% -10px auto -10px; height: 18px; }
.main-nav .sub-menu { position: absolute; top: calc(100% + 12px); inset-inline-start: -14px; z-index: 70; min-width: 300px; padding: 10px; display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px rgb(42 40 80 / .14);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s, transform .15s var(--ease), visibility .15s; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
.main-nav .sub-menu a { padding: 9px 14px; font-weight: 600; }
.main-nav a[aria-current="page"] { color: var(--purple); background: var(--bg-soft); }
.main-nav a, .header-cta, .header-phone { white-space: nowrap; }
.header-inner { gap: 18px; }
.main-nav > ul { gap: 2px; }
/* קישור המחשבון בתפריט – מודגש עם משושה קטן */
.nav-calc { display: inline-flex !important; align-items: center; gap: 6px; color: var(--purple) !important; font-weight: 800 !important; }
.nav-calc::before { content: ""; width: 10px; height: 11px; background: var(--cta); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); flex: none; }
@media (max-width: 1440px) { .header-phone span { display: none; } }
@media (max-width: 1320px) { .brand img { width: 160px; } .main-nav > ul > li > a { padding: 8px 8px; font-size: .95rem; } .header-inner { gap: 12px; } }
/* תפריט נייד עד 1180px, כדי שהתפריט המלא לא יידחס */
@media (max-width: 1180px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 18px; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .nav-toggle { display: block; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 1180px) {
  .main-nav { max-height: calc(100svh - var(--header-h)); overflow-y: auto; box-shadow: 0 18px 30px rgb(42 40 80 / .15); }
  .main-nav > ul { align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; font-weight: 700; }
  .has-sub::after { display: none; }
  .sub-trigger { display: flex !important; justify-content: space-between; }
  .caret { width: 22px; height: 22px; }
  .has-sub:hover .caret, .has-sub:focus-within .caret { transform: none; }
  .has-sub.sub-open .caret { transform: rotate(180deg); }
  .main-nav .sub-menu { display: none; position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; border: 0; box-shadow: none; background: var(--bg-soft); border-radius: 14px; margin: 8px 0; padding: 6px; }
  .has-sub.sub-open .sub-menu { display: grid; }
}

/* תחתית בארבע עמודות + רשתות */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.social { display: flex !important; grid-auto-flow: column; gap: 10px !important; margin-top: 14px !important; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .1); }
.social svg { width: 20px; height: 20px; }
.footer-title-blank { visibility: hidden; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } .footer-title-blank { display: none; } }

/* עמודים פנימיים */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
  background: radial-gradient(60% 80% at 10% 20%, rgb(129 195 237 / .35), transparent 70%), radial-gradient(50% 70% at 95% 0%, rgb(94 91 168 / .14), transparent 70%), var(--bg-soft); }
.page-hero::after { content: ""; position: absolute; width: 340px; aspect-ratio: 1; inset-inline-end: -90px; bottom: -150px; pointer-events: none;
  background: linear-gradient(160deg, rgb(129 195 237 / .35), rgb(79 77 154 / .12)); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; color: var(--navy); margin: 0; max-width: 900px; }
.page-hero .lead { max-width: 760px; margin: 14px 0 0; }
.crumbs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; color: var(--steel); }
.crumbs a { color: var(--steel-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .92rem; color: var(--muted); font-weight: 600; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose { max-width: 780px; }
.page-layout .prose { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; color: var(--navy); }
.prose h3 { margin-top: 1.3em; color: var(--navy); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--purple); font-weight: 800; }
.prose strong { color: var(--navy); }
.prose .faq { margin-top: 10px; }
.callout { background: var(--bg-soft); border-inline-start: 5px solid var(--purple); border-radius: 18px; padding: 18px 22px; margin: 1.6em 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .btn { margin-top: 6px; text-align: center; line-height: 1.4; height: auto; }
.key-points { background: linear-gradient(160deg, #F1F0FB, #E3F0FA); border: 1px solid #DCE3F3; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 2em; }
.key-points h2 { font-size: 1.2rem; margin: 0 0 10px; }
.key-points ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 16px; }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--navy); color: #fff; }
.table-wrap tbody th { background: var(--bg-soft); color: var(--navy); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 20px 22px; margin-top: 2.4em; }
.author-box img { width: 88px; height: 92px; object-fit: cover; object-position: 50% 0; flex: none; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.author-box p { margin: 0; font-size: .95rem; color: var(--muted); }
.author-box strong { color: var(--navy); font-size: 1.05rem; }
.article-note { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2em; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.article-card:is(:hover, :focus-within) { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-card .tag { align-self: flex-start; font-size: .82rem; font-weight: 800; color: var(--steel-text); background: var(--sky-soft); border-radius: 999px; padding: 3px 12px; }
.article-card h2 { font-size: 1.25rem; margin: 0; }
.article-card h2 a { color: var(--navy); text-decoration: none; }
.article-card h2 a::after { content: ""; position: absolute; inset: 0; }
.article-card p { color: var(--muted); font-size: .97rem; margin: 0; flex-grow: 1; }

/* כרטיס פנייה בצד */
.side-cta { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 10px; padding: 26px; border-radius: 28px; color: #fff; background: var(--grad); box-shadow: 0 24px 50px rgb(42 40 80 / .2); }
.side-cta h2 { color: #fff; font-size: 1.35rem; margin: 0; }
.side-cta p { color: #E1E0F4; font-size: .95rem; margin: 0 0 4px; }
.side-cta .btn { width: 100%; min-height: 48px; }
.side-cta .btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .45); }
.side-rating { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; }
.side-rating .stars { color: var(--cta); }
.quick-form { display: grid; gap: 10px; }
.quick-form input[type="text"], .quick-form input[type="tel"] { font: inherit; width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid transparent; background: #fff; color: var(--ink); }
.quick-form input:focus { outline: 3px solid var(--cta); outline-offset: 1px; }
.consent--light { color: #E1E0F4; font-size: .8rem; line-height: 1.5; margin: 2px 0 4px; }
.consent--light a { color: var(--sky); }
.consent--light input { margin-top: 2px; accent-color: var(--cta); }
.side-or { display: flex; align-items: center; gap: 10px; color: #C9C7E3; font-size: .85rem; margin: 2px 0; }
.side-or::before, .side-or::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / .25); }
.side-cta .side-phone { color: #fff; text-align: center; font-weight: 800; text-decoration: none; direction: ltr; }
.side-cta .form-status { color: #FFD7D2; }
.form-status:empty { display: none; }

.related { padding-top: 0; }
.related h2 { font-size: 1.5rem; }
.related-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s; }
.related-links a:hover { border-color: var(--purple); color: var(--purple); }
@media (max-width: 980px) { .page-layout { grid-template-columns: minmax(0, 1fr); } .side-cta { position: static; } }
@media (max-width: 560px) { .author-box { flex-direction: column; text-align: center; } }

/* קרוסלת ביקורות */
.reviews-carousel { position: relative; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; list-style: none; margin: 0; padding: 6px 2px 18px; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.review-track .review { scroll-snap-align: start; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgb(42 40 80 / .05); }
.review-track .review blockquote { flex: 1; }
.review-g { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); margin-top: 8px; }
.carousel-nav { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s, color .2s; }
.carousel-btn:is(:hover, :focus-visible) { border-color: var(--purple); color: var(--purple); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-dots { display: flex; gap: 6px; margin-inline-start: 6px; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 99px; background: #D5D3EA; transition: width .25s var(--ease), background .25s; }
.carousel-dots span.is-on { width: 22px; background: var(--purple); }
.reviews-more { margin: 0 0 0 auto; font-weight: 700; }
@media (max-width: 980px) { .review-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 620px) { .review-track { grid-auto-columns: 86%; } }

/* תעודות באודות */
.certs { margin-top: 22px; }
.cert-grid { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cert-grid li { display: grid; gap: 6px; text-align: center; font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.35; }
.cert-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s; }
.cert-grid a:is(:hover, :focus-visible) img { transform: translateY(-4px); box-shadow: var(--shadow); }

/* יומן קביעת פגישות – בחלון בתוך האתר */
.booking-dialog { width: min(920px, 100% - 24px); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 28px; box-shadow: 0 40px 100px rgb(20 18 50 / .35); overflow: hidden; color: var(--ink); background: #fff; }
.booking-dialog::backdrop { background: rgb(29 27 58 / .55); backdrop-filter: blur(4px); }
.booking-dialog[open] { display: flex; flex-direction: column; }
.js .booking-dialog[open] { animation: dlg-in .35s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.booking-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--grad); color: #fff; }
.booking-head h2 { color: #fff; font-size: 1.35rem; margin: 0; flex: 1; }
.booking-head p { margin: 2px 0 0; font-size: .9rem; color: #E1E0F4; }
.booking-close { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.booking-close:is(:hover, :focus-visible) { background: rgb(255 255 255 / .15); }
.booking-body { overflow-y: auto; }
.booking-frame { background: #fff; }
.booking-frame iframe { background: #fff; display: block; width: 100%; height: min(680px, calc(100svh - 200px)); border: 0; }
.consent-placeholder { display: none; padding: 40px 24px; text-align: center; }
[data-consent-wrap].is-blocked .consent-placeholder { display: block; }
.consent-placeholder p { max-width: 560px; margin: 0 auto 18px; color: var(--muted); }
.consent-placeholder .btn { margin: 4px; }
.booking-foot { margin: 0; padding: 12px 22px 16px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 620px) { .booking-dialog { width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; margin: 0; max-width: none; } .booking-frame iframe { height: calc(100svh - 170px); } }

/* באנר עוגיות */
.cookie-banner { position: fixed; z-index: 85; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 980px; background: #fff; color: var(--ink); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 48px rgb(30 28 61 / .28); padding: 20px 22px; font-size: 16px; line-height: 1.55; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; gap: 20px; align-items: center; }
.cookie-text { flex: 1; }
.cookie-title { font-size: 1.1rem; margin: 0 0 6px; }
.cookie-text p { margin: 0; }
.cookie-details { margin-top: 8px; font-size: .92rem; }
.cookie-details summary { cursor: pointer; color: var(--steel-text); font-weight: 700; }
.cookie-details ul { margin: 8px 0 0; padding-inline-start: 1.2em; }
.cookie-actions { display: flex; flex-direction: column; gap: 10px; flex: none; }
.cookie-actions .btn { min-height: 46px; padding: 10px 22px; white-space: nowrap; }
html.has-cookie-banner .a11y-btn { bottom: auto !important; top: 50%; transform: translateY(-50%); }
@media (max-width: 820px) {
  .cookie-banner { left: 8px; right: 8px; bottom: calc(8px + var(--host-badge-h, 0px)); padding: 16px; max-height: 70vh; overflow-y: auto; z-index: 90; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions .btn { white-space: normal; }
}
@media print { .cookie-banner, .wa-float, .mobile-bar, .a11y-btn { display: none !important; } }
