/* ============================================================
   ויגו ביטוח ופיננסים — גיליון סגנונות ראשי
   ------------------------------------------------------------
   הקובץ הזה משותף לכל עמודי האתר ולדפי הנחיתה.
   שינוי כאן משפיע על כל האתר.

   מפת הקובץ:
     1.  טוקנים (צבעים)         6.  כרטיסי שירות
     2.  בסיס וטיפוגרפיה        7.  סיפור / ציטוט
     3.  ניווט עליון            8.  שאלות נפוצות
     4.  כותרות עמוד / hero     9.  טפסים
     5.  רצועת נתונים / כאב     10. רצועת CTA ופוטר
                                11. מובייל, נגישות, דפי נחיתה
   ============================================================ */

/* ---------- 1. טוקנים — צבעי המותג ----------
   לשינוי צבע בכל האתר, ערכו כאן בלבד. */
:root{
  --brand:#0060A8;      /* כחול הלוגו */
  --brand-mid:#00548F;  /* כחול כהה יותר למצב hover */
  --deep:#052F55;
  --deeper:#02203C;
  --green:#4E9F45;      /* ירוק הלוגו, מותאם לניגודיות AA */
  --green-lit:#6FC45F;  /* ירוק בהיר לרקעים כהים */
  --paper:#F3F6F8;
  --paper-dim:#E4EAEF;
  --ink:#0F171E;
  --muted:#5A6B79;
  --line:rgba(15,23,30,.13);
  --line-dark:rgba(243,246,248,.16);
  --error:#B3261E;      /* אדום הודעות שגיאה — עומד ב־AA על רקע לבן */
}

/* ---------- 2. בסיס וטיפוגרפיה ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font-family:'Assistant',system-ui,sans-serif;font-size:17px;line-height:1.75;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,.num{font-family:'Rubik',system-ui,sans-serif;line-height:1.16;letter-spacing:-.02em}
.wrap{max-width:1180px;margin:0 auto;padding:0 28px}
.narrow{max-width:820px}
a{color:inherit}
img{display:block;max-width:100%}

/* ---------- 3. ניווט עליון ---------- */
nav{position:sticky;top:0;z-index:60;background:rgba(243,246,248,.93);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav-in{display:flex;align-items:center;gap:30px;height:96px}
.brandmark{height:64px;width:auto;cursor:pointer}
.nav-links{display:flex;gap:22px;margin-inline-start:auto;font-size:15.5px;color:var(--muted);align-items:center}
.nav-links a,.drop-t{text-decoration:none;padding:4px 0;border-bottom:2px solid transparent;cursor:pointer;background:none;border-left:0;border-right:0;border-top:0;font:inherit;color:var(--muted)}
.nav-links a:hover,.nav-links a.on{color:var(--brand);border-color:var(--green)}
.drop{position:relative}
.drop-t::after{content:"⌄";margin-inline-start:5px;font-size:13px;position:relative;top:-2px}
.drop-t.on{color:var(--brand);border-color:var(--green)}
.drop:hover .drop-t,.drop:focus-within .drop-t,.drop-t[aria-expanded="true"]{color:var(--brand);border-color:var(--green)}
.drop-m{position:absolute;top:100%;inset-inline-start:0;margin-top:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;min-width:238px;box-shadow:0 12px 34px rgba(2,32,60,.14);opacity:0;visibility:hidden;transform:translateY(-6px);transition:.16s}
/* התפריט נפתח ב־hover, בפוקוס מקלדת, וגם בלחיצה (aria-expanded) — דרישת נגישות */
.drop:hover .drop-m,.drop:focus-within .drop-m,.drop-t[aria-expanded="true"]+.drop-m{opacity:1;visibility:visible;transform:none}
.drop-m a{display:block;padding:9px 14px;border-radius:9px;color:var(--ink);font-size:15.5px;border:none}
.drop-m a:hover{background:var(--paper-dim);color:var(--brand)}
.drop-m a.on{background:var(--paper-dim);color:var(--brand)}
.nav-cta{background:var(--brand);color:#fff!important;padding:11px 22px;border-radius:100px;font-weight:600;font-size:15.5px;border:none!important}
.nav-cta:hover{background:var(--brand-mid)}
.burger{display:none;margin-inline-start:auto;background:none;border:1px solid var(--line);border-radius:9px;padding:9px 12px;font-size:18px;cursor:pointer}
.mob{display:none;border-top:1px solid var(--line);background:#fff;padding:10px 0 18px}
.mob.open{display:block}
.mob a{display:block;padding:11px 28px;font-size:16.5px;text-decoration:none;color:var(--ink)}
.mob a:hover,.mob a.on{background:var(--paper-dim);color:var(--brand)}
.mob .sub{padding-inline-start:44px;color:var(--muted);font-size:15.5px}

/* ---------- 4. כותרות עמוד ו־hero ---------- */
.hero{padding:72px 0 58px;border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:center}
h1{font-size:clamp(36px,4.8vw,58px);font-weight:800;color:var(--deeper)}
/* max-width הורחב מ-48ch ל-58ch כדי שפסקת הפתיחה הארוכה לא תיצור עמודה צרה וגבוהה */
.lead{font-size:19.5px;color:var(--muted);margin-top:24px;max-width:58ch;font-weight:300}
.hero-btns{display:flex;gap:14px;margin-top:34px;flex-wrap:wrap}
.btn-a{background:var(--brand);color:#fff;text-decoration:none;padding:15px 32px;border-radius:100px;font-weight:600;display:inline-block;cursor:pointer;border:none;font-family:inherit;font-size:17px}
.btn-a:hover{background:var(--brand-mid)}
.btn-b{border:1.5px solid var(--brand);color:var(--brand);text-decoration:none;padding:15px 32px;border-radius:100px;font-weight:600;display:inline-block}
.btn-b:hover{background:var(--paper-dim)}
.btn-wa{display:inline-flex;align-items:center;gap:9px;border-color:#1EA750;color:#12813C}
.btn-wa:hover{background:#E7F6EC}
.btn-wa svg{flex:none}
/* הירו בעמוד הבית — תמונה אחת במלוא רוחב העמודה, בלי שכבת כיתוב */
.hero-shot{aspect-ratio:4/5;border-radius:16px;overflow:hidden;background:var(--paper-dim)}
.hero-shot img{width:100%;height:100%;object-fit:cover;object-position:center top}

/* .diptych נשאר בשימוש בעמוד האודות */
.diptych{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.shot{aspect-ratio:2/3;border-radius:16px;overflow:hidden;position:relative;background:var(--paper-dim)}
.shot img{width:100%;height:100%;object-fit:cover;object-position:center top}
.cap{position:absolute;inset-inline-start:0;bottom:0;width:100%;padding:28px 14px 12px;background:linear-gradient(to top,rgba(2,32,60,.9),transparent);color:#fff}
.cap b{font-family:'Rubik';font-size:14.5px;color:var(--green-lit);display:block}
.cap span{font-size:11.8px;color:rgba(255,255,255,.82);line-height:1.4;display:block;margin-top:2px}

.phead{padding:64px 0 46px;border-bottom:1px solid var(--line)}
.phead h1{font-size:clamp(32px,4.1vw,50px)}
.phead p{font-size:19px;color:var(--muted);font-weight:300;margin-top:18px;max-width:62ch}

/* פירורי לחם — נתיב ניווט בעמודים פנימיים */
.crumbs{font-size:14px;color:var(--muted);padding:14px 0 0}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0}
.crumbs li::after{content:"‹";margin-inline-start:8px;color:var(--line)}
.crumbs li:last-child::after{content:""}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--brand);text-decoration:underline}
.crumbs [aria-current="page"]{color:var(--ink)}

/* ---------- 5. רצועת נתונים ונקודות כאב ---------- */
.stats{background:var(--deeper);color:#fff;padding:52px 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}
.stat{border-inline-start:2px solid var(--green-lit);padding-inline-start:18px}
.num{font-size:32px;font-weight:800}
.stat p{font-size:14.5px;color:rgba(255,255,255,.72);margin-top:6px;font-weight:300;line-height:1.5}

section{padding:82px 0}
.sec-head{max-width:62ch;margin-bottom:42px}
h2{font-size:clamp(27px,3.3vw,38px);font-weight:700;color:var(--deeper)}
.sec-head p{color:var(--muted);margin-top:15px;font-size:18px;font-weight:300}
/* h2 בתוך .prose מעוצב כמו h3 — היררכיית כותרות תקינה בלי לשנות את המראה */
.prose h2,.prose h3{font-size:23px;font-weight:700;color:var(--deeper);margin:38px 0 12px}
.prose p{color:var(--muted);font-weight:300;font-size:17.5px;margin-top:14px;max-width:72ch}
.prose strong{color:var(--ink);font-weight:600}
.prose ul{margin:16px 0 0;padding-inline-start:22px;color:var(--muted);font-weight:300}
.prose li{margin:8px 0;max-width:72ch}
.callout{background:var(--paper-dim);border-inline-start:3px solid var(--green);border-radius:0 14px 14px 0;padding:24px 28px;margin-top:30px}
.callout p{margin-top:0;color:var(--ink);font-weight:400}

.pain{background:var(--paper-dim)}
.pain-list{border-top:1px solid var(--line)}
.pain-item{display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:start;padding:26px 4px;border-bottom:1px solid var(--line)}
.mark{width:11px;height:11px;border-radius:50%;background:var(--green);margin-top:12px}
.pain-item h3{font-size:20.5px;font-weight:600;color:var(--deeper)}
.pain-item p{color:var(--muted);margin-top:7px;font-size:16.5px;font-weight:300;max-width:70ch}

/* ---------- 6. כרטיסי שירות ---------- */
.svc{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.svc-card{background:var(--paper);padding:36px 32px;cursor:pointer;text-decoration:none;display:block}
.svc-card:hover{background:#fff}
.svc-card h3{font-size:22px;font-weight:700;color:var(--brand)}
.svc-card p{color:var(--muted);margin-top:11px;font-size:16.5px;font-weight:300}
.svc-card ul{margin-top:16px;list-style:none;font-size:15.5px;color:var(--muted);padding:0}
.svc-card li{padding:5px 0;border-bottom:1px solid var(--line)}
.svc-card li:last-child{border:none}

/* ---------- 7. סיפור וציטוט ---------- */
.story{background:var(--deep);color:#fff}
/* שלושה בלוקים: טקסט, תמונה, ציטוט.
   בדסקטופ — טקסט וציטוט זה מעל זה בעמודה אחת, התמונה משתרעת לצידם.
   במובייל — סדר ה-DOM נשמר: טקסט, תמונה, ציטוט. */
.story-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:44px 56px;align-items:start}
.story-text{grid-column:1;grid-row:1}
.story-shot{grid-column:2;grid-row:1/span 2;margin:0}
.story-quote{grid-column:1;grid-row:2}
.story-shot img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center top;border-radius:16px}
.story-shot figcaption{margin-top:12px;font-size:14px;font-weight:300;color:rgba(255,255,255,.7)}
.story h2{color:#fff}
.story p{color:rgba(255,255,255,.82);font-weight:300;font-size:17.5px;margin-top:17px}
.story blockquote{font-family:'Rubik';font-weight:500;font-size:clamp(21px,2.5vw,29px);line-height:1.42;border-inline-start:3px solid var(--green-lit);padding-inline-start:26px}
.story cite{display:block;font-family:'Assistant';font-style:normal;font-size:15px;color:rgba(255,255,255,.64);margin-top:20px;font-weight:300}

/* עמוד אודות — פריסת טקסט מול תמונות */
.ab-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:56px;align-items:start}

/* ---------- 8. שאלות נפוצות ---------- */
.faq-item{border-bottom:1px solid var(--line)}
/* כל שאלה עטופה ב-h2 לצורך היררכיית כותרות; העטיפה מנוטרלת ויזואלית */
.faq-item h2{font:inherit;font-size:inherit;font-weight:inherit;letter-spacing:normal;line-height:inherit;color:inherit;margin:0}
.faq-q{width:100%;text-align:start;background:none;border:none;font-family:'Rubik';font-weight:600;font-size:19px;color:var(--deeper);padding:22px 0;cursor:pointer;display:flex;justify-content:space-between;gap:18px;align-items:center}
.faq-q::after{content:"+";color:var(--brand);font-size:24px;font-weight:400;flex:none}
.faq-item.open .faq-q::after{content:"–"}
.faq-a{display:none;padding:0 0 24px;color:var(--muted);font-weight:300;font-size:17px;max-width:74ch}
.faq-item.open .faq-a{display:block}

/* ---------- 9. טפסים ---------- */
.form-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:56px;align-items:start}
.form-box{background:#fff;border:1px solid var(--line);border-radius:22px;padding:36px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
label{display:block;font-size:14.5px;font-weight:600;color:var(--deeper);margin:16px 0 7px}
input[type=text],input[type=tel],input[type=email],select,textarea{width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:11px;font-family:inherit;font-size:16px;background:var(--paper);color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--brand);outline-offset:1px;background:#fff}
textarea{min-height:104px;resize:vertical}
.consent{display:flex;gap:11px;align-items:flex-start;margin-top:20px;font-size:14px;color:var(--muted);line-height:1.55}
.consent input{margin-top:4px;width:17px;height:17px;flex:none;accent-color:var(--brand)}
.consent a{color:var(--brand)}
.consent label{margin:0;font-weight:400;font-size:14px;color:var(--muted)}
button.submit{width:100%;margin-top:26px;background:var(--brand);color:#fff;border:none;padding:16px;border-radius:100px;font-family:'Rubik';font-weight:600;font-size:17.5px;cursor:pointer}
button.submit:hover{background:var(--brand-mid)}
button.submit[disabled]{background:var(--muted);cursor:progress}
.form-note{font-size:13px;color:var(--muted);margin-top:14px;line-height:1.6}
.req{color:var(--error)}

/* הודעות שגיאה מתחת לשדה — מקושרות ב־aria-describedby */
.err{display:none;color:var(--error);font-size:13.5px;font-weight:600;margin-top:6px;line-height:1.5}
.err.show{display:block}
.field-bad input,.field-bad select,.field-bad textarea{border-color:var(--error);border-width:1.5px}
.field-bad .err{display:block}
/* הודעת שגיאה כללית לראש הטופס — מוכרזת ב־aria-live */
.form-alert{display:none;background:#FDECEA;border:1px solid var(--error);border-inline-start:3px solid var(--error);border-radius:0 12px 12px 0;padding:14px 18px;margin-bottom:8px;color:#7A1A14;font-size:15px;font-weight:600;line-height:1.6}
.form-alert.show{display:block}
.form-alert a{color:#7A1A14}
.hp{position:absolute;inset-inline-start:-9999px;width:1px;height:1px;overflow:hidden}

.contact-line{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);font-size:17px}
.contact-line span:first-child{color:var(--muted);font-size:14.5px;min-width:56px}
.contact-line a{color:var(--brand);text-decoration:none;font-weight:600}

/* ---------- 10. רצועת CTA ופוטר ---------- */
.cta-band{background:var(--brand);color:#fff;padding:64px 0;text-align:center}
.cta-band h2{color:#fff}
.cta-band p{color:rgba(255,255,255,.86);font-weight:300;margin-top:14px;font-size:18px}
.cta-band .btn-w{display:inline-block;margin-top:26px;background:#fff;color:var(--brand);padding:15px 34px;border-radius:100px;font-weight:600;text-decoration:none;cursor:pointer}

footer{background:var(--deeper);color:rgba(255,255,255,.72);padding:60px 0 30px;font-size:14.5px;font-weight:300}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:42px;padding-bottom:34px;border-bottom:1px solid var(--line-dark)}
/* הלוגו בפוטר: PNG עם רקע שקוף, נצבע ללבן מלא */
.footmark{height:54px;width:auto;margin-bottom:16px;filter:brightness(0) invert(1);opacity:.92}
/* כותרות העמודות בפוטר הן h2 (היררכיה תקינה) אך מעוצבות כמו h4 במקור */
footer h2,footer h4{color:#fff;font-size:15.5px;font-weight:600;margin-bottom:13px;line-height:1.16;letter-spacing:-.02em;font-family:'Rubik',system-ui,sans-serif}
footer a{color:rgba(255,255,255,.72);text-decoration:none;display:block;padding:4px 0;cursor:pointer}
footer a:hover{color:var(--green-lit)}
.disclosure{padding-top:24px;font-size:12.6px;line-height:1.85;color:rgba(255,255,255,.5)}
.foot-tag{color:var(--green-lit);font-family:'Rubik',system-ui,sans-serif;font-weight:600;font-size:16px;margin:-6px 0 14px}
.foot-blurb{max-width:42ch}

/* ---------- 11. מובייל, נגישות ודפי נחיתה ---------- */
@media(max-width:900px){
  .nav-links,.nav-cta{display:none}
  .burger{display:block}
  .nav-in{height:76px}.brandmark{height:48px}
  .hero-grid,.story-grid,.form-grid,.ab-grid{grid-template-columns:1fr;gap:38px}
  /* ביטול המיקום המפורש בגריד — הבלוקים נערמים לפי סדר ה-DOM */
  .story-text,.story-shot,.story-quote{grid-column:auto;grid-row:auto}
  .stats-grid{grid-template-columns:1fr 1fr;gap:24px}
  .svc,.foot-grid{grid-template-columns:1fr}
  section{padding:56px 0}
  .hero,.phead{padding:42px 0 36px}
  .row{grid-template-columns:1fr}
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}
.skip{position:absolute;inset-inline-start:-9999px;top:0;background:var(--brand);color:#fff;padding:12px 22px;z-index:200;border-radius:0 0 10px 0;text-decoration:none}
.skip:focus{inset-inline-start:0}
.legal h3{margin-top:34px}
.legal p,.legal li{max-width:74ch}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* דפי נחיתה — בלי תפריט ניווט, מיקוד מלא בטופס */
.lp-top{border-bottom:1px solid var(--line);background:#fff}
.lp-top .wrap{display:flex;align-items:center;height:88px}
.lp-top img{height:58px;width:auto}
.lp-hero{padding:56px 0 0}
.lp-grid{display:grid;grid-template-columns:1fr .9fr;gap:56px;align-items:start;padding-bottom:72px}
.lp-grid h1{font-size:clamp(32px,4.2vw,50px)}
.lp-foot{background:var(--deeper);color:rgba(255,255,255,.6);padding:34px 0;font-size:12.6px;line-height:1.85;font-weight:300}
.lp-foot a{color:rgba(255,255,255,.75)}
@media(max-width:900px){
  .lp-grid{grid-template-columns:1fr;gap:34px}
  .lp-top .wrap{height:72px}.lp-top img{height:46px}
  .lp-hero{padding:34px 0 0}
}
