/*
-global styles
--Typography
--Colors
--header
---branding
---nav
--footer
--Popup Styles
*/
/*--------------------------------global styles--------------------------------*/

/*--------------------------------Open Sans (self-hosted)--------------------------------*/
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-v44-hebrew_latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-v44-hebrew_latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/open-sans-v44-hebrew_latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/open-sans-v44-hebrew_latin-500italic.woff2")
    format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-v44-hebrew_latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-v44-hebrew_latin-700.woff2") format("woff2");
}

/*--------------------------------From style.css--------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #0073aa;
}

a:hover {
  color: #005177;
}

.container {
  width: 80%;
  margin: 0 auto;
}

.header {
  background: #f8f8f8;
  padding: 20px;
  text-align: center;
}

.footer {
  background: #f8f8f8;
  padding: 20px;
  text-align: center;
}

/*--------------------------------From globals.css--------------------------------*/

body #acwp-toolbar-btn-wrap {
  bottom: 40px !important;
}
#acwp-toolbar-btn-wrap {
  transform: scale(0.8);
}
body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  color: #2c3e50;
}

body * {
  box-sizing: border-box;
}

.container {
  width: calc(100% - 40px);
  margin: auto;
  overflow: hidden;
  max-width: 1160px;
}

.flex_box {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.section {
  position: relative;
  padding: 88px 0;
}

/* Base state (before entering view) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 0, 0); /* create a new layer */
  transition-property: opacity, transform, width;
  transition-duration: var(--reveal-dur, 600ms);
  transition-timing-function: var(
    --reveal-ease,
    cubic-bezier(0.2, 0.65, 0.2, 1)
  );
  will-change: opacity, transform;
}

/* 1) Fade Up */
.reveal-fade-up {
  --reveal-offset: 16px; /* distance to travel */
  transform: translate3d(0, var(--reveal-offset), 0);
}

/* 2) Slide In Left */
.reveal-slide-left {
  --reveal-offset: 24px;
  transform: translate3d(var(--reveal-offset), 0, 0);
}

/* 3) Zoom In */
.reveal-zoom-in {
  --reveal-scale: 0.92;
  transform: scale(var(--reveal-scale));
}

/* Slide in from the left edge toward the right (element starts left) */
.reveal-slide-right {
  --reveal-offset: 24px;
  transform: translate3d(calc(var(--reveal-offset, 24px) * -1), 0, 0);
}

/* Fade in from above (element starts slightly above) */
.reveal-fade-down {
  --reveal-offset: 16px;
  transform: translate3d(0, calc(var(--reveal-offset, 16px) * -1), 0);
}

/* Final state (after entering view) */
.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Optional: stagger helper for children */
.reveal-stagger > * {
  transition-delay: calc(var(--reveal-stagger-step, 120ms) * var(--i, 0));
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in,
  .reveal-stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

form {
  direction: rtl;
}

/*--------------------------------Typography--------------------------------*/

h1 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 100%;
  letter-spacing: 0px;
  text-align: center;
  margin-bottom: 0.8em;
}

h2 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 60px;
  letter-spacing: -2px;
  text-align: center;
  margin-bottom: 0.8em;
}

h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 130%;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 0.8em;
}

p {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0;
  text-align: right;
  margin-bottom: 0.8em;
}

.gradientseperator {
  background: radial-gradient(
    50% 72000% at 50% 50%,
    #e67e22 29.1%,
    #f9f9f9 100%
  );
  height: 8px;
  width: 0;
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/*--------------------------------header--------------------------------*/

header {
  background: #fff;
  color: #2c3e50;
  padding: 10px 0;
  text-align: center;
}

#site-header {
  display: flex;
  flex-direction: row-reverse; /* This will put logo on left for RTL */
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  box-shadow: 0px 4px 4px 0px #00000040;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
}

#site-header .site-branding img {
  display: block;
}

/*--------------------------------nav--------------------------------*/

nav {
  margin: 0px 0;
}

nav a {
  color: #2c3e50;
  text-decoration: none;
  padding: 10px 15px;
}

nav a:hover {
  color: #e67e22;
}

#primary-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-start; /* Align items to right for RTL */
  position: relative;
}

#primary-menu a {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  line-height: 120%;
  text-align: right;
  margin-left: 35px;
  display: block;
}

#primary-menu .top_menu_button a {
  background-color: #e67e22;
  color: #2c3e50;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 4px 4px 4px 0px #00000029;
  font-family: Open Sans;
  font-weight: 700;
  font-style: Bold;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: 0%;
  text-align: center;
  text-transform: none;
}

#primary-menu .top_menu_button a:hover {
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  transition: all 0.4s ease;
  transform: scale(1.05);
}

#primary-menu .menu-item {
  position: relative;
}

#primary-menu .menu-item .sub-menu {
  position: absolute;
  background: #fff;
  box-shadow: 0px 4px 8px 0px #00000040;
  /* display: none; */
  margin-top: 10px;
  border-radius: 5px;
  z-index: 1000;
  top: 98%;
  right: 0;
  list-style: none;
  padding: 10px 6px;
  margin-top: 0;
  border-right: solid 4px #e67e22;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: top center;
  visibility: hidden; /* remove from a11y tree visually */
  pointer-events: none; /* avoid accidental hover traps */
  transition:
    opacity 0.18s ease,
    transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1),
    visibility 0s linear 0.24s;
}

#primary-menu .menu-item:hover .sub-menu,
#primary-menu .menu-item:focus-within .sub-menu {
  /* display: block; */
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.18s ease,
    transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1),
    visibility 0s linear 0s;
}

#primary-menu .sub-menu a {
  font-size: 16px;
  margin-left: 0;
}

#footer_menu nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer_menu nav ul a {
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;
}

#footer_logo img {
  height: 29px;
  width: auto;
  display: block;
}

/*--------------------------------footer--------------------------------*/

footer {
  text-align: center;
  padding: 0px 0;
  background: #e5e8e8;
  position: relative;
  bottom: 0;
  width: 100%;
}

footer #footer_baranding {
  background: var(--Colorlight-grey-back, #7f8c8d61);
  padding: 20px 0;
}

footer #footer_widget_area {
  padding: 58px 0 50px;
}

footer #footer_baranding .flex_box {
  align-items: center;
}

footer #footer_baranding .copyright {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0%;
}

footer #footer_widget_area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer #footer_widget_area ul li {
  text-align: right;
}

footer #footer_widget_area ul li a {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: 0%;
  text-align: right;
  color: #2c3e50;
  text-decoration: none;
}

footer #footer_widget_area ul.wp-block-social-links li a {
  color: #fff;
}

footer #footer_widget_area ul.wp-block-social-links li a:hover {
  color: #fff;
}

footer #footer_widget_area ul li a:hover {
  color: #e67e22;
}

footer #footer_widget_area h3 {
  text-align: right;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-style: Bold;
  font-size: 20px;
  line-height: 130%;
  letter-spacing: 0%;
  color: #e67e22;
}

/*--------------------------------Popup Styles--------------------------------*/
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  direction: rtl;
}

.popup-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: right;
}

.popup-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #2c3e50;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.popup-close:hover {
  color: #e67e22;
}

body.popup-open {
  overflow: hidden;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 60px;
  right: -50px;
  z-index: 99;
  background-color: #25d366;
  padding: 3px 5px;
  border-radius: 5px 0 0 5px;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.floating-whatsapp img {
  width: 34px;
  height: 34px;
  display: block;
}

.floating-whatsapp.visible {
  right: 0;
  visibility: visible;
}

.floating-whatsapp:hover {
  background-color: #128c7e; /* Darker WhatsApp color on hover */
  padding-right: 15px;
}

/* Mobile styles for WhatsApp button */
@media screen and (max-width: 450px) {
  .floating-whatsapp {
    bottom: 70px;
    padding: 6px;
  }
  .floating-whatsapp img {
    width: 28px;
    height: 28px;
  }
  .floating-whatsapp:hover {
    padding-right: 12px;
  }
}

/* Floating CTA Button */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: -200px; /* Start off-screen */
  z-index: 99;
  background-color: #e67e22;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px 0 0 5px; /* Rounded corners only on the left side */
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  font-size: 14px;
  line-height: 120%;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  visibility: hidden;
}

.floating-cta.visible {
  right: 0; /* Slide to the edge */
  visibility: visible;
}

.floating-cta:hover {
  background-color: #2c3e50;
  padding-right: 25px; /* Expand padding on hover */
}

/* Mobile styles for floating CTA */
@media screen and (max-width: 450px) {
  .floating-cta {
    bottom: 15px;
    padding: 6px 12px;
    font-size: 12px;
  }
  .floating-cta:hover {
    padding-right: 20px;
  }
} /* Adjust for mobile */
@media screen and (max-width: 450px) {
  .floating-cta {
    bottom: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 12px;
  }
}
