/*
Theme Name: My Theme
Description: An HTML5 version.
Version: 1.0
Tags: html5, naked, clean, basic
*/

@import "css/reset.css";
@import "css/layout.css";

/* =========================================================
   ACCESSIBILITY
========================================================= */
.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: #111827;
    color: #fff;
    z-index: 100000;
}

/* =========================================================
   TOP HEADER
========================================================= */
.mantra-top-header {
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.mantra-top-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mantra-top-left {
    color: #111;
    font-weight: 500;
}

.mantra-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mantra-top-right a {
    color: #111;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   MAIN HEADER
========================================================= */
.mantra-static-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    position: relative;
    z-index: 999;
}

.mantra-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* =========================================================
   LOGO
========================================================= */
.mantra-logo img {
    max-height: 58px;
    width: auto;
    display: block;
}

/* =========================================================
   MENU
========================================================= */
.mantra-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mantra-menu > li {
    position: relative;
}

/* The mega-menu item anchors its dropdown to the header container (not the <li>),
   so a full-width mega menu can't shoot off-screen and cause sideways scrolling. */
.mantra-static-header .has-mantra-mega-menu {
    position: static;
}

.mantra-menu > li > a {
	color: #111827;
	text-decoration: none;
	font-weight: 600;
	font-size: 17px;
	font-family: inherit;
	white-space: nowrap;
	transition: all .2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 27px;
}

.mantra-menu > li > a:hover {
    color: #248292;
}

/* =========================================================
   MEGA MENU
========================================================= */
.mantra-mega-wrap .mantra-mega-toggle {
    border: none !important;
    background: transparent !important;
    padding: 0 8px;
    color: #111;
    cursor: pointer;
}

.mantra-caret {
    transition: transform .25s ease;
}

.has-mantra-mega-menu.is-expanded .mantra-caret {
    transform: rotate(180deg);
}

/* hidden default */
.mantra-static-header .mantra-mega-menu {
    display: none !important;
}

/* open on click — anchored to .mantra-header-inner, spans the full container width */
.mantra-static-header .has-mantra-mega-menu.is-expanded .mantra-mega-menu {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-width: 1260px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0,0,0,.12);
    border-radius: 10px;
    z-index: 9999;
    margin-top: 12px;
}

.mantra-mega-menu .elementor,
.mantra-mega-menu .elementor-section,
.mantra-mega-menu .elementor-section-wrap,
.mantra-mega-menu .elementor-container,
.mantra-mega-menu .elementor-widget-wrap {
    width: 100% !important;
    max-width: 100% !important;
}
.has-mantra-mega-menu {
	display: flex;
	align-items: center;
}
/* =========================================================
   LANGUAGE SWITCHER
========================================================= */
.mantra-language-switcher {
    margin-left: 10px;
}

.mantra-language-switcher a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
}

/* =========================================================
   MOBILE TOGGLE
========================================================= */
.mantra-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 6px 4px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.mantra-mobile-toggle span {
    display: block;
    background: #111;
    height: 2px;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, width .25s ease;
}

.mantra-mobile-toggle span:nth-child(1) {
    width: 22px;
}

.mantra-mobile-toggle span:nth-child(2) {
    width: 22px;
}

.mantra-mobile-toggle span:nth-child(3) {
    width: 14px;
}

.mantra-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 22px;
}

.mantra-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mantra-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 22px;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 1319px) {

    .mantra-mobile-toggle {
        display: flex !important;
    }

    .mantra-header-inner {
        padding: 0 16px;
    }

    .mantra-logo img {
        max-height: 48px;
    }

    .mantra-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,.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        z-index: 9998;
    }

    .mantra-nav.is-open {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .mantra-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
    }

    .mantra-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mantra-menu > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        width: 100%;
    }

    .mantra-static-header .has-mantra-mega-menu .mantra-mega-wrap {
        display: contents;
    }

    /* Let the mega-menu item wrap so the dropdown opens as a full-width block
       below the label + caret, instead of being squeezed into a side column. */
    .mantra-menu > li.has-mantra-mega-menu {
        flex-wrap: wrap;
    }

    /* Keep the "Construction Division" label and the caret on the same first row. */
    .mantra-menu > li.has-mantra-mega-menu > a {
        width: auto;
        flex: 1 1 auto;
    }

    .mantra-mega-toggle {
        border: 1px solid #000 !important;
        color: #000 !important;
    }

    .mantra-static-header .has-mantra-mega-menu.is-expanded .mantra-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;
    }

    .mantra-top-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .mantra-top-right {
        flex-direction: column;
        gap: 8px;
    }

}

/* =========================================================
   SMALL PHONES
========================================================= */
@media (max-width: 600px) {

    .mantra-static-header {
        padding: 12px 0;
    }

    .mantra-header-inner {
        padding: 0 14px;
    }

    .mantra-logo img {
        max-height: 40px;
    }

    .mantra-mega-menu {
        padding: 8px 0 12px;
    }
}