/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/


/* =========================
   HEADER
========================= */

.custom-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fcc;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* =========================
   LOGO
========================= */

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

.custom-logo {
    max-height: 40px;
}

.site-name {
    font-size: 20px;
    font-weight: bold;
    color: #111;
}


/* =========================
   MENU DESKTOP
========================= */

.my-custom-menu {
    display: flex;
}

.my-custom-menu .menu {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu-item {
    list-style: none;
    position: relative;
}

.menu-item a {
    text-decoration: none;
    color: #333;
    padding: 8px 0;
    display: block;
}


/* DROPDOWN (desktop hover) */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    background: #fff;
    min-width: 180px;

    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.menu-item:hover > .sub-menu {
    display: block;
}

.sub-menu .menu-item a {
    padding: 8px 15px;
}


/* =========================
   HAMBURGER (FIXED)
========================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* 3 lines */
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000; /* ✅ always visible */
    margin: 5px 0;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .my-custom-menu {
        display: none;
        width: 100%;
    }

    .my-custom-menu.active {
        display: block;
    }

    .my-custom-menu .menu {
        flex-direction: column;
        gap: 10px;
    }

    /* ✅ SUBMENU ALWAYS VISIBLE */
    .sub-menu {
        display: block !important;
        position: static;
        box-shadow: none;
        padding-left: 15px;
    }

    .custom-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
