/* Custom made, mobile, translated navigation menu */

/* ==========================================================================
   1. GLOBAL CONTAINER & HAMBURGER
   ========================================================================== */
.custom-nav-container {
    position: relative;
    display: flex;
	justify-content: center;
}

/* Hide hamburger checkbox on desktop */
.mobile-toggle-input {
    display: none;
}

.mobile-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1000;
}

.mobile-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: currentColor;
    /* transition: all 0.3s ease; */ /* transition of hamburger / cross Icon */
}

/* ==========================================================================
   2. DESKTOP MENU LAYOUT (Default)
   ========================================================================== */
.nav-menu-list {
    display: flex;
    flex-flow: row wrap;
    list-style: none !important;
    margin: 0;
    padding: 0;
    gap: 36px;
}

.nav-menu-list li {
    position: relative;
}

.nav-menu-list a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
	font-size: var(--wp--preset--font-size--small);
}

/* --- THE CHEVRON TWEAK --- */
/* WordPress automatically flags parent items with the 'menu-item-has-children' class */
.nav-menu-list .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 6px;
    margin-left: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

/* Rotate Chevron up when open (Hover on desktop) */
.nav-menu-list .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* --- DROPDOWN BOX SETUP --- */
.nav-menu-list ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 180px;
    z-index: 999;
    gap: 4px;
    padding: 12px;
    margin: 0;
    list-style: none !important;
    border-radius: 4px;
}

.nav-menu-list ul.sub-menu a {
	padding: 6px 8px;
    width: 100%;
}
.nav-menu-list ul.sub-menu li {
	background-color: none;
	transition: background-color 0.5s linear, font-weight 0.5s;
}
.nav-menu-list ul.sub-menu li:hover {
	background-color: var(--wp--preset--color--background-transparent);
	font-weight: 400;
	transition: background-color 0.5s linear, font-weight 0.5s;
}

.nav-menu-list li:hover > ul.sub-menu {
    display: flex;		/* opens the menus up on hover */
}

.auth-btn {
	font-size: 14px; /* might need to change this - that was empty before */
}


/* Adjust font size on large desktops back to "normal" */
@media (min-width: 991px) {
	.nav-menu-list {
		gap: 48px;
	}
	.nav-menu-list a {
		font-size: var(--wp--preset--font-size--medium);
	}
}


/* ==========================================================================
   3. MOBILE RESPONSIVE MEDIA QUERY
   ========================================================================== */
@media (max-width: 767px) {
    /* Show Hamburger Icon */
    .mobile-toggle-label {
        display: flex;
    }

	.custom-nav-container {
		justify-content: flex-end;
		padding-right: 18px;
	}

    /* Transform main nav container into a fullscreen overlay modal drawer */
    .custom-navigation-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #ffffff;
        padding: 120px 24px 24px 24px;
        z-index: 998;
        box-sizing: border-box;
    }

    .nav-menu-list {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .nav-menu-list a {
        font-size: 1.2rem;

        width: 100%;
        justify-content: space-between; /* Pushes text to left, chevron to right */
    }

    /* Inline mobile dropdown submenus instead of absolute floating positioning */
    .nav-menu-list ul.sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.02);
        padding-left: 16px;
        width: 100%;
        display: none; /* Controlled via mobile interactions if expanded */
    }

    /* --- HAMBURGER TRANSFORMS & DROPDOWN DISPLAY ON CLICK --- */
    /* When user taps hamburger, reveal overlay panel */
    .mobile-toggle-input:checked ~ .custom-navigation-menu {
        display: block;
    }


	/* position the 'X' on top right */
	.mobile-toggle-input:checked + .mobile-toggle-label {
		position: fixed;
		top: 60px;
		/* left: 30px; */
		right: 18px;
	}


    /* Morph hamburger lines into an X graphic */
    .mobile-toggle-input:checked + .mobile-toggle-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle-input:checked + .mobile-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle-input:checked + .mobile-toggle-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile Submenu Behavior: Simple CSS accordion toggle on click/focus */
    .nav-menu-list .menu-item-has-children:focus-within > ul.sub-menu {
        display: flex;
    }
    .nav-menu-list .menu-item-has-children:focus-within > a::after {
        transform: rotate(180deg);
    }
}
/* End of custom navigation menu */



/* Login Page */
/* Container sizing for the login block layout */
.login-page-box {
    max-width: 450px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Style form elements generated by wp_login_form() */
#custom-front-loginform p {
    margin-bottom: 16px;
}

#custom-front-loginform label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

#custom-front-loginform input[type="text"],
#custom-front-loginform input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Make the button look like a modern call to action */
#custom-front-loginform input[type="submit"],
.login-page-box .button.btn-primary {
    background: #22c55e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.login-page-box .button.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}
/* end of login page */



