/*
Theme Name: Neve Child
Template: neve
Version: 1.0
*/

/* =============================================
   1. REMOVE FOOTER & EXTRA SPACING
   ============================================= */
.site-footer, #site-footer, .hfg_footer, .footer--row, .footer-bottom, .nv-footer-content {
    display: none !important;
}

body, .main-content, .neve-main, .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* =============================================
   HEADER OVERLAY (TRANSPARENT)
   ============================================= */
.site-header,
.neve-site-header,
#header {
    position: absolute !important;
    top: 0;
    width: 100% !important;
    z-index: 9999 !important;
    background: transparent !important;
}

/* Remove placeholder gap */
.nv-header-placeholder {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

/* =============================================
   HEADER STRUCTURE
   ============================================= */
.header--row,
.header--row-inner {
    min-height: 70px !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
}

/* =============================================
   MOBILE & TABLET (ALL ≤960px)
   ============================================= */
@media (max-width: 960px) {

    /* HEADER ROW */
    .header--row-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 15px !important;
        position: relative !important;
    }

    /* CENTER LOGO (TRUE CENTER FIX) */
    .builder-item--logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        z-index: 10;
    }

    /* LOGO CONTAINER */
    .site-logo,
    .nv-brand,
    .nv-logo-wrap {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important; /* 🚀 stop shrinking */
    }

    /* LOGO IMAGE (IMPORTANT) */
    .nv-logo-wrap img,
    .site-logo img {
        height: auto !important;
        width: 280px !important; /* adjust as needed */
        max-width: none !important; /* 🚀 stop Neve shrinking */
        display: block !important;
    }

    /* BURGER ALIGNMENT */
    .navbar-toggle,
    .menu-mobile-toggle,
    .nv-icon-burger {
        margin-left: auto !important;
        z-index: 20; /* keep above logo if overlapping */
    }

}

/* =============================================
   SPECIFIC BREAKPOINT FIX (576px - 768px)
   ============================================= */
@media (min-width: 481px) and (max-width: 768px) {
    .nv-logo-wrap img,
    .site-logo img {
        max-height: 75px !important; /* Prevents shrinking at 576px */
    }
    
    .header--row,
    .header--row-inner {
        min-height: 85px !important;
    }
}

/* =============================================
   SMALL PHONES (≤480px)
   ============================================= */
@media (max-width: 480px) {
    .nv-logo-wrap img,
    .site-logo img {
        max-height: 85px !important; /* Your preferred large size */
    }

    .header--row,
    .header--row-inner {
        min-height: 95px !important;
    }
}

/* =============================================
   LANDSCAPE FIX
   ============================================= */
@media (max-width: 960px) and (orientation: landscape) {
    .nv-logo-wrap img,
    .site-logo img {
        max-height: 65px !important;
    }
}
