/* Shared homepage header rules: same dimensions and spacing on index and inner pages. */
.mmk-header {
    font-family: Inter, Arial, sans-serif;
    position: absolute;
    top: 0px !important;
    left: 0 !important;
    right: 0;
    min-height: 100px;
    z-index: 100020;
    display: flex;
    align-items: center;
    padding: 0 20px 0 430px;
}

.mmk-logo-card {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 200px;
    height: 100%;
    background: #fff;
    border-radius: 0 0 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 25;
}

.mmk-logo-card::after {
    display: none;
}

.mmk-logo-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmk-logo-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.mmk-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mmk-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2vw, 46px);
    padding: 0;
    margin: 50px 0 0 0;
}

.mmk-nav-list li {
    margin: 0;
    padding: 0;
}

.mmk-nav-list li a {
    position: relative;
    display: inline-flex;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    padding: 16px 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.mmk-nav-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.35s ease;
}

.mmk-nav-list li a:hover::after {
    width: 100%;
}

.mmk-contact-btn {
    min-width: 168px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 50px;
    padding: 5px 5px 5px 26px;
    color: #292929;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.mmk-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #df3a26;
    color: #fff;
    font-size: 19px;
    transition:
        transform 0.35s ease,
        background 0.35s ease;
}

.mmk-contact-btn:hover .mmk-contact-icon {
    transform: rotate(45deg);
}

.mmk-products-menu {
    position: relative;
}

.mmk-products-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mmk-products-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 30;
    display: grid;
    min-width: 220px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(20, 30, 20, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: 0.25s ease;
}

.mmk-products-menu:hover .mmk-products-dropdown,
.mmk-products-menu:focus-within .mmk-products-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mmk-products-dropdown a {
    padding: 12px 14px;
    border-radius: 8px;
    color: #252525;
    text-decoration: none;
    white-space: nowrap;
}

.mmk-products-dropdown a:hover {
    background: #f3f5ef;
    color: #24501f;
}

.mmk-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 50;
}

.mmk-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    background: #222;
    transition: 0.3s ease;
}

.mmk-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mmk-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mmk-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mmk-mobile-nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    z-index: 40;
    display: none;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.mmk-mobile-nav.active {
    display: flex;
}

.mmk-mobile-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid #eee;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.mmk-mobile-nav a:last-child {
    border-bottom: 0;
}

.mmk-mobile-nav .mmk-mobile-product-link {
    padding-left: 28px;
    font-size: 14px;
}

.mmk-inner-header {
    left: 20px;
    right: 0;
    top: 20px;
}

.mmk-inner-mobile-nav {
    position: fixed;
    top: 116px;
    right: 16px;
    left: auto;
    z-index: 100030;
    width: min(360px, calc(100vw - 32px));
    height: auto;
    max-height: calc(100vh - 132px);
    max-height: calc(100dvh - 132px);
    overflow-x: hidden;
    overflow-y: auto;
    transform: none;
}

.mmk-inner-mobile-nav.active {
    display: flex;
    transform: none;
}

.mmk-sticky-clone {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 0 3%;
    background: rgba(31, 58, 29, 0.97);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
}

.mmk-sticky-clone.is-visible {
    transform: translateY(0);
}

.mmk-sticky-clone .mmk-logo-card {
    position: relative;
    inset: auto;
    width: 185px;
    height: 68px;
    padding: 8px;
    border-radius: 8px;
}

.mmk-sticky-clone .mmk-logo-card::after {
    display: none;
}

.mmk-sticky-clone .mmk-logo-link img {
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
}

.mmk-sticky-clone .mmk-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.mmk-sticky-clone .mmk-nav-list {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmk-sticky-clone .mmk-nav-list a {
    padding: 14px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.mmk-sticky-clone .mmk-nav-list li {
    list-style: none;
}

.mmk-sticky-clone .mmk-products-dropdown a {
    color: #252525;
}

.mmk-sticky-clone .mmk-contact-btn {
    min-width: 145px;
    height: 48px;
}

@media (max-width: 1500px) {
    .mmk-header {
        padding-left: 290px;
    }

    .mmk-nav-list {
        gap: 24px;
    }

    .mmk-nav-list li a {
        font-size: 13px;
    }
}

@media (max-width: 1199px) {
    .mmk-header {
        min-height: 90px;
        padding: 0 20px 0 150px;
        justify-content: flex-end;
        gap: 12px;
    }

    .mmk-nav {
        display: none;
    }

    .mmk-menu-toggle {
        display: flex;
    }

    .mmk-logo-card {
        width: 125px;
        height: 95px;
    }

    .mmk-inner-mobile-nav {
        top: 116px;
    }

    .mmk-sticky-clone {
        min-height: 68px;
        padding: 0 16px;
    }

    .mmk-sticky-clone .mmk-logo-card {
        width: 155px;
    }

    .mmk-sticky-clone .mmk-nav,
    .mmk-sticky-clone .mmk-contact-btn {
        display: none;
    }

    .mmk-sticky-clone .mmk-menu-toggle {
        display: flex;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .mmk-inner-mobile-nav {
        top: 104px;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 116px);
        max-height: calc(100dvh - 116px);
    }
    .mmk-header {
        min-height: 76px;
        padding: 0 10px 0 112px;
    }

    .mmk-logo-card {
        width: 100px;
        height: 82px;
        padding: 12px;
        border-radius: 10px;
    }

    .mmk-logo-link img {
        max-width: 75px;
        max-height: 55px;
    }

    .mmk-contact-btn {
        display: none;
    }

    .mmk-menu-toggle {
        width: 45px;
        height: 45px;
    }

    .mmk-sticky-clone {
        min-height: 64px;
        padding: 0 12px;
    }

    .mmk-sticky-clone .mmk-logo-card {
        width: 130px;
        height: 58px;
    }
}

.mmk-hero .mmk-nav-list li .mmk-products-dropdown a,
.mmk-inner-header .mmk-nav-list li .mmk-products-dropdown a {
    display: flex;
    padding: 12px 14px;
    border-radius: 8px;
    color: #252525;
    line-height: 1.35;
    white-space: nowrap;
}

.mmk-hero .mmk-nav-list li .mmk-products-dropdown a::after,
.mmk-inner-header .mmk-nav-list li .mmk-products-dropdown a::after {
    display: none;
}
