* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  background: linear-gradient(180deg, #f2f9fd 0%, #e9f4fc 100%);
  color: #0a2342;
  scroll-behavior: smooth;
}

html[dir="ltr"] body {
  direction: ltr;
}

/* Offset anchor targets so that section titles are visible when clicking navigation links.
   The navigation bar is fixed at the top (about 70px high), so give sections a scroll-margin
   to account for it. */
section {
  scroll-margin-top: 90px;
}
#home {
  scroll-margin-top: 90px;
}

nav {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: fixed;
  height: 70px;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  direction: rtl;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-icon {
  height: 48px;
  width: auto;
  margin-left: 8px;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-blue {
  color: #005675;
}

.logo-orange {
  color: #ffcd29;
}

.logo-text .logo-blue {
  font-weight: 700;
}

.logo-text .logo-orange {
  font-weight: 400;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 10px;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #0a2342;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-menu a:hover {
  background-color: #f0f6fc;
}

.nav-menu .login-btn {
  background-color: #005a7a;
  color: #ffffff;
}

.nav-menu .login-btn:hover {
  background-color: #003f57;
  color: #ffffff;
}

.login-btn {
  background-color: #005a7a;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 4px;
}

.login-btn:hover {
  background-color: #004a63;
  color: #ffffff;
}

.desktop-login {
  display: none;
  margin-right: 10px;
  text-decoration: none;
  align-items: center;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 24px;
  justify-content: center;
  align-items: center;
}

.nav-toggle-label span {
  background-color: #005a7a;
  height: 3px;
  width: 100%;
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hero {
  padding: 0px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, #e9f4fc 0%, #f6fbfe 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}

#hero-paragraph {
  height: 20px;
  max-width: none;     
  text-align: center;
  white-space: nowrap;
}
.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #005a7a;
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero .cta-btn {
  background-color: #f5af19;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero .cta-btn:hover {
  background-color: #d99616;
}

.hero h1,
.hero p,
.hero .cta-btn {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

#services {
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: #005a7a;
  text-align: center;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #dfeaf1;
  border-radius: 10px;
  width: 260px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 36px;
  color: #005a7a;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #005a7a;
}

.service-card p {
  font-size: 14px;
  color: #3d4e63;
}

#about {
  padding: 80px 20px;
  background-color: #ffffff;
}

#about .about-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#about p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

#contact {
  padding: 80px 20px;
  background-color: #e9f4fc;
}

#contact .contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #c6d6e0;
  border-radius: 5px;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  background-color: #005a7a;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #00425a;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  /* ניווט – הלוגו במרכז, שאר האלמנטים בצדדים */
  nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

  /* אייקון המבורגר – בצד ימין */
  .nav-toggle-label {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    left: auto;
  }

  /* הלוגו – בדיוק באמצע */
  .logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  /* תפריט צד נפתח */
  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    left: auto;
    width: 75%;
    max-width: 200px;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-left: 1px solid #dfeaf1;
    display: none;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    text-align: right;
  }

      #hero-paragraph {
    padding:  0 0 15%;
    max-width: none;     
    text-align: center;
    white-space: wrap;
  }

  .nav-menu li {
    width: 100%;
    margin: 10px 0;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .logo-icon {
    height: 40px;
  }

  .logo-text {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .desktop-login {
    display: inline-flex;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-menu .login-item {
    display: none;
  }
}

#partners {
  padding: 20px 20px 80px;
  background-color: #ffffff;
  text-align: center;
}

.partners-group {
  margin-bottom: 60px;
}

.group-title {
  font-size: 24px;
  font-weight: 700;
  color: #005a7a;
  margin-bottom: 20px;
  text-align: center;
}

.logos_landing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.logo-card {
  background-color: #f9fcfe;
  border: 1px solid #dfeaf1;
  border-radius: 10px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.logo-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border-color: #c0d1d8;
}

.logo-card img {
  max-width: 80px;
  max-height: 80px;
}

/* -------------------------------------------------------------
   Language switcher styling
   The site supports Hebrew, English and Arabic translations.  The
   language switcher appears as a row of buttons.  On larger
   screens it is positioned absolutely on the left side of the
   navigation bar; on small screens it is placed inside the
   slide‑out menu.  Active language buttons are underlined.
*/
.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switcher button {
  background: none;
  border: none;
  color: #005a7a;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lang-switcher button:hover {
  background-color: #f0f6fc;
}

.lang-switcher button.active {
  text-decoration: underline;
  font-weight: 700;
}

/* Desktop and mobile placements */
.desktop-lang-switcher {
  display: none;
}

.mobile-lang-switcher {
  display: none;
}

@media (min-width: 769px) {
  .desktop-lang-switcher {
    display: flex;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  .mobile-lang-switcher {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-lang-switcher {
    display: none;
  }
  .mobile-lang-switcher {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
  .mobile-lang-switcher .lang-switcher {
    justify-content: flex-start;
  }
}

.logos_landing-row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.logo-card {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

body.high-contrast {
  background-color: #000000;
  color: #ffffff;
}

body.high-contrast nav {
  background-color: #000000;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.high-contrast .nav-menu a,
body.high-contrast .logo-text span {
  color: #ffffff;
}

body.high-contrast .nav-menu a:hover {
  background-color: #333333;
}

body.high-contrast .login-btn,
body.high-contrast .hero .cta-btn,
body.high-contrast .accessibility-toggle {
  background-color: #f5af19;
  color: #000000 !important;
}

body.high-contrast .login-btn:hover,
body.high-contrast .hero .cta-btn:hover,
body.high-contrast .accessibility-toggle:hover {
  background-color: #d99616;
}

body.high-contrast .service-card,
body.high-contrast .logo-card,
body.high-contrast .contact-form {
  background-color: #111111;
  border-color: #333333;
  color: #ffffff;
}

body.high-contrast .group-title,
body.high-contrast .section-title {
  color: #f5af19;
}

body.high-contrast a {
  color: #99cfff;
}

body.high-contrast .whatsapp-float {
  filter: brightness(0.7);
}

body.high-contrast .hero h1,
body.high-contrast .hero p {
  color: #ffffff;
}

body.high-contrast .hero {
  background: #000000 !important;
}

/*#userwayAccessibilityIcon,
#userway-widget,
.userway_widget,
.userway-widget,
.userway_accessibility_widget {
  position: fixed !important;
 bottom: 90px !important;
  left: 30px !important;
  right: auto !important;
  
   position: absolute;
  top:80px;
  border:black;
  right:30px;
  z-index: 999999 !important;
}*/

/* דסקטופ – תפריט במרכז, לוגו בצד ימין */
@media (min-width: 769px) {
  nav {
    justify-content: center;   /* כל מה שבפנים ממורכז */
  }

  .logo-wrapper {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ===== טולטיפ ללוגו-קארד ===== */
.logo-tooltip {
  position: fixed;
  display: none;
  padding: 6px 10px;
  background-color: #000000cc;
  color: #ffffff;
  font-size: 13px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10000;
  white-space: nowrap;
}
