/*
Theme Name:     Hello Elementor Child
Theme URI:      
Description:    Hello-elementor child theme with custom Elementor widgets, pixel-perfect header navigation, and footer styling.
Author:         Me
Author URI:     
Template:       hello-elementor
Version:        2.0.0
*/

/* ==========================================================================
   HEADER STYLING
   ========================================================================== */
header.site-header,
.site-header.hec-site-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s ease !important;
}

header.site-header .header-inner,
header.site-header .header-inner.e-con-parent,
header.site-header .e-con-parent {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 10px 24px !important;
    box-sizing: border-box !important;
    gap: 16px !important;
}

/* Header Columns */
header.site-header .header-inner > .e-con-child:first-child,
header.site-header .elementor-element-adc427f {
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

header.site-header .elementor-widget-image {
    margin: 0 !important;
}

header.site-header .elementor-widget-image img {
    height: 46px !important;
    width: auto !important;
    max-width: 210px !important;
    object-fit: contain !important;
    display: block !important;
}

header.site-header .header-inner > .e-con-child:nth-child(2),
header.site-header .elementor-element-ed44ac3,
header.site-header .nav-menu-container {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
}

header.site-header .elementor-widget-wp-widget-nav_menu {
    margin: 0 !important;
    width: auto !important;
}

header.site-header .elementor-widget-wp-widget-nav_menu .elementor-widget-container,
header.site-header .menu-main-navigation-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Nav Menu: Horizontal flex list */
header.site-header ul#menu-main-navigation,
header.site-header .menu-main-navigation-container > ul.menu,
header.site-header .elementor-widget-wp-widget-nav_menu ul.menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    background: transparent !important;
}

/* Top-level menu items */
header.site-header ul#menu-main-navigation > li,
header.site-header .elementor-widget-wp-widget-nav_menu ul.menu > li {
    position: relative !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

/* Top-level links */
header.site-header ul#menu-main-navigation > li > a,
header.site-header .elementor-widget-wp-widget-nav_menu ul.menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 9px 13px !important;
    color: #1e293b !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

/* Dropdown arrow on items with children */
header.site-header ul#menu-main-navigation > li.menu-item-has-children > a::after,
header.site-header .elementor-widget-wp-widget-nav_menu ul.menu > li.menu-item-has-children > a::after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-right: 2px solid #64748b !important;
    border-bottom: 2px solid #64748b !important;
    transform: rotate(45deg) !important;
    margin-left: 4px !important;
    margin-top: -3px !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

/* Hover and active states */
header.site-header ul#menu-main-navigation > li:hover > a,
header.site-header ul#menu-main-navigation > li.current-menu-item > a,
header.site-header ul#menu-main-navigation > li.current-menu-ancestor > a,
header.site-header .elementor-widget-wp-widget-nav_menu ul.menu > li:hover > a {
    color: #15803d !important;
    background: rgba(21, 128, 61, 0.08) !important;
}

header.site-header ul#menu-main-navigation > li:hover > a::after,
header.site-header .elementor-widget-wp-widget-nav_menu ul.menu > li:hover > a::after {
    border-color: #15803d !important;
    transform: rotate(-135deg) !important;
    margin-top: 2px !important;
}

/* Dropdown Sub-menu */
header.site-header ul.sub-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    min-width: 240px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 3px 8px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    z-index: 999999 !important;
}

header.site-header ul#menu-main-navigation > li:hover > ul.sub-menu,
header.site-header ul#menu-main-navigation > li:focus-within > ul.sub-menu,
header.site-header .elementor-widget-wp-widget-nav_menu ul.menu > li:hover > ul.sub-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    animation: navDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes navDropIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header.site-header ul.sub-menu > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

header.site-header ul.sub-menu > li > a {
    display: block !important;
    padding: 9px 14px !important;
    color: #334155 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

header.site-header ul.sub-menu > li > a:hover {
    color: #15803d !important;
    background: #f0fdf4 !important;
    padding-left: 18px !important;
}

/* Header Action Button (Request Quote) */
header.site-header .header-inner > .e-con-child:last-child,
header.site-header .elementor-element-b958c22,
header.site-header .elementor-element-1341299 {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
}

header.site-header .elementor-button,
header.site-header a.elementor-button {
    background: #15803d !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.28) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    border: none !important;
}

header.site-header .elementor-button:hover,
header.site-header a.elementor-button:hover {
    background: #166534 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(21, 128, 61, 0.38) !important;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
footer.hec-site-footer {
    background: #0b1320 !important;
    color: #94a3b8 !important;
    padding: 60px 0 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

footer.hec-site-footer .footer-grid,
footer.hec-site-footer .container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

footer.hec-site-footer .footer-grid .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 36px !important;
}

/* Footer columns */
footer.hec-site-footer .footer-grid .e-con-child:nth-child(1) {
    flex: 1 1 300px !important;
    max-width: 340px !important;
}

footer.hec-site-footer .footer-grid .e-con-child:nth-child(2),
footer.hec-site-footer .footer-grid .e-con-child:nth-child(3),
footer.hec-site-footer .footer-grid .e-con-child:nth-child(4) {
    flex: 1 1 160px !important;
}

footer.hec-site-footer .footer-grid .e-con-child:nth-child(5) {
    flex: 1 1 240px !important;
}

footer.hec-site-footer h4,
footer.hec-site-footer .elementor-heading-title {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    font-family: 'Inter', sans-serif !important;
}

footer.hec-site-footer p,
footer.hec-site-footer .elementor-widget-text-editor p {
    color: #94a3b8 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

footer.hec-site-footer ul.f-links,
footer.hec-site-footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

footer.hec-site-footer ul.f-links li,
footer.hec-site-footer ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

footer.hec-site-footer ul.f-links li a,
footer.hec-site-footer a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
}

footer.hec-site-footer ul.f-links li a:hover,
footer.hec-site-footer a:hover {
    color: #4ade80 !important;
}

footer.hec-site-footer address.f-contact {
    font-style: normal !important;
    margin-top: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
}

footer.hec-site-footer address.f-contact b {
    color: #86efac !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-bottom: 2px !important;
}

footer.hec-site-footer .sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: 40px !important;
    padding-top: 24px !important;
    text-align: center !important;
}

footer.hec-site-footer .sub-footer p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
}

footer.hec-site-footer .sub-footer a {
    color: #94a3b8 !important;
}
