/* Mesironet public website — RTL, responsive, accessible (WCAG 2.1 AA / IS 5568). Colors from the logo. */
@font-face { font-family: 'Heebo'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/heebo-hebrew-wght-normal.woff2) format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/heebo-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; }

:root {
  --navy: #0b3a75; --navy-2: #0f2c56; --blue: #1f6fd0; --cyan: #22b8db; --cyan-soft: #e3f7fc;
  --ink: #0f1b2d; --muted: #4a5a70; --line: #dfe7f1; --bg: #ffffff; --bg-2: #f4f8fc; --ok: #0f7a4f; --err: #b42318;
  --radius: 16px; --shadow: 0 10px 30px rgba(11, 58, 117, .10); --max: 1160px;
  --font-scale: 1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--font-scale)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -60px; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 100; }
.skip:focus { top: 1rem; color: #fff; }
.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand img { height: 54px; width: auto; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button { font: inherit; font-weight: 500; color: var(--ink); text-decoration: none; padding: .55rem .8rem; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--bg-2); color: var(--navy); }
.nav .cta { background: var(--navy); color: #fff; }
.nav .cta:hover { background: var(--blue); color: #fff; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; display: none; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: .6rem .8rem; }
.dropdown-menu small { display: block; color: var(--muted); font-weight: 400; }
.menu-toggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; font: inherit; cursor: pointer; }
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 72px; background: #fff; flex-direction: column; align-items: stretch; padding: .75rem 1rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .dropdown-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 1rem; }
  .dropdown > button { display: none; }
}

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--cyan-soft), transparent 60%), linear-gradient(180deg, #f7fbff, #fff); padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; background: var(--cyan-soft); color: var(--navy); font-weight: 600; padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; margin: 1rem 0; color: var(--navy-2); letter-spacing: -.01em; }
.hero h1 span { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero-visual img { width: 100%; max-width: 480px; margin-inline: auto; filter: drop-shadow(0 18px 40px rgba(31,111,208,.18)); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; padding: .85rem 1.4rem; border-radius: 12px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--bg-2); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-visual { display: none; } }

/* sections */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-2); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy-2); margin: .4rem 0 .6rem; line-height: 1.25; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 2px 0 rgba(11,58,117,.03); }
.card h3 { margin: .6rem 0 .4rem; color: var(--navy-2); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.ico svg { width: 26px; height: 26px; }
.audience .card { display: flex; flex-direction: column; }
.audience .card .btn { margin-top: auto; align-self: flex-start; }
.audience .card p { margin-bottom: 1.2rem; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -16px; inset-inline-start: 1.2rem; width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: var(--navy-2); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin: .5rem 0 .3rem; color: var(--navy-2); }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 2rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* vision */
.vision { background: linear-gradient(135deg, var(--navy-2), var(--navy) 55%, #145aa8); color: #fff; }
.vision .section-head h2, .vision .section-head p { color: #fff; }
.vision .section-head p { opacity: .9; }
.scale { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.scale div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.4rem; }
.scale b { display: block; font-size: 1.15rem; margin-bottom: .3rem; }
.scale p { margin: 0; opacity: .9; }
.meter { margin-top: 2rem; height: 14px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.meter span { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, var(--cyan), #8ff0ff); border-radius: inherit; }
.meter-labels { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .92rem; opacity: .9; }
@media (max-width: 760px) { .scale { grid-template-columns: 1fr; } }

/* carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2.5rem) / 3); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (max-width: 900px) { .carousel-track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (max-width: 560px) { .carousel-track { grid-auto-columns: 88%; } }
.carousel-nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.carousel-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--navy); }
.carousel-nav button:hover { background: var(--bg-2); }
.result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; min-height: 100%; }
.result .k { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.result h3 { margin: .3rem 0; color: var(--navy-2); font-size: 1.1rem; }
.result p { margin: 0; color: var(--muted); }

/* forms */
.page-hero { background: linear-gradient(180deg, #f2f8fe, #fff); padding: 3rem 0 1.5rem; }
.page-hero h1 { color: var(--navy-2); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: .4rem 0; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 46rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); max-width: 820px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 1.25rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } .form-card { padding: 1.25rem; } }
label { font-weight: 600; display: block; margin-bottom: .35rem; }
label .req { color: var(--err); }
input, select, textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid #c9d6e6; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(34,184,219,.35); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--muted); font-size: .88rem; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: .25rem; flex-shrink: 0; }
.field-error { color: var(--err); font-size: .9rem; margin-top: .25rem; }
[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; inset-inline-start: -9999px; }
.form-status { margin-top: 1rem; padding: 1rem; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: #e7f6ee; color: var(--ok); }
.form-status.err { display: block; background: #fdecea; color: var(--err); }
.aside-note { background: var(--bg-2); border-radius: var(--radius); padding: 1.4rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* legal pages */
.prose { max-width: 820px; }
.prose h2 { color: var(--navy-2); margin-top: 2rem; }
.draft { background: #fff7e6; border: 1px solid #f5c76b; border-radius: 12px; padding: .8rem 1rem; color: #7a4b00; }

/* footer */
.site-footer { background: #0b1f3d; color: #c9d6e6; padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #e6f3ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid h2 { font-size: 1rem; color: #fff; margin: 0 0 .7rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-logo { background: #fff; border-radius: 14px; padding: .6rem .9rem; display: inline-block; }
.footer-logo img { height: 52px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* accessibility widget */
.a11y-btn { position: fixed; inset-inline-start: 1rem; bottom: 1rem; z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; box-shadow: var(--shadow); }
.a11y-btn svg { width: 28px; height: 28px; }
.a11y-panel { position: fixed; inset-inline-start: 1rem; bottom: 76px; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem; width: 260px; display: none; }
.a11y-panel.open { display: block; }
.a11y-panel h2 { font-size: 1rem; margin: 0 0 .6rem; color: var(--navy-2); }
.a11y-panel button { display: block; width: 100%; text-align: start; margin-bottom: .4rem; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.a11y-panel button[aria-pressed="true"] { background: var(--cyan-soft); border-color: var(--cyan); }
body.hc { --ink: #000; --muted: #222; --line: #000; --bg-2: #fff; }
body.hc .hero, body.hc .page-hero { background: #fff; }
body.hc .vision { background: #000; }
body.links-underline a { text-decoration: underline !important; }
body.readable { font-family: Arial, sans-serif; letter-spacing: .02em; }
