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

/* ---------- ניווט ---------- */
.nav-links { gap: 22px; }
.nav-links a { font-size: 1rem; }
.nav-links a[aria-current="page"] { color: var(--blue); }
.logo a { display: inline-flex; }
.skip-link { position: absolute; right: 10px; top: -60px; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 100000; }
.skip-link:focus { top: 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }

/* ---------- תחתית ---------- */
.site-footer { background: #0b1a33; color: #c9d3e3; padding: 60px 0 110px; font-size: .95rem; }
.site-footer a { color: #e7edf7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 14px; font-weight: 800; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-brand p { margin: 10px 0 16px; line-height: 1.7; }
.footer-phone { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff !important; font-weight: 800; padding: 10px 18px; border-radius: 8px; font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 120px; } }

/* ---------- סרגל קשר צף במובייל ---------- */
.modern-contact-container { display: none; }
@media (max-width: 768px) {
  .modern-contact-container { display: block; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: 92%; max-width: 400px; z-index: 99999; direction: rtl; }
  .animated-border-box { position: relative; padding: 2px; border-radius: 25px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.1); }
  .border-animation { position: absolute; width: 150%; height: 150%; background: conic-gradient(transparent, var(--blue), transparent, var(--red), transparent); animation: rotateBorder 4s linear infinite; }
  @keyframes rotateBorder { 100% { transform: rotate(360deg); } }
  .contact-content { position: relative; width: 100%; background: rgba(255,255,255,.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 23px; display: flex; align-items: center; padding: 10px 15px; z-index: 2; }
  .contact-nav-item { flex: 1; display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .icon-box { width: 42px; height: 42px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; }
  .call .icon-box { background: var(--blue); }
  .whatsapp .icon-box { background: #25d366; }
  .text-wrap { display: flex; flex-direction: column; }
  .text-wrap .label { font-size: .95rem; font-weight: 800; color: #222; }
  .text-wrap .sub-label { font-size: .72rem; color: #555; }
  .nav-divider { width: 1px; height: 35px; background: rgba(0,0,0,.12); margin: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .border-animation { animation: none; } }

/* ---------- עמודי תוכן ---------- */
.page-hero { background: linear-gradient(135deg, #001a3d 0%, #002d6a 60%, #004aad 100%); color: #fff; padding: 56px 0 48px; }
.breadcrumbs { font-size: .88rem; margin-bottom: 18px; color: #b9c8e6; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "‹"; margin-left: 6px; color: #7f95bf; }
.breadcrumbs a { color: #dfe8fa; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.2; font-weight: 800; margin-bottom: 14px; }
.page-hero .lead { font-size: 1.15rem; max-width: 760px; color: #e3ebf9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-call, .btn-wa, .btn-outline { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 10px; font-weight: 800; text-decoration: none; font-size: 1.05rem; transition: transform .2s; }
.btn-call { background: var(--red); color: #fff; }
.btn-wa { background: #1faa52; color: #fff; }
.btn-outline { border: 2px solid currentColor; color: var(--blue); }
.btn-call:hover, .btn-wa:hover, .btn-outline:hover { transform: translateY(-2px); }
.meta-line { margin-top: 14px; font-size: .9rem; color: #b9c8e6; }

.page-body { padding: 50px 0 70px; background: #fff; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose { font-size: 1.1rem; line-height: 1.85; color: #262c36; }
.prose h2 { font-size: 1.6rem; color: #0b1a33; margin: 38px 0 12px; line-height: 1.3; }
.prose h3 { font-size: 1.25rem; color: #0b1a33; margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 22px 18px 0; padding: 0; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); font-weight: 600; }
.prose strong { color: #0b1a33; }
.prose .note { background: #fff7e6; border-right: 5px solid #ffb400; padding: 16px 20px; border-radius: 8px; margin: 22px 0; }
.prose .alert { background: #fdecec; border-right: 5px solid var(--red); padding: 16px 20px; border-radius: 8px; margin: 22px 0; }
.prose .steps { counter-reset: s; list-style: none; margin-right: 0; }
.prose .steps li { counter-increment: s; position: relative; padding-right: 48px; margin-bottom: 16px; }
.prose .steps li::before { content: counter(s); position: absolute; right: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 1rem; }
.prose th, .prose td { border: 1px solid #dde3ec; padding: 10px 12px; text-align: right; vertical-align: top; }
.prose th { background: #f1f5fb; }
.prose figure { margin: 24px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 14px; }

.sidebar { position: sticky; top: 110px; display: grid; gap: 20px; }
.side-card { background: #f4f7fc; border: 1px solid #e1e8f3; border-radius: 16px; padding: 22px; }
.side-card h2 { font-size: 1.15rem; margin-bottom: 10px; color: #0b1a33; }
.side-card p { font-size: .97rem; margin-bottom: 14px; }
.side-card.urgent { background: #0b1a33; color: #fff; border: none; }
.side-card.urgent h2 { color: #fff; }
.side-card .btn-call, .side-card .btn-wa { width: 100%; justify-content: center; margin-top: 8px; }
.side-links { list-style: none; display: grid; gap: 8px; }
.side-links a { color: var(--blue); text-decoration: none; font-weight: 600; }
.side-links a:hover { text-decoration: underline; }

.faq { margin-top: 44px; }
.faq h2 { margin-bottom: 16px; }
.faq details { border: 1px solid #dde3ec; border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; color: #0b1a33; font-size: 1.07rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 22px; color: var(--red); font-weight: 900; }
.faq details[open] summary::before { content: "–"; }
.faq details > div { padding: 0 22px 16px 0; }

.cta-band { background: var(--red); color: #fff; padding: 34px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { font-size: 1.6rem; }
.cta-band .btn-call { background: #fff; color: var(--red); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 18px 0 30px; }
.link-card { display: block; border: 1px solid #e1e8f3; border-radius: 14px; padding: 20px; text-decoration: none; color: #262c36; background: #fff; transition: box-shadow .2s, transform .2s; }
.link-card:hover { box-shadow: 0 10px 26px rgba(0, 45, 106, .12); transform: translateY(-3px); }
.link-card h3 { color: #0b1a33; margin-bottom: 6px; font-size: 1.15rem; }
.link-card p { font-size: .97rem; color: #4a5361; line-height: 1.6; }
.link-card .more { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 700; }

.city-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 10px 0 18px !important; }
.city-list li { background: #eef3fb; border-radius: 30px; padding: 6px 14px; font-size: .95rem; margin: 0 !important; }

@media (max-width: 960px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
}

/* ---------- דף הבית: אזורי שירות ושאלות נפוצות ---------- */
.home-areas, .home-faq, .home-links { padding: 80px 0; }
.home-areas { background: #f4f7fc; }
.home-links { background: #fff; }
.home-faq { background: #fff; }
.home-section-title { text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; color: #0b1a33; margin-bottom: 12px; }
.home-section-lead { text-align: center; max-width: 760px; margin: 0 auto 36px; font-size: 1.1rem; color: #4a5361; }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.area-box { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.area-box h3 { font-size: 1.4rem; color: #0b1a33; margin-bottom: 8px; }
.area-box p { color: #4a5361; margin-bottom: 8px; }
.area-box ul { padding: 0; }
.area-box .btn-outline { margin-top: 6px; font-size: .98rem; padding: 10px 18px; }
.home-faq .faq { max-width: 860px; margin: 0 auto; }
.form-privacy { font-size: .85rem; margin-top: 14px; color: #c9d3e3; }
.form-privacy a { color: #fff; }
@media (max-width: 760px) { .areas-grid { grid-template-columns: 1fr; } }

/* מניעת גלילה אופקית (שכבות אנימציה רחבות) */
html, body { overflow-x: clip; }

/* כותרת דף הבית במובייל – שלא תיחתך */
@media (max-width: 768px) { h1.split-title { font-size: clamp(1.9rem, 9.5vw, 3.2rem); line-height: 1.15; } }

/* טבלאות ומקורות */
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 26px; border: 1px solid #dde3ec; border-radius: 12px; }
.prose .table-wrap table { margin: 0; min-width: 560px; }
.prose table caption { caption-side: top; text-align: right; font-weight: 800; padding: 12px 14px; color: #0b1a33; background: #f7f9fc; }
.prose table thead th { background: #0b1a33; color: #fff; }
.prose table tbody th { background: #f4f7fc; font-weight: 700; }
.prose table tbody tr:nth-child(even) td { background: #fafbfd; }
.prose .sources { margin-top: 40px; padding: 22px 24px; background: #f4f7fc; border-radius: 14px; border-right: 5px solid var(--blue); }
.prose .sources h2 { margin-top: 0; font-size: 1.35rem; }
.prose .sources ul { margin-bottom: 10px; }
.prose .small-note { font-size: .9rem; color: #5a6372; margin: 0; }
.city-list a { color: var(--blue); font-weight: 700; text-decoration: none; }
.city-list a:hover { text-decoration: underline; }
