/* --- FIXED HEADER CORE --- */
.lfpnd-site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    font-family: sans-serif;
    background: #001C41;
}

/* The container stacks children vertically on mobile */
.lfpnd-header-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- TOP BAR (CONTACT) --- */
.lfpnd-top-bar {
    background: #00132c;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lfpnd-top-bar .lfpnd-header-container {
    flex-direction: row !important;
    justify-content: flex-end;
    align-items: center;
}

.lfpnd-contact-links {
    display: flex;
    gap: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px; 
    font-weight: 700;
    white-space: nowrap;
}

.contact-link i {
    font-size: 20px; 
}

.contact-link.phone { color: #ffffff; }
.contact-link.whatsapp { color: #25D366; }

/* --- MAIN HEADER & LOGO --- */
.lfpnd-main-header {
    background: #001C41;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lfpnd-logo-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text-wrapper {
    font-family: 'Playfair Display', serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fdf2b0; /* Brand Yellow */
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 0.9;
    margin-top: -2px;
}

/* --- NAVIGATION --- */
.lfpnd-nav-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.lfpnd-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.lfpnd-main-menu li{
    display: flex;
    align-items: center;
}

.lfpnd-main-menu li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.lfpnd-main-menu li a:hover { opacity: 1; }

/* --- YELLOW CTA --- */
.lfpnd-nav-cta {
    background: #fdf2b0; 
    color: #001C41 !important;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: max-content;
}

.lfpnd-mobile-cta, .lfpnd-menu-toggle {
    display: none; 
}

/* --- CLEVER LOGO SWITCH LOGIC --- */
@media (min-width: 1025px) {
    .mob-pnd {
        display: none; /* Hide 'PND' on desktop */
    }
}

/* --- MOBILE & TABLET RULES --- */
@media (max-width: 1024px) {
    body { padding-top: 175px; }
    .desktop-only { display: none; }

    .lfpnd-header-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .lfpnd-logo-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Logic Gap Fix: Switch text states at the same breakpoint as the menu */
    .logo-main {
        font-size: 1.4rem;
    }
    .logo-sub {
        display: none; /* Hide 'Painting & Decorating' */
    }
    .mob-pnd {
        display: inline; /* Show 'PND' */
    }

    .lfpnd-top-bar .lfpnd-header-container {
        justify-content: center;
    }

    .lfpnd-nav-wrap {
        margin-left: 0; 
        width: 100%;
    }
    
    .lfpnd-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 1px solid #FFF;
        cursor: pointer;
        padding: 5px;
        border-radius: 4px;
    }
    .lfpnd-menu-toggle span { 
        width: 25px; 
        height: 3px; 
        background: #fff; 
        transition: all 0.3s ease;
    }
    
    /* Hamburger Animation */
    .lfpnd-menu-open .lfpnd-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .lfpnd-menu-open .lfpnd-menu-toggle span:nth-child(2) { opacity: 0; }
    .lfpnd-menu-open .lfpnd-menu-open .lfpnd-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .lfpnd-main-menu { 
        display: none; 
        flex-direction: column;
        width: 100%;
        gap: 15px;
        padding: 20px 0 10px 0;
        text-align: left;
    }

    .lfpnd-menu-open .lfpnd-main-menu { display: flex; }

    .lfpnd-mobile-cta .lfpnd-nav-cta {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 14px 0;
    }

    .lfpnd-mobile-cta { 
        display: block; 
        width: 100%;
        padding: 15px 0 5px 0;
        margin: 0;
    }

    .lfpnd-contact-links { 
        justify-content: center; 
        gap: 20px;
    }
    
    .contact-link { font-size: 16px; }
}

/* Admin Bar Adjustments */
.admin-bar .lfpnd-site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .lfpnd-site-header { top: 46px; } }