.header-sticky {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(14, 90, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-sticky.scrolled {
    box-shadow: 0 16px 38px rgba(14, 90, 42, 0.12) !important;
}

@media (min-width: 1024px) {
    .header-sticky > .max-w-7xl {
        gap: 1rem !important;
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
    }

    .header-sticky > .max-w-7xl > a:first-child {
        flex: 0 0 auto;
        padding: 0.25rem 0.75rem 0.25rem 0;
    }

    .header-sticky > .max-w-7xl > a:first-child img {
        height: 3.25rem !important;
        width: auto;
    }

    .header-sticky nav {
        gap: 0.2rem !important;
        min-height: 3.25rem;
        padding: 0.35rem;
        border: 1px solid rgba(14, 90, 42, 0.08);
        border-radius: 999px;
        background: #f7faf5;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .header-sticky > .max-w-7xl > a[href*="contact.html"],
    .header-sticky > .max-w-7xl > a[href*="buyer-inquiry.html"],
    .header-sticky > .max-w-7xl > a[href*="farmers-register.html"] {
        min-height: 3.05rem;
        padding: 0 1.15rem !important;
        border-radius: 999px !important;
        background: #0e5a2a !important;
        color: #ffffff !important;
        box-shadow: 0 14px 28px rgba(14, 90, 42, 0.18) !important;
        white-space: nowrap;
    }

    .header-sticky > .max-w-7xl > a[href*="contact.html"]:hover,
    .header-sticky > .max-w-7xl > a[href*="buyer-inquiry.html"]:hover,
    .header-sticky > .max-w-7xl > a[href*="farmers-register.html"]:hover {
        background: #b7cf3f !important;
        color: #0e5a2a !important;
        transform: translateY(-1px);
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .desktop-nav-link,
    .dropdown-trigger {
        padding: 0.65rem 0.55rem !important;
        font-size: 0.82rem;
    }

    .header-sticky > .max-w-7xl > a[href*="contact.html"],
    .header-sticky > .max-w-7xl > a[href*="buyer-inquiry.html"],
    .header-sticky > .max-w-7xl > a[href*="farmers-register.html"] {
        display: none !important;
    }
}

.desktop-nav-link,
.dropdown-trigger {
    color: #0e5a2a !important;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1;
    padding: 0.8rem 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.desktop-nav-link::after,
.dropdown-trigger::after {
    display: none !important;
}

.desktop-nav-link:hover,
.desktop-nav-link.active,
.dropdown:hover .dropdown-trigger,
.dropdown-trigger:hover {
    background: #0e5a2a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.dropdown-menu {
    border: 1px solid rgba(14, 90, 42, 0.08) !important;
    border-radius: 1.15rem !important;
    box-shadow: 0 24px 48px rgba(14, 90, 42, 0.12) !important;
    overflow: hidden;
}

.dropdown-menu a {
    font-weight: 500;
    border-radius: 0.85rem;
}

.dropdown-menu a:hover {
    background: rgba(183, 207, 63, 0.18) !important;
    color: #0e5a2a !important;
}

#menuToggle {
    min-width: 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: #0e5a2a !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(14, 90, 42, 0.18) !important;
}

.mobile-menu {
    justify-content: flex-start !important;
}

.mobile-menu-backdrop {
    background: rgba(14, 90, 42, 0.3) !important;
    backdrop-filter: blur(10px);
}

.mobile-menu-panel {
    width: min(86vw, 24rem) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    max-width: 24rem !important;
    padding: 0.95rem 0.95rem 1rem !important;
    background: linear-gradient(180deg, #fbfaf6 0%, #f5f1e8 100%) !important;
    border-right: 1px solid rgba(14, 90, 42, 0.12) !important;
    box-shadow: 22px 0 50px rgba(7, 43, 21, 0.18) !important;
    transform: translateX(-100%) !important;
    overflow: hidden !important;
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0) !important;
}

.mobile-menu-shell {
    height: 100%;
    min-height: 0;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 90, 42, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: #0e5a2a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(14, 90, 42, 0.12);
}

.mobile-menu-brand {
    text-align: center;
    padding-top: 2.25rem;
    margin-bottom: 1rem;
    flex: 0 0 auto;
}

.mobile-menu-brand img {
    height: 3.6rem;
    width: auto;
    margin: 0 auto;
}

.mobile-menu-shell > .space-y-3 {
    display: grid;
    gap: 0.5rem;
    flex: 0 1 auto;
    min-height: 0;
}

.mobile-menu-shell > .space-y-3 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0 !important;
}

.mobile-menu-link {
    display: block;
    padding: 0.72rem 0.85rem !important;
    color: #15482a !important;
    font-weight: 600 !important;
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(14, 90, 42, 0.08) !important;
    box-shadow: 0 14px 28px rgba(14, 90, 42, 0.06);
}

.mobile-menu-action {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.8rem !important;
    padding: 0.78rem 0.9rem !important;
    border-radius: 999px !important;
    background: #0e5a2a !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-align: center;
    box-shadow: 0 12px 24px rgba(14, 90, 42, 0.16);
}

.mobile-menu-action.secondary {
    margin-top: 0.45rem !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0e5a2a !important;
    border: 1px solid rgba(14, 90, 42, 0.14);
    box-shadow: none;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(183, 207, 63, 0.18) !important;
    color: #0e5a2a !important;
}

.mobile-menu-toggle {
    text-align: left;
}

.mobile-submenu {
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease !important;
}

.mobile-submenu-inner {
    margin-left: 0.35rem !important;
    padding-left: 0.85rem !important;
    border-left: 1px solid rgba(14, 90, 42, 0.12) !important;
}

.mobile-submenu-link {
    display: block;
    padding: 0.62rem 0.75rem !important;
    border-radius: 0.9rem !important;
    color: #1f2937 !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(14, 90, 42, 0.08) !important;
    font-size: 0.95rem !important;
}

.mobile-submenu-link:hover,
.mobile-submenu-link.active {
    color: #0e5a2a !important;
    background: rgba(183, 207, 63, 0.18) !important;
}

.mobile-menu-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(14, 90, 42, 0.12);
    display: grid;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.mobile-contact-item,
.mobile-contact-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.62rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(14, 90, 42, 0.08);
    color: #1f2937;
    box-shadow: 0 12px 26px rgba(14, 90, 42, 0.05);
}

.mobile-contact-link:hover {
    color: #0e5a2a;
    background: rgba(183, 207, 63, 0.14);
}

@media (max-width: 1023px) {
    .header-sticky > .max-w-7xl {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
        min-height: 4.75rem;
    }

    .header-sticky > .max-w-7xl > a:first-child {
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-start !important;
    }

    .header-sticky > .max-w-7xl > a:first-child img {
        height: 3.25rem !important;
        max-width: min(58vw, 14rem);
        width: auto;
        object-fit: contain;
    }

    #menuToggle {
        flex: 0 0 3rem;
        min-width: 3rem !important;
        width: 3rem !important;
        height: 3rem !important;
    }

    #menuToggle svg {
        width: 1.55rem;
        height: 1.55rem;
    }

    .mobile-menu-panel {
        padding-top: max(1rem, env(safe-area-inset-top)) !important;
    }

    .mobile-menu-brand {
        padding-top: 2rem !important;
        margin-bottom: 0.8rem !important;
    }

    .mobile-menu-brand img {
        height: 3.3rem !important;
        max-width: 70vw;
    }
}

@media (max-height: 720px) {
    .mobile-menu-brand {
        padding-top: 1.6rem !important;
        margin-bottom: 0.55rem !important;
    }

    .mobile-menu-brand img {
        height: 2.85rem !important;
    }

    .mobile-menu-link {
        padding-top: 0.58rem !important;
        padding-bottom: 0.58rem !important;
    }

    .mobile-submenu.open {
        max-height: 15rem !important;
        overflow: hidden;
    }

    .mobile-contact-item {
        display: none;
    }
}

@media (max-width: 420px) {
    .header-sticky > .max-w-7xl {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .header-sticky > .max-w-7xl > a:first-child img {
        height: 2.9rem !important;
        max-width: 64vw;
    }
}
