/*
Theme Name: Clean Team Child
Theme URI: https://cleanteam.co.il
Description: Child theme of Hello Elementor for Clean Team (cleanteam.co.il). The single, version-controlled home for custom CSS/PHP that previously lived scattered across Customizer → Additional CSS, the Code Snippets plugin, and direct DB edits. Hebrew RTL site.
Author: Clean Team
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: clean-team-child
*/

/* =========================================================================
   Custom overrides — add site CSS here instead of Customizer/Additional CSS.
   Keep selectors scoped and commented so future edits are traceable.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Footer menus (template 339) — pairs with deploy/cleanteam-footer-layout-fix.php
   which sets those nav-menus to layout=vertical. REPLACES the old
   footer-desktop-fix.css force-open hack (that hack force-showed a duplicate
   .elementor-nav-menu--dropdown panel under vertical layout, doubling the
   footer height — remove it from Customizer → Additional CSS).
   ------------------------------------------------------------------------- */
/* Hide the duplicate dropdown panel + toggle (vertical layout always shows the
   main list, so neither is needed). */
[data-elementor-type="footer"] .elementor-nav-menu--dropdown { display: none !important; }
[data-elementor-type="footer"] .elementor-menu-toggle { display: none !important; }

/* Center the footer link columns on mobile (vertical lists default to
   RTL-start). .elementor-nav-menu--main is a flex container holding the <ul>,
   so justify-content:center centers the list within the column; the per-item
   rules center the text inside each link. */
@media (max-width: 767px) {
  [data-elementor-type="footer"] .elementor-nav-menu--main { justify-content: center !important; }
  [data-elementor-type="footer"] .elementor-nav-menu--main .elementor-item { justify-content: center !important; text-align: center !important; }
}

/* -------------------------------------------------------------------------
   Header: fix the "double underline" on the active menu item.
   Elementor Pro Sticky (sticky:top + effects) leaves an .elementor-sticky__spacer
   clone of the header (visibility:hidden) in the DOM. Elementor sets the
   pointer underline pseudo (.elementor-item::after) to visibility:visible, which
   OVERRIDES the spacer's hidden state, so the spacer's underline bleeds through
   and stacks with the real one. Kill the pseudo-underlines on the spacer only
   (never the real menu) — verified it leaves sticky-on-scroll intact.
   ------------------------------------------------------------------------- */
[data-elementor-type="header"] .elementor-sticky__spacer .elementor-item::after,
[data-elementor-type="header"] .elementor-sticky__spacer .elementor-item::before { display: none !important; }

/* -------------------------------------------------------------------------
   Mobile menu popup (#742, custom class .menuPop) — pairs with
   deploy/cleanteam-mobilemenu-fix.php (which sets that popup's nav-menu to
   mainmenu + layout=vertical). Show ALL submenus expanded inline (no ▼ collapse,
   no burger ✕ — the popup keeps its own single SVG close icon).
   ------------------------------------------------------------------------- */
.menuPop .elementor-nav-menu .sub-menu {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  max-height: none !important;
  box-shadow: none !important;
  width: 100% !important;
}
.menuPop .elementor-menu-toggle { display: none !important; }            /* no nav burger/✕ */
.menuPop .elementor-nav-menu .sub-arrow,
.menuPop .elementor-item .sub-arrow { display: none !important; }        /* no ▼ chevrons */
