/* LinkPostNow v2 - Single Frontend Header */

.lpn2-header,
.lpn2-header * {
    box-sizing: border-box;
}

.lpn2-header {
    position: relative;
    z-index: 900;
    background: #fff;
    border-bottom: 1px solid #e8edf5;
    width: 100%;
    font-family: Inter, system-ui, Arial, sans-serif;
}

.lpn2-container {
    width: 100%;
    max-width: 1520px;
    min-height: 82px;
    padding: 0 28px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lpn2-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    color: #102139;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.lpn2-logo {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.lpn2-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-left: auto;
}

.lpn2-desktop-nav a {
    text-decoration: none;
    color: #152744;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.lpn2-desktop-nav a:hover {
    color: #2456d8;
}

.lpn2-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lpn2-contact,
.lpn2-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.lpn2-contact {
    border: 1px solid #2456d8;
    background: #fff;
    color: #2456d8;
}

.lpn2-start,
.lpn2-mobile-start {
    background: #2456d8 !important;
    color: #fff !important;
}

.lpn2-hamburger {
    display: none;
}

.lpn2-overlay,
.lpn2-drawer {
    display: none;
}

/* Smaller desktop */
@media (max-width: 1200px) and (min-width: 951px) {
    .lpn2-container {
        padding: 0 18px;
        gap: 14px;
    }

    .lpn2-desktop-nav {
        gap: 14px;
    }

    .lpn2-brand {
        font-size: 17px;
    }

    .lpn2-desktop-nav a {
        font-size: 12px;
    }

    .lpn2-contact,
    .lpn2-start {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* MOBILE AND TABLET */
@media (max-width: 950px) {

    .lpn2-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 70px;
        padding: 0 16px !important;
        gap: 12px;
    }

    .lpn2-brand {
        margin-right: auto !important;
        font-size: 17px;
        min-width: 0;
    }

    .lpn2-logo {
        width: 34px;
        height: 34px;
    }

    .lpn2-desktop-nav,
    .lpn2-header-actions {
        display: none !important;
    }

    .lpn2-hamburger {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 43px;
        height: 43px;
        padding: 0;
        margin-left: auto !important;
        margin-right: 0 !important;
        flex: 0 0 43px;
        background: #fff;
        border: 1px solid #e5eaf2;
        border-radius: 10px;
        cursor: pointer;
    }

    .lpn2-hamburger span {
        width: 19px;
        height: 2px;
        background: #102139;
        border-radius: 2px;
    }

    .lpn2-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 20, 40, .55);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }

    .lpn2-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 86vw);
        height: 100dvh;
        background: #fff;
        z-index: 9999;
        transform: translateX(105%);
        transition: transform .25s ease;
        box-shadow: -10px 0 35px rgba(0,0,0,.1);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.lpn2-menu-open .lpn2-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.lpn2-menu-open .lpn2-drawer {
        transform: translateX(0);
    }

    body.lpn2-menu-open {
        overflow: hidden !important;
    }

    .lpn2-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 19px 20px;
        border-bottom: 1px solid #e8edf5;
        color: #102139;
        font-size: 18px;
    }

    .lpn2-close {
        width: 40px;
        height: 40px;
        border: 1px solid #e8edf5;
        border-radius: 9px;
        background: #fff;
        color: #102139;
        font-size: 26px;
        cursor: pointer;
    }

    .lpn2-mobile-nav {
        display: flex;
        flex-direction: column;
        padding: 12px 18px 28px;
        gap: 2px;
    }

    .lpn2-mobile-nav a {
        display: block;
        padding: 14px 12px;
        border-bottom: 1px solid #eef1f5;
        color: #102139;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
    }

    .lpn2-mobile-nav .lpn2-mobile-start {
        margin-top: 18px;
        padding: 15px 18px;
        border: none;
        border-radius: 9px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lpn2-overlay,
    .lpn2-drawer {
        transition: none;
    }
}