/* SVG Menu Icons v1.0.7 - Frontend Styles */

/* ----------------------------------------------------------
   BASE ICON STYLES
   ---------------------------------------------------------- */
.smi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}

/* Spacing between icon and text */
.smi-icon:first-child { margin-right: 0.4em; }
.smi-icon:last-child  { margin-left:  0.4em; }

/* ----------------------------------------------------------
   INLINE SVG — inherits currentColor from parent <a>
   ---------------------------------------------------------- */
.smi-icon-inline svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    stroke: currentColor;
}
.smi-icon-inline svg [fill="none"]   { fill: none !important; }
.smi-icon-inline svg [stroke="none"] { stroke: none !important; }
.smi-icon-inline svg path,
.smi-icon-inline svg circle,
.smi-icon-inline svg rect,
.smi-icon-inline svg polygon,
.smi-icon-inline svg polyline,
.smi-icon-inline svg ellipse,
.smi-icon-inline svg line,
.smi-icon-inline svg g {
    fill: inherit;
    stroke: inherit;
}

/* ----------------------------------------------------------
   IMAGE FALLBACK
   ---------------------------------------------------------- */
.smi-icon-img {
    display: block;
    object-fit: contain;
}

/* ----------------------------------------------------------
   SCREEN-READER TEXT (icon-only mode)
   ---------------------------------------------------------- */
.smi-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ----------------------------------------------------------
   ELEMENTOR NAV MENU — ALIGNMENT FIX
   
   DevTools confirmed:
   - Elementor applies padding-left: 15px to items WITH submenu
   - Items WITHOUT submenu get a larger padding-left
   - This creates the visual offset between the two groups
   
   Fix: remove the left padding from the icon itself on items
   WITHOUT submenu so the visual starting point matches.
   Since the icon is the first element inside the <a>, 
   removing its left space equalises the indentation.
   ---------------------------------------------------------- */

/* Items WITHOUT submenu: kill the extra left padding on the <a>
   by matching it to what Elementor sets on has-children items (15px) */
.elementor-nav-menu a.elementor-item:not(.has-submenu) {
    padding-left: 15px !important;
}

/* Vertical alignment: make sure icon sits centred with text
   on ALL items without touching their flex/block display */
.elementor-nav-menu a.elementor-item .smi-icon,
.elementor-nav-menu a.elementor-sub-item .smi-icon {
    vertical-align: middle;
    align-self: center;
}

/* ----------------------------------------------------------
   HOVER & ACTIVE COLOR INHERITANCE
   ---------------------------------------------------------- */
a:hover .smi-icon-inline svg,
a:focus  .smi-icon-inline svg {
    fill: currentColor;
}
.current-menu-item     > a .smi-icon-inline svg,
.current_page_item     > a .smi-icon-inline svg,
.current-menu-ancestor > a .smi-icon-inline svg,
.elementor-item-active     .smi-icon-inline svg {
    fill: currentColor;
}
