/*
Theme Name: Hello Elementor Child
Template:   hello-elementor
Description: An HTML5 version.
Version: 2.0
Tags: html5, naked, clean, basic
Author: Anuj
*/

.skip-link.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.skip-link.screen-reader-text:focus {
    position: fixed !important;
    top: 8px; left: 8px;
    width: auto; height: auto;
    clip: auto;
    padding: 8px 16px;
    background: #1a1a2e;
    color: #fff;
    z-index: 100000;
}
.digi-static-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
    position: relative;
}
.digi-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.digi-logo img { max-height: 56px; width: auto; display: block; }
.digi-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}
.digi-menu > li { position: relative; }
.digi-menu > li > a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.current-menu-item .digi-mega-toggle {
    border: none !important;
    color: #000000;
    padding: 0 10px;
}
.current-menu-item .digi-mega-toggle:hover {
    color: #000000;
    background: transparent;
}
.digi-menu > li > a:hover { color: #000000; }
.digi-caret {color: #000;}
.digi-mega-wrap .digi-mega-toggle {border: #fff;}
[type="button"]:focus, [type="button"]:hover, [type="submit"]:focus, [type="submit"]:hover, button:focus, button:hover {background-color: #fff !important;color: #fff !important;}
.digi-caret { transition: transform 0.2s; }
.has-digi-mega-menu.is-expanded .digi-caret { transform: rotate(180deg); }

.digi-cta-btn {
    background: #4467ff;
    color: #fff !important;
    padding: 4px 28px;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
}
.digi-cta-btn:hover { background: #3552d1; color: #fff !important; }
.digi-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 6px 4px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}
.digi-mobile-toggle span {
    display: block;
    background: #1a1a2e;
    height: 2px;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, width .25s ease;
}
.digi-mobile-toggle span:nth-child(1) { width: 22px; }
.digi-mobile-toggle span:nth-child(2) { width: 22px; }
.digi-mobile-toggle span:nth-child(3) { width: 14px; }
.digi-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.digi-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.digi-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* Mega menu — hidden by default */
.digi-static-header .digi-mega-menu {
    display: none !important;
}

/* CHANGED: Opens only on click via .is-expanded — hover and focus-within removed */
.digi-static-header .has-digi-mega-menu.is-expanded .digi-mega-menu {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1320px, calc(100vw - 32px));
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 24px;
    padding-top: 20px;
    border-radius: 8px;
    z-index: 9999;
    margin-top: 10px;
}
.digi-mega-menu .elementor,
.digi-mega-menu .elementor-section,
.digi-mega-menu .elementor-section-wrap,
.digi-mega-menu .elementor-container,
.digi-mega-menu .elementor-widget-wrap {
    width: 100% !important;
    max-width: 100% !important;
}
.has-digi-mega-menu.current-menu-item {
	display: flex;
	text-align: center;
}
/* ============================================================
   Mobile layout (≤ 991px): hamburger left, centered logo,
   slide-down nav panel.
   ============================================================ */
@media (max-width: 991px) {
    .digi-mobile-toggle { display: flex !important; }
    .digi-header-inner { justify-content: space-between; padding: 0 16px; }
    .digi-logo img { max-height: 48px; }
    .digi-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        z-index: 9998;
    }
    .digi-nav.is-open {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .digi-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
    }
    .digi-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
    }
    .digi-static-header .has-digi-mega-menu .digi-mega-wrap {
        display: contents;
    }
    .digi-mega-toggle {
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    .digi-menu > li:last-child { border-bottom: none; }
    .digi-menu > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 30px;
        font-size: 16px;
    }
    .digi-cta { padding-top: 12px; }
    .digi-cta-btn {
        display: block;
        text-align: center;
        margin: 4px 0;
    }
    .digi-static-header .has-digi-mega-menu.is-expanded .digi-mega-menu {
        display: block !important;
        position: static;
        transform: none;
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        padding: 8px 0 16px;
        border-radius: 0;
        background: #fafafa;
    }
    [type="button"], [type="submit"], button {
    	border: 1px solid #000;
    	color: #000;
    }
}
