/*
 Theme Name: Hello Biz Child
 Theme URI: https://webify.co.il
 Description: תבנית בת ל-Hello Biz
 Author: Noam / Webify
 Author URI: https://webify.co.il
 Template: hello-biz
 Version: 1.0.0
 Text Domain: hello-biz-child
*/
/* ---------- Scroll Down Arrow (Hero) ---------- */

html {
  scroll-behavior: smooth;
}

/* הלינק שמחזיק את האייקון – ממרכז לתחתית ההירו */
.c-scroll-icon-link {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 20;
  text-decoration: none;
}

/* הסקשן של ההירו כקונטיינר */
.elementor-section.hero-with-scroll-arrow {
  position: relative;
}

/* האייקון עצמו – הגדלה */
.c-scroll-icon {
  width: 21px;
  height: 100px;
  backface-visibility: hidden;
  transform: scale(1.7);
  transform-origin: center bottom;
}

/* הקו הארוך במרכז */
.c-scroll-icon-line-mask {
  position: relative;
  overflow: hidden;
  width: 21px;
  height: 100px;
  margin: 0 auto;
}

.c-scroll-icon-line {
  position: absolute;
  display: inline-block;
  width: 1px;
  height: 150px;
  border-left: 1px solid #ffffff;
  top: -150px;
  left: 10px;
  animation: scroll-line 3s infinite;
  transition: all cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

@keyframes scroll-line {
  0% {
    transform: translate3d(0, 0, 0);
  }
  40% {
    transform: translate3d(0, 185px, 0);
  }
  75% {
    transform: translate3d(0, 175px, 0);
  }
  100% {
    transform: translate3d(0, 280px, 0);
  }
}

/* החץ המשולש */
.c-scroll-icon-triangle {
  position: relative;
  width: 20px;
  height: 30px;
  margin: -10px auto 0;
  animation: triangle-bounce 3s infinite;
}

.c-scroll-icon-triangle-mask {
  position: absolute;
}

.c-scroll-icon-triangle-mask.first {
  width: 40px;
  height: 5px;
  right: 0;
  overflow: hidden;
}

.c-scroll-icon-triangle-mask.right {
  width: 10px;
  height: 30px;
  overflow: hidden;
  right: 0;
}

.c-scroll-icon-triangle-mask.left {
  width: 10px;
  height: 30px;
  overflow: hidden;
  left: 1px;
}

.c-scroll-icon-triangle-mask.last {
  width: 40px;
  height: 5px;
  overflow: hidden;
}

.c-scroll-icon-triangle-line {
  position: absolute;
}

.c-scroll-icon-triangle-line.first {
  border-bottom: 1px solid #ffffff;
  width: 30px;
  right: 0;
  animation: triangle-first 3s infinite;
  transition: all 600ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.c-scroll-icon-triangle-line.right {
  border-left: 1px solid #ffffff;
  height: 44px;
  transform: rotate(-163deg);
  right: 5px;
  top: -6px;
  animation: triangle-right 3s infinite;
  transition: all 600ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.c-scroll-icon-triangle-line.left {
  border-left: 1px solid #ffffff;
  height: 40px;
  transform: rotate(163deg);
  left: 5px;
  top: -3px;
  animation: triangle-left 3s infinite;
  transition: all 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.c-scroll-icon-triangle-line.last {
  border-bottom: 1px solid #ffffff;
  width: 120px;
  left: 0;
  animation: triangle-last 3s infinite;
  transition: all 600ms cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

/* אנימציות */
@keyframes triangle-bounce {
  0% {
    transform: translate3d(0, -5px, 0);
  }
  50% {
    transform: translate3d(0, 5px, 0);
  }
  100% {
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes triangle-first {
  0%,
  20% {
    transform: translate3d(-40px, 0, 0);
  }
  30%,
  80% {
    transform: translate3d(10px, 0, 0);
  }
  85%,
  100% {
    transform: translate3d(30px, 0, 0);
  }
}

@keyframes triangle-right {
  0%,
  25% {
    transform: rotate(-163deg) translate3d(0, 40px, 0);
  }
  40%,
  84% {
    transform: rotate(-163deg) translate3d(0, 0, 0);
  }
  90%,
  100% {
    transform: rotate(-163deg) translate3d(0, -37px, 0);
  }
}

@keyframes triangle-left {
  0%,
  33% {
    transform: rotate(163deg) translate3d(0, -34px, 0);
  }
  50%,
  88% {
    transform: rotate(163deg) translate3d(0, 0, 0);
  }
  95%,
  100% {
    transform: rotate(163deg) translate3d(0, 38px, 0);
  }
}

@keyframes triangle-last {
  0%,
  87.5% {
    transform: translate3d(-120px, 0, 0);
  }
  91% {
    transform: translate3d(-80px, 0, 0);
  }
  100% {
    transform: translate3d(45px, 0, 0);
  }
}

/* ===========================
   HEADER – HOME ONLY (שקוף → לבן בגלילה)
   =========================== */

/* ברירת מחדל בדף הבית – הדר שקוף */
body.home .wf-header {
  background-color: transparent !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  z-index: 999;
}

/* אחרי גלילה בדף הבית – הדר לבן */
body.home .wf-header.wf-scrolled {
  background-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

/* קישורי תפריט ראשיים (הופקי) בדף הבית – על הירו (שקוף) */
body.home .wf-header .elementor-nav-menu--main .elementor-nav-menu a {
  color: #fff !important;
}

/* קישורי תפריט ראשיים (הופקי) בדף הבית – אחרי גלילה על לבן */
body.home .wf-header.wf-scrolled .elementor-nav-menu--main .elementor-nav-menu a {
  color: #222222 !important;
}
/* קישורים בתוך המגה־מניו תמיד כהים */
.mega-menu--catalog .mega-menu-cats-menu .elementor-nav-menu a {
  color: #222222 !important;
}
/* טלפון בהדר – לבן בדף הבית לפני גלילה */
body.home .wf-header .wf-header-phone,
body.home .wf-header .wf-header-phone a {
  color: #ffffff !important;
}
body.home .wf-header .wf-header-phone .elementor-icon-list-icon svg {
  fill: #ffffff !important;
}

/* טלפון בדף הבית אחרי גלילה – כהה */
body.home .wf-header.wf-scrolled .wf-header-phone,
body.home .wf-header.wf-scrolled .wf-header-phone a {
  color: #222222 !important;
}
body.home .wf-header.wf-scrolled .wf-header-phone .elementor-icon-list-icon svg {
  fill: #222222 !important;
}

/* ===========================
   HEADER – INNER PAGES (תמיד לבן)
   =========================== */

/* כל דף שאינו home – הדר לבן תמיד */
body:not(.home) .wf-header {
  background-color: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* קישורי תפריט ראשיים בדפים פנימיים – תמיד כהים */
body:not(.home) .wf-header .elementor-nav-menu--main .elementor-nav-menu a {
  color: #222222 !important;
}

/* טלפון בדפים פנימיים – תמיד כהה */
body:not(.home) .wf-header .wf-header-phone,
body:not(.home) .wf-header .wf-header-phone a {
  color: #222222 !important;
}
body:not(.home) .wf-header .wf-header-phone .elementor-icon-list-icon svg {
  fill: #222222 !important;
}

/* ===========================
   Mini Mega Menu – Catalog
   =========================== */

.mega-menu-wrapper {
  position: relative;
}

.mega-menu--catalog {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  margin-top: 0;

  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 20px 40px;

  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
}

.mega-menu--catalog.is-open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu__col {
  box-sizing: border-box;
}

.mega-menu__cats {
  flex: 0 0 28%;
  max-width: 28%;
  padding-inline-end: 24px;
  border-inline-end: 1px solid #eee;
}

.mega-menu__preview {
  flex: 1;
  padding-inline-start: 24px;
}

.mega-menu-cats-menu .elementor-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu-cats-menu .elementor-item {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.mega-menu-cats-menu .elementor-item:hover {
  color: #000;
  padding-inline-start: 6px;
}

.mega-menu__preview-inner {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.mega-menu__loading,
.mega-menu__error {
  font-size: 14px;
  color: #777;
}

.mega-menu-product {
  display: flex;
  gap: 16px;
  text-align: right;
}

.mega-menu-product > a {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.mega-menu-product__thumb img {
  display: block;
  max-width: 120px;
  height: auto;
  border-radius: 4px;
}

.mega-menu-product__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mega-menu-product__title {
  font-size: 16px;
  margin: 0 0 6px;
  color: #222;
}

.mega-menu-product__price {
  font-size: 14px;
  margin-bottom: 8px;
  color: #444;
}

.mega-menu-product__cta {
  font-size: 13px;
  color: #0073aa;
}

/* במובייל – לא מציגים את המגה־מניו */
@media (max-width: 1024px) {
  .mega-menu--catalog {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

li.menu-item--catalog > a {
  position: relative;
}

li.menu-item--catalog:hover > a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -10px;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
}


.mega-menu--catalog .mega-menu-cats-menu .elementor-nav-menu a:hover {
  color: #000000 !important;
}

/* ===========================
   FULLSCREEN MOBILE DROPDOWN – כל האתר
   =========================== */
@media (max-width: 1024px) {

  /* האוברליי הכחול – מסך מלא */
  .wf-main-nav .elementor-nav-menu--dropdown[aria-hidden="false"] {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: #08004a;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    z-index: 9999;
  }

  /* הרשימה במרכז המסך */
  .wf-main-nav .elementor-nav-menu--dropdown[aria-hidden="false"] > .elementor-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    gap: 24px;
  }

  /* קישורי התפריט באוברליי – תמיד לבנים */
  .wf-main-nav .elementor-nav-menu--dropdown[aria-hidden="false"] .elementor-item {
    color: #ffffff !important;
    font-size: 34px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    transition: font-weight 0.15s ease;
  }

  /* קישור פעיל – מודגש בלבד */
  .wf-main-nav .elementor-nav-menu--dropdown[aria-hidden="false"]
  .elementor-item.elementor-item-active,
  .wf-main-nav .elementor-nav-menu--dropdown[aria-hidden="false"]
  .current-menu-item > .elementor-item {
    font-weight: 700 !important;
  }

  /* הובר – מודגש, בלי שינוי צבע */
  .wf-main-nav .elementor-nav-menu--dropdown[aria-hidden="false"] .elementor-item:hover {
    font-weight: 700 !important;
    opacity: 1;
  }

  /* כפתור ההמבורגר / X – תמיד מעל האוברליי */
  .wf-header .elementor-menu-toggle {
    position: relative;
    z-index: 100000;
  }
}

/* ===========================
   MOBILE TOGGLE ICONS
   =========================== */

/* HOME – לפני גלילה: שני האייקונים לבנים על הירו */
body.home .wf-header .elementor-menu-toggle svg,
body.home .wf-header .elementor-menu-toggle svg path {
  color: #ffffff;
  fill: #ffffff;
}

/* HOME – אחרי גלילה: ההמבורגר (3 פסים) כהה על לבן */
body.home .wf-header.wf-scrolled .elementor-menu-toggle svg.elementor-menu-toggle__icon--open,
body.home .wf-header.wf-scrolled .elementor-menu-toggle svg.elementor-menu-toggle__icon--open path {
  color: #222222 !important;
  fill: #222222 !important;
}

/* INNER PAGES – ההמבורגר תמיד כהה (הדר לבן תמיד) */
body:not(.home) .wf-header .elementor-menu-toggle svg.elementor-menu-toggle__icon--open,
body:not(.home) .wf-header .elementor-menu-toggle svg.elementor-menu-toggle__icon--open path {
  color: #222222 !important;
  fill: #222222 !important;
}

/* כשהתפריט פתוח בכל אתר – ה-X תמיד לבן על הרקע הכחול */
.wf-header .elementor-menu-toggle.elementor-active svg.elementor-menu-toggle__icon--close,
.wf-header .elementor-menu-toggle.elementor-active svg.elementor-menu-toggle__icon--close path {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* לוגו במובייל מיושר לשמאל בתוך ה- <a> */
@media (max-width: 767px) {
  .wf-header .wf-site-logo {
    text-align: left !important;
  }

  .wf-header .wf-site-logo a {
    display: inline-flex;
    justify-content: flex-end;
  }

  .wf-header .wf-site-logo img {
    margin: 0; /* לוודא שאין מרג'ין שממרכז אותו */
  }
}


/* ===== Footer Accordion – Tablet + Mobile ===== */
@media (max-width: 1024px) {

  /* כל אחת מ־4 העמודות הראשונות שהפכו לאקורדיון */
  .footer-accordion-col {
    padding: 10px 0;
  }

  /* כותרת העמודה – ה־Heading עם הקלאס footer-acc-title */
  .footer-acc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    text-align: right;
    cursor: pointer;
  }

  /* הטקסט עצמו בתוך ה־Heading */
  .footer-acc-title .elementor-heading-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }

  /* האייקון (חץ) – Font Awesome לפני הטקסט */
  .footer-acc-title::before {
    /* שמות נפוצים של Font Awesome 5/6/7 – אחד מהם יתפוס */
    font-family: "Font Awesome 7 Free",
                 "Font Awesome 6 Free",
                 "Font Awesome 5 Free",
                 "Font Awesome 5 Pro",
                 "FontAwesome";
    font-weight: 900;             /* ל-solid */
    content: "\f107";             /* fa-angle-down */
    display: inline-block;
    margin-inline-start: 8px;     /* ב-RTL זה בצד שמאל של הטקסט */
    font-size: 0.9em;
    line-height: 1;
    transition: transform 0.2s ease;
    transform-origin: center;
	color: #fff;
	top: 5px;
    position: relative;
  }

  /* כשהעמודה פתוחה – חץ שמאלה (fa-angle-left) */
  .footer-accordion-col.is-open .footer-acc-title::before {
    content: "\f104";             /* fa-angle-left */
  }

  /* תוכן העמודה – רשימת האייקונים / לינקים */
  .footer-acc-panel {
    display: none;
    padding-top: 8px;
  }

  /* כשהעמודה פתוחה – התוכן מוצג */
  .footer-accordion-col.is-open .footer-acc-panel {
    display: block;
  }
}

/* בדסקטופ – שומר על פוטר "רגיל" ללא אקורדיון (הכל פתוח) */
@media (min-width: 1025px) {
  .footer-acc-panel {
    display: block !important;
  }
}
/* =========================================
   FIX: Mega Menu links always dark (Desktop)
   ========================================= */

/* מוודאים שכל תוכן המגה מניו "קטלוג" תמיד כהה
   גם בדף הבית לפני גלילה (כשקישורי ההדר לבנים) */
body.home .wf-header .mega-menu--catalog,
body.home .wf-header .mega-menu--catalog a,
body.home .wf-header .mega-menu--catalog .elementor-item,
body.home .wf-header .mega-menu--catalog .elementor-nav-menu--main .elementor-item,
body.home .wf-header .mega-menu--catalog .mega-menu__preview-inner,
body.home .wf-header .mega-menu--catalog .mega-menu-product__title,
body.home .wf-header .mega-menu--catalog .mega-menu-product__price,
body.home .wf-header .mega-menu--catalog .mega-menu-product__cta {
  color: #222222 !important;
}

/* החץ/אייקון תת-תפריט אם קיים בתוך תפריט הקטגוריות */
body.home .wf-header .mega-menu--catalog .elementor-item .sub-arrow,
body.home .wf-header .mega-menu--catalog .elementor-item i,
body.home .wf-header .mega-menu--catalog .elementor-item svg {
  color: #222222 !important;
  fill: #222222 !important;
}

/* Hover במגה מניו - כהה יותר */
body.home .wf-header .mega-menu--catalog a:hover,
body.home .wf-header .mega-menu--catalog .elementor-item:hover {
  color: #000000 !important;
}

/* גם בדפים פנימיים - ליתר ביטחון */
body:not(.home) .wf-header .mega-menu--catalog,
body:not(.home) .wf-header .mega-menu--catalog a,
body:not(.home) .wf-header .mega-menu--catalog .elementor-item {
  color: #222222 !important;
}
/* =========================================
   FIX: Header phone text color on scroll
   ========================================= */

/* לפני גלילה בדף הבית – טלפון לבן */
body.home .wf-header .wf-header-phone a,
body.home .wf-header .wf-header-phone .elementor-icon-list-text,
body.home .wf-header .wf-header-phone .elementor-icon-list-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* אחרי גלילה בדף הבית – טלפון שחור */
body.home .wf-header.wf-scrolled .wf-header-phone a,
body.home .wf-header.wf-scrolled .wf-header-phone .elementor-icon-list-text,
body.home .wf-header.wf-scrolled .wf-header-phone .elementor-icon-list-icon svg {
  color: #222222 !important;
  fill: #222222 !important;
}
