/* ERRA site layer on top of the verbatim Webflow CSS (webflow.css). */
:root {
  --font-sans: Arimo, sans-serif;
  --font-num: Inter, Arimo, sans-serif;
  --primary-brand-color: #0050c9;
  --drawer-width: 720px;
}
@media (max-width: 991px) { :root { --drawer-width: 100vw; } }

/* --- Head custom code (from Webflow settings) --- */
.w-richtext ul, .w-richtext ol { direction: rtl; list-style-position: inside; padding: 0; margin: 0 0 1em; text-align: right; }
.w-richtext li { text-align: inherit; margin: .25em 0; }

.no-scroll { overflow: hidden; }
.contact-us-popup { position: fixed; inset: 0; z-index: 2147483647; display: block; pointer-events: none; }
.contact-us-popup .contact-us-l-wrap { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .28s ease; z-index: 1; }
.contact-us-popup .contact-us-r-wrap { position: absolute; top: 0; right: 0; height: 100vh; width: var(--drawer-width, 720px); max-width: 92vw; background: #fff; transform: translateX(100%); transition: transform .36s cubic-bezier(.2,.8,.2,1); box-shadow: -24px 0 48px rgba(0,0,0,.12); overflow: auto; z-index: 3; pointer-events: auto; }
.contact-us-popup.is-open { pointer-events: auto; }
.contact-us-popup.is-open .contact-us-l-wrap { opacity: 1; }
.contact-us-popup.is-open .contact-us-r-wrap { transform: translateX(0); }
.drawer-close, [data-close-contact], [data-close] { z-index: 5 !important; pointer-events: auto !important; }

/* --- scroll reveal (static/js/reveal.js): slide-in preset of IX2 = 100px up, 1000ms outQuart --- */
.reveal-ready [data-reveal] { opacity: 0; transform: translate3d(0, 100px, 0); }
.reveal-ready [data-reveal].is-revealed {
  opacity: 1; transform: none;
  transition: opacity 1s cubic-bezier(.165, .84, .44, 1), transform 1s cubic-bezier(.165, .84, .44, 1);
}
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Mobile menu button: hamburger -> X while open (IX2 navbar open/close) */
.nav_menu-button.w--open .menu-icon, .menu-button-3.w--open .menu-icon { display: none; }
.nav_menu-button.w--open .close-button { display: block; }

/* Lenis (smooth scroll) base rules, kept from the live page embed */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Direction model. The Webflow CSS was authored on an LTR canvas: the page
   (nav, grids, sliders) is laid out LTR and Hebrew blocks opt in with the .heb
   class (direction: rtl). The document itself is declared RTL for browsers, screen
   readers and search engines (<html lang="he" dir="rtl">), and body restores the
   LTR canvas so the existing classes behave exactly as on the live site. */
body.body { direction: ltr; }

/* === D === lead forms + cookie consent */
.w-form-done, .w-form-fail { display: none; }
.cf-turnstile-box { margin: 12px 0; min-height: 0; }
.cookie-consent { position: fixed; z-index: 2147483000; inset-inline: 16px; bottom: 16px; max-width: 920px; margin-inline: auto; direction: rtl; text-align: right;
  background: #fff; color: #1a1a2e; border-radius: 16px; box-shadow: 0 12px 48px rgba(0,0,0,.22); padding: 18px 22px; font-family: var(--font-family, Arimo, sans-serif); font-size: 15px; line-height: 1.5; }
.cookie-consent[hidden], .cookie-consent__settings[hidden] { display: none; }
.cookie-consent__main { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-consent__text { flex: 1 1 360px; }
.cookie-consent__text p { margin: 4px 0 0; }
.cookie-consent__title { font-size: 17px; }
.cookie-consent a { color: var(--primary-brand-color, #0050c9); text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-consent__btn { cursor: pointer; border: 1px solid var(--primary-brand-color, #0050c9); background: #fff; color: var(--primary-brand-color, #0050c9); border-radius: 999px; padding: 9px 22px; font: inherit; font-weight: 600; transition: background .2s, color .2s; }
.cookie-consent__btn:hover { background: #eef3fc; }
.cookie-consent__btn--primary { background: var(--primary-brand-color, #0050c9); color: #fff; }
.cookie-consent__btn--primary:hover { background: #003f9f; }
.cookie-consent__btn--link { border-color: transparent; text-decoration: underline; padding-inline: 10px; }
.cookie-consent__btn:focus-visible { outline: 3px solid #177fab; outline-offset: 2px; }
.cookie-consent__settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e4e7ee; display: grid; gap: 10px; }
.cookie-consent__row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cookie-consent__row input { margin-top: 4px; accent-color: var(--primary-brand-color, #0050c9); }
.cookie-consent__settings .cookie-consent__btn { justify-self: start; }
@media (max-width: 767px) { .cookie-consent { inset-inline: 8px; bottom: 8px; padding: 14px 16px; max-height: 80vh; overflow: auto; } .cookie-consent__actions { width: 100%; } .cookie-consent__btn--primary { flex: 1; } }

/* === A === home + projects (stage A) */
.splide__slide[hidden] { display: none !important; }
.erra-lightbox { position: fixed; inset: 0; z-index: 2147483000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; }
.erra-lightbox__frame { width: min(92vw, 420px); aspect-ratio: 9 / 16; max-height: 90vh; }
.erra-lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.erra-lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lightbox-link { cursor: pointer; }
@keyframes slide { 0% { transform: translateX(calc(0% + 30px)); } 100% { transform: translateX(-100%); } }
.project-animate1 { animation: slide 45s infinite linear; }
/* Webflow per-element (#w-node-*) grid placement, restated by class */
.hero-wrap > .hero-video-wrapper { justify-self: center; }
.hero-wrap > .hero-text-content-wrapper { align-self: center; }
.hero1 > .div-block-37 { grid-area: 1 / 2 / 2 / 3; }
.hero1 > .div-block-38 { grid-area: 2 / 2 / 3 / 3; }
.flex-block-4 > img { place-self: stretch center; }
.frame-points.copop > div:not(.div-block-511) { align-self: center; }
.frame-points.copop > .extra { justify-self: center; }
.div-block-511 > img { justify-self: center; }
.grid-7 > .div-block-520.gedera { grid-area: 1 / 2 / 2 / 3; align-self: auto; }
/* Team card hover (Webflow IX2 on live, timings sampled from the live page):
   second photo ~250ms, overlay ~300ms, bio fades in (100ms) while sliding up 70px (300ms).
   Also on keyboard focus and on tap (.is-active, set by home.js). */
.about-us-photo-hover-slider2 { opacity: 0; transition: opacity .25s ease-out; }
.about-us-photo-slider2 .overlay { opacity: 0; transition: opacity .3s ease-in-out; }
.about-us-photo-slider2 .small-paragraph {
  opacity: 0; transform: translate3d(0, 70px, 0);
  transition: opacity .1s ease-out, transform .3s cubic-bezier(.4, 0, .2, 1);
}
.about-us-photo-slider2:hover .about-us-photo-hover-slider2, .about-us-photo-slider2:focus-within .about-us-photo-hover-slider2,
.about-us-photo-slider2.is-active .about-us-photo-hover-slider2,
.about-us-photo-slider2:hover .overlay, .about-us-photo-slider2:focus-within .overlay, .about-us-photo-slider2.is-active .overlay { opacity: 1; }
.about-us-photo-slider2:hover .small-paragraph, .about-us-photo-slider2:focus-within .small-paragraph,
.about-us-photo-slider2.is-active .small-paragraph { opacity: 1; transform: none; }
.about-us-photo-slider2:focus-within, .about-us-photo-slider2.is-active { opacity: 1; }
.about-us-photo-slider2:focus-visible { outline: 2px solid #0050c9; outline-offset: -2px; }
/* === /A === */

/* === B === */
.policy-text-box > .policy-paragraph { padding-bottom: 10px; }
.policy-paragraph p { margin: 0; }
/* === /B === */

/* === 1:1 hover parity (Webflow IX2 hover interactions measured on the live site) === */
/* a-6 / a-98: social icons -> brand blue in 150ms, label white */
.hero-social-icons-wrap, .hero-social-icons-wrap-2 { transition: background-color .15s ease-in-out, opacity .3s ease-out; }
.link-social-hero:hover .hero-social-icons-wrap, .link-social-hero:hover .hero-social-icons-wrap-2 { background-color: #0050c9; opacity: 1; }
.link-social-hero:hover .text-lang-nav { color: #fff; transition: color .15s ease-in-out; }
/* a-67: blog / career card -> round arrow button blue, arrow swap, photo 0.8 */
.blog-card .blog-image-card, .career-card .blog-image-card { transition: opacity .5s; }
.blog-card .image-cover, .career-card .image-cover { transition: opacity .5s; }
.blog-card:hover .slider-button.mobile.blog, .career-card:hover .slider-button.mobile.blog { background-color: #0050c9; color: #fff; transition: background-color 0s, color .5s; }
.blog-card:hover .arrow-black, .career-card:hover .arrow-black { display: none; }
.blog-card:hover .arrow-white, .career-card:hover .arrow-white { display: block; }
.blog-card:hover .blog-image-card, .career-card:hover .blog-image-card { opacity: .8; }
.blog-card:hover .image-cover, .career-card:hover .image-cover { opacity: 1; }
/* a-41: testimonial card -> photo zoom 1.1 (outExpo, 500ms), quote 0.8 -> 1 */
.slider-tall .slider-tall_photo { transition: transform .5s; }
.slider-tall .quote-feedback { opacity: .8; transition: opacity .5s; }
.slider-tall:hover .slider-tall_photo { transform: scale(1.1); transition: transform .5s cubic-bezier(.19, 1, .22, 1); }
.slider-tall:hover .quote-feedback { opacity: 1; }
/* testimonial cards keep a portrait 4:5 shape on tablet/desktop (Webflow fixed heights squashed them on wide
   screens); phones keep Webflow's fixed height, which is already taller than 4:5 in the 2-column grid */
@media (min-width: 768px) { #clients .slider-tall { height: auto; aspect-ratio: 4 / 5; } }
/* a-77: nav link nudge */
.nav_link { transition: transform .5s cubic-bezier(.165, .84, .44, 1); }
.nav_link:hover { transform: translateX(2px); }

/* === fix: home "Projects section" CTA form (.cta-2) ===
   Webflow gave the submit button margin-top:40px, so on desktop it sat 40px below the
   name/phone fields (same on the live site). Align it with the fields; keep the gap on
   mobile where the fields stack. */
@media (min-width: 768px) {
  .formblock3 .form .button.wight-200 {
    margin-top: 0;
    align-self: flex-start;
  }
}

/* === EN-B === */
/* English legal text sits in Webflow's rtl `.heb` section (live en.erra.co.il still has Hebrew there). */
html[lang="en"] .policy-text,
html[lang="en"] .policy-text *,
html[lang="ru"] .policy-text,
html[lang="ru"] .policy-text * { direction: ltr; text-align: left; }
/* English labels are longer than the Hebrew ones: keep the footer link row on one line (incl. the JS "Cookie Settings" link). */
html[lang="en"] .footer-links,
html[lang="en"] .footer-links *,
html[lang="ru"] .footer-links,
html[lang="ru"] .footer-links * { white-space: nowrap; }
/* === /EN-B === */

/* === Project landing: hero image / video set in the CMS, picture in "planning status" === */
.section.hero1.has-hero-video { position: relative; overflow: hidden; }
.hero1-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero1-shade { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(#3846505c 6%, #31313117 47%, #31313187 97%); }
.section.hero1.has-hero-video > :not(.hero1-video):not(.hero1-shade) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero1-video { display: none; } }
.planning-figure { width: 100%; margin: 0 0 40px; }
.planning-figure img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 20px #0000001a; }
.planning-figure figcaption { margin-top: 10px; font-size: 14px; color: #4a4a4a; text-align: right; direction: rtl; }
html[lang="en"] .planning-figure figcaption, html[lang="ru"] .planning-figure figcaption { text-align: left; direction: ltr; }
/* Project gallery (carousel of photos on a project landing page) */
.pgal{position:relative;margin:0 auto;max-width:1120px}
.pgal-track{position:relative;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;border-radius:12px;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;outline-offset:3px}
.pgal-track::-webkit-scrollbar{display:none}
.pgal-slide{flex:0 0 100%;margin:0;scroll-snap-align:center;scroll-snap-stop:always;position:relative}
.pgal-slide img{display:block;width:100%;height:auto;aspect-ratio:12/7;object-fit:cover;background:#e6e9ee}
.pgal-slide figcaption{position:absolute;inset-inline:0;bottom:0;padding:28px 18px 14px;color:#fff;font-size:15px;line-height:1.4;background:linear-gradient(transparent,rgba(15,20,28,.72))}
.pgal-btn{position:absolute;top:calc(50% - 20px);transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;padding:0;background:rgba(255,255,255,.94);color:#0050c9;box-shadow:0 2px 10px rgba(15,20,28,.22);cursor:pointer;display:grid;place-items:center;transition:background .15s,opacity .15s}
.pgal-btn:hover{background:#fff}
.pgal-btn:focus-visible,.pgal-dot:focus-visible{outline:2px solid #0050c9;outline-offset:2px}
.pgal-btn[disabled]{opacity:0;pointer-events:none}
.pgal-btn svg{width:20px;height:20px;display:block}
.pgal-prev{inset-inline-start:16px}
.pgal-next{inset-inline-end:16px}
.pgal[dir="rtl"] .pgal-btn svg{transform:scaleX(-1)}
.pgal-count{position:absolute;top:12px;right:12px;background:rgba(15,20,28,.62);color:#fff;font-size:13px;line-height:1;padding:6px 10px;border-radius:999px;direction:ltr;pointer-events:none}
.pgal-dots{display:flex;justify-content:center;gap:2px;margin-top:8px;height:24px}
.pgal-dot{width:24px;height:24px;border:0;padding:0;background:none;cursor:pointer;display:grid;place-items:center}
.pgal-dot:before{content:"";width:8px;height:8px;border-radius:999px;background:#c5cbd4;transition:width .2s,background .2s}
.pgal-dot[aria-current="true"]:before{width:22px;background:#0050c9}
@media (prefers-reduced-motion:reduce){.pgal-track{scroll-behavior:auto}.pgal-dot:before{transition:none}}
@media (max-width:767px){.pgal-btn{width:36px;height:36px}.pgal-btn svg{width:16px;height:16px}.pgal-prev{inset-inline-start:8px}.pgal-next{inset-inline-end:8px}.pgal-slide figcaption{font-size:13px;padding:22px 12px 10px}}

/* === Calculator pages: H1 above the app, intro / SEO text / FAQ / hub cards below === */
/* The H1 above the app is for search engines and screen readers only: the calculator shows the same title. */
.calc-head { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.calc-h1 { margin: 0; font-size: inherit; }
.calc-info { background: #fff; padding: 40px 20px 64px; color: #1a1f2b; }
.calc-info-inner { max-width: 860px; margin: 0 auto; text-align: start; font-size: 17px; line-height: 1.65; }
.calc-info-inner p, .calc-info-inner ul, .calc-info-inner ol { margin: 0 0 14px; }
.calc-info-inner ul, .calc-info-inner ol { padding-inline-start: 22px; }
.calc-info-inner h2 { margin: 36px 0 12px; font-size: 24px; line-height: 1.3; font-weight: 600; }
.calc-info-inner a { color: #0050c9; }
.calc-intro { font-size: 18px; }
.calc-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.calc-card { display: block; height: 100%; padding: 20px 22px; border: 1px solid #e0e4ea; border-radius: 12px; background: #f7f8fa; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.calc-card:hover { border-color: #0050c9; box-shadow: 0 6px 18px #0000000f; }
.calc-card-title { display: block; font-size: 20px; font-weight: 600; color: #0050c9; }
.calc-card-text { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: #4a4a4a; }
.calc-faq { margin-top: 36px; border-top: 1px solid #e0e4ea; }
.calc-faq details { border-bottom: 1px solid #e0e4ea; }
.calc-faq summary { cursor: pointer; padding: 16px 0; font-size: 18px; font-weight: 600; list-style-position: inside; }
.calc-faq summary:focus-visible { outline: 2px solid #0050c9; outline-offset: 2px; }
.calc-faq-answer { padding: 0 0 8px; }
html[lang="en"] .calc-info-inner, html[lang="en"] .calc-h1,
html[lang="ru"] .calc-info-inner, html[lang="ru"] .calc-h1 { direction: ltr; text-align: left; }
html[lang="he"] .calc-info-inner, html[lang="he"] .calc-h1 { direction: rtl; text-align: right; }
@media (max-width: 767px) { .calc-info { padding: 28px 16px 48px; } .calc-info-inner { font-size: 16px; } .calc-info-inner h2 { font-size: 21px; } }
/* === /Calculator pages === */
/* Similar-projects slider on project pages: on the left-to-right English pages its
   off-screen cards made the whole page scroll sideways. Clip without a scroll box. */
.section-cases { overflow-x: clip; }
/* Desktop menu (HE and EN): six items (incl. testimonials) on one line from 992px up; tighter spacing below 1440px. */
@media (min-width: 992px) and (max-width: 1439px) {
  .nav-menu-4 .hero-button.ghost-button { padding: 14px 12px; margin-right: 8px; white-space: nowrap; }
  .nav-menu-4 .open-contact { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-menu-4 .hero-button.ghost-button { padding: 12px 6px; margin-right: 2px; font-size: 15px; }
  .nav-menu-4 .open-contact { padding-left: 14px; padding-right: 14px; font-size: 15px; }
}
/* Russian desktop menu: the labels are longer, keep each on one line and tighten the spacing. */
@media (min-width: 992px) {
  html[lang="ru"] .nav-menu-4 .hero-button.ghost-button,
  html[lang="ru"] .nav-menu-4 .open-contact { white-space: nowrap; }
  html[lang="ru"] .nav-menu-4 .hero-button.ghost-button { padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 992px) and (max-width: 1279px) {
  html[lang="ru"] .nav-menu-4 .hero-button.ghost-button { padding: 12px 6px; margin-right: 2px; font-size: 14px; }
  html[lang="ru"] .nav-menu-4 .open-contact { padding-left: 12px; padding-right: 12px; font-size: 14px; }
}
/* Home: the moving strip of project photos above the "רוצה לקבל מידע" form made the page scroll sideways
   on 768-1100px screens. Clip without a scroll box (the strip still runs edge to edge). */
.cta-2 { overflow-x: clip; }
/* Home, ERRA Analytics: the mobile title is an h2 now (one h1 per page). Keep the 10px gap the h1 had. */
.heading-70 { margin-bottom: 10px; }

/* Desktop menu: one line per item, tighter on narrower screens (9 items incl. glossary and careers).
   Same menu on the calculator and app pages, whose header (.case-header) is solid white like the rest of the site. */
.nav-menu-4 .hero-button{white-space:nowrap}
@media (max-width:1700px){.nav-menu-4 .hero-button.ghost-button{padding-left:10px;padding-right:10px}}
@media (max-width:1439px){.nav-menu-4 .hero-button.ghost-button{padding-left:7px;padding-right:7px;font-size:15px}.nav-menu-4 .hero-button.open-contact{padding-left:16px;padding-right:16px}}
@media (max-width:1279px){.nav-menu-4 .hero-button.ghost-button{padding-left:4px;padding-right:4px;font-size:14px}.nav-menu-4 .hero-button.open-contact{padding-left:12px;padding-right:12px;font-size:14px}}
@media (max-width:1099px){.nav-menu-4 .hero-button.ghost-button{padding-left:2px;padding-right:2px;font-size:13px}.nav-menu-4 .hero-button.open-contact{padding-left:10px;padding-right:10px;font-size:13px}}
.case-header.hide-copy{background-color:#fff}
.nav-menu-4 .hero-button-copy{white-space:nowrap}
/* Projects page hero: the map fills the hero only, instead of running on behind the project cards. */
.project-hero{overflow:hidden}
.project-hero .image-11{height:100%}

/* Project and calculator pages: the header keeps the width of the main menu (96px side padding) on wide screens,
   in every language. With the 160px of webflow the Hebrew menu ran past the screen edge and cut the logo. */
@media screen and (min-width: 1440px) {
  .case-header.hide-copy { padding-left: var(--left-side-px); padding-right: 6rem; }
}

/* No sideways drift on phones: imported page blocks (e.g. the calculator embed on project pages, with -20px side margins)
   and off-screen drawers stuck out of the page, so the whole page could be dragged left and right. */
html, body { overflow-x: clip; }

/* Phones get a lighter copy of each project hero picture (same picture, same gradient as webflow.css). */
@media screen and (max-width:767px){
  .section.hero1{background-image:linear-gradient(#3846505c 6%,#31313117 47%,#31313187 97%),url("../wf/m/hero-rehovot.264f2e5964d5.webp")}
  .section.hero1.gedera{background-image:linear-gradient(#4580aa96,#31313117 47%,#31313199 93%),url("../wf/m/hero-gedera.716f453fee9e.webp")}
  .section.hero1.hadera{background-image:linear-gradient(#3c586b57 6%,#31313117 47%,#313131b8 96%),url("../wf/m/hero-hadera.f26d78aff35d.webp")}
  .section.hero1.kfariona{background-image:linear-gradient(#5ea3d38a,#31313117 47%,#313131ad 94%),url("../wf/m/hero-kfariona.470f738f59c6.webp")}
}
