/*
Theme Name: iWire Mustafa Hello Child
Theme URI: https://iwireproductions.com/
Description: Branded child theme for the Mustafa Center redevelopment, built with Elementor and Hello Elementor.
Author: iWire Productions
Author URI: https://iwireproductions.com/
Template: hello-elementor
Version: 1.3.2
Text Domain: iwire-mustafa-hello
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

/* Global shared header support. No page-specific styles. */
.iwire-site-header-slot {
    z-index: 1100;
    overflow: visible;
}
.iwire-site-header-slot .elementor-widget-template,
.iwire-site-header-slot .elementor-element-home-a0bc0007 {
    overflow: visible;
}
.iwire-site-header-slot .elementor-nav-menu--main > ul > li > a,
.iwire-site-header-slot .elementor-nav-menu--main > ul > li > a.elementor-item {
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}
.iwire-site-header-slot .elementor-nav-menu--main .sub-menu a {
    font-family: Arial, sans-serif;
    font-weight: 400;
    text-transform: none;
}
.iwire-site-header-slot .elementor-nav-menu--main .sub-menu {
    z-index: 1102;
}
.iwire-site-header-slot .elementor-nav-menu--dropdown {
    z-index: 1102;
}
/* Only used if Elementor Pro's native sticky behavior fails. The accompanying
   script sets this attribute and inserts an in-flow placeholder when needed. */
.iwire-site-header-slot[data-iwire-sticky-mode="fallback-fixed"] {
    position: fixed !important;
    top: var(--iwire-sticky-top, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1100 !important;
    margin: 0 !important;
    transform: none !important;
    overflow: visible !important;
    transition: none !important;
}
.iwire-sticky-placeholder { width:100%; pointer-events:none; }
/* System motion preference applies without hiding content. */
@media (prefers-reduced-motion: reduce) {
    .iwire-site-header-slot,
    .iwire-site-header-slot * {
        scroll-behavior: auto !important;
    }
}

/* v1.3.1 | Current page in shared Elementor mobile navigation.
   Global child-theme styling only. No per-page or widget CSS required. */
.elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--main
  li.iwire-current-menu-item > a,
.elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--main
  li.iwire-current-menu-ancestor > a {
    color: #e8c375 !important;
}
@media (max-width: 1024px) {
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown
      li.iwire-current-menu-item > a,
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown
      li.current-menu-item > a {
        color: #f4d48d !important;
        background: #29466b !important;
        font-weight: 700 !important;
        border-left: 3px solid #e2be70 !important;
        padding-left: 17px !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown
      li.iwire-current-menu-ancestor > a {
        color: #f1cc80 !important;
        background: #1c3358 !important;
    }
    .elementor-element-home-mustafa-mobile-menu.iwire-mobile-menu-open
      .elementor-nav-menu--dropdown li.iwire-current-menu-expanded > ul.sub-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
        position: static !important;
        overflow: visible !important;
    }
}

/* v1.3.2 | Keep the current mobile page and its parent section visible.
 * Covers WordPress classes even when Elementor initializes late.
 * All changes are global in the child theme. */
@media (max-width: 1024px) {
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown
      li:is(.iwire-current-menu-item, .current-menu-item, .current_page_item) > a,
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown
      a[aria-current="page"] {
        color: #f4d48d !important;
        background-color: #29466b !important;
        border-left: 3px solid #e2be70 !important;
        font-weight: 700 !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown
      li:is(.iwire-current-menu-ancestor, .current-menu-parent, .current-menu-ancestor) > a {
        color: #f1cc80 !important;
        background-color: #1c3358 !important;
    }
    /* CSS fallback when WordPress supplies the ancestor class but the JS has
       not run yet. Only expand while the mobile drawer is actually open. */
    .elementor-element-home-mustafa-mobile-menu:has(.elementor-menu-toggle.elementor-active)
      .elementor-nav-menu--dropdown li:is(.iwire-current-menu-ancestor, .current-menu-ancestor, .current-menu-parent) > ul.sub-menu,
    .elementor-element-home-mustafa-mobile-menu.iwire-mobile-menu-open
      .elementor-nav-menu--dropdown li.iwire-current-menu-expanded > ul.sub-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
        position: static !important;
        overflow: visible !important;
    }
}

/* v1.3.2: Global desktop dropdown palette matching Mustafa Center branding.
   Top-level menu remains uppercase/bold, submenu remains Arial/regular. */
@media (min-width: 1025px) {
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--main ul.sub-menu {
        background-color: #D6A74F !important;
        border-color: #D6A74F !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--main ul.sub-menu li > a {
        color: #102346 !important;
        background-color: #D6A74F !important;
        font-family: Arial, sans-serif !important;
        font-weight: 400 !important;
        text-transform: none !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--main ul.sub-menu li > a:is(:hover, :focus, .highlighted),
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--main ul.sub-menu li:hover > a,
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--main ul.sub-menu li:is(.current-menu-item, .current-menu-ancestor) > a {
        background-color: #102346 !important;
        color: #FFFFFF !important;
    }
}

/* Mobile/tablet continue to use the dark drawer. Desktop gold doesn't bleed in. */
@media (max-width: 1024px) {
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown,
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown > ul {
        background-color: #102346 !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown ul.sub-menu {
        background-color: #172D50 !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown a {
        color: #F4F6FA !important;
        background-color: transparent !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown a:is(:hover, :focus, .highlighted) {
        background-color: #20395E !important;
        color: #FFFFFF !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown li:is(.iwire-current-menu-ancestor, .current-menu-ancestor, .current-menu-parent) > a {
        background-color: #1C3358 !important;
        color: #F1CC80 !important;
    }
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown li:is(.iwire-current-menu-item, .current-menu-item, .current_page_item) > a,
    .elementor-element-home-mustafa-mobile-menu .elementor-nav-menu--dropdown a[aria-current="page"] {
        background-color: #29466B !important;
        color: #F4D48D !important;
        border-left: 3px solid #E2BE70 !important;
        font-weight: 700 !important;
    }
}
