/* Global header styles */
.header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 200;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.header.is-sticky {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

.header .elements {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    transition: padding 0.3s ease;
}

.header.is-sticky .elements {
    padding: 0.75rem 0;
}

.header .logo {
	display: flex;
	align-items: center;
}

.header .logo img {
	position: absolute;
	max-width: 210px;
	transition: max-width 0.3s ease, transform 0.3s ease, position 0.3s ease;
}

.header.is-sticky .logo img {
	position: relative;
	max-width: 150px;
	transform: translateY(-4px);
}

.header .menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.header .menu.row {
    margin-left: 0;
    margin-right: 0;
}

.header .menu-element {
    padding: 0.75rem 1.25rem;

    transition: color 0.3s ease, border-color 0.3s ease;
        width: fit-content;
        position: relative;
}

.header .menu-element::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #F4D713;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.header .menu-element .menu-link {
    color: #101010;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}



.header .menu-element.active .menu-link,
.header .menu-element:hover .menu-link {
    color: #F4D713;
    font-weight: 700;
}

.header .menu-element.active::after,
.header .menu-element:hover::after {
    transform: scaleX(1);
}

.header .contact-btn a {
    text-decoration: none;
    color: #000;
}

.header .menu-element.contact-btn.active .menu-link,
.header .menu-element.contact-btn:hover .menu-link {
    color: #101010;
}

.header .menu-element.contact-btn::after {
    display: none;
}

.header .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    color: #212529;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    margin-left: auto;
}

.header .menu-toggle .fa-solid {
    font-size: 1.3rem;
}

.header .menu-toggle.is-active {
    background-color: #F4D713;
    border-color: #F4D713;
    color: black;
}

@media (max-width: 1200px) {
    .header .menu-element {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 991px) {
    .header.is-sticky .menu.is-open {
        margin-top: unset;
    }
    .header .menu.is-open {
        margin-top: 100px;
    }
    .homepage .section-1 .content {
    width: 100% !important;
}
    .header .elements {
        gap: 0.75rem;
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
    }

    .header .menu-toggle {
        display: inline-flex;
        order: 2;
    }

    .header .menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background-color: #ffffff;
        border-radius: 16px;
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
        padding: 0 1.25rem;
        margin-top: 1rem;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        order: 3;
    }

    .header .menu.is-open {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
        padding: 1.25rem;
    }

    .header .menu-element {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .header .menu-element:last-child {
        border-bottom: none;
    }

    .header .contact-btn {
        width: 100%;
        text-align: center;
    }
    
    .header.is-sticky .elements {
    height: 120px;
}
.header .logo {
    width: 50%;
}
}

@media (max-width: 575px) {
    .header .elements {
        flex-wrap: wrap;
    }

    .header .logo {
        flex: 1 1 auto;
        width: 50%;
    }


    .header .logo img {
        max-width: 150px;
    }

    .header .menu-toggle {
        width: 44px;
        height: 44px;
    }
}
