/* --- RESET & LAYOUT --- */
.ojh-header ul, .ojh-mobile-overlay ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ojh-header {
    background: #f55c47 !important;
    padding: 10px 0 !important;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.ojh-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ojh-logo img {
    height: 100px !important;       /* Adjust this number to change logo size */
    width: auto !important;
    display: block;
    border: 3px solid #000000 !important; /* The black border */
    padding: 5px !important;       /* Space between logo and border */
    border-radius: 8px !important; /* Optional: rounds the corners of the border */
    background: #ffffff !important; /* Ensures the inside of the border is white */
}


/* --- DESKTOP MENU & DROPDOWNS --- */
.ojh-nav .ojh-menu {
    display: flex !important;
    gap: 25px !important;
}

.ojh-nav .ojh-menu li {
    position: relative !important;
}

.ojh-nav .ojh-menu li a {
    color: white !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

/* Fix desktop dropdown alignment */
.ojh-nav .ojh-menu .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #f55c47 !important;
    min-width: 250px !important;
    padding: 10px 0 !important;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none !important;
}

.ojh-nav .ojh-menu .sub-menu li a {
    padding: 12px 20px !important;
    white-space: normal !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ojh-nav .ojh-menu li:hover > .sub-menu {
    display: block !important;
}

/* --- MOBILE SPECIFIC STYLES --- */
.ojh-phone-mobile { display: none !important; }

/* 1. Hide the hamburger toggle by default on Desktop */
.ojh-mobile-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    .ojh-nav, .ojh-phone { display: none !important; }
   
    .ojh-phone-mobile {
        display: block !important;
        color: white !important;
        text-decoration: none !important;
        font-weight: bold !important;
        font-size: 14px !important;
    }

    /* 2. Show the hamburger toggle only on Mobile */
    .ojh-mobile-toggle {
        display: block !important;
        background: white !important;
        color: #f55c47 !important;
        border: none !important;
        font-size: 24px !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        cursor: pointer;
    }
}



/* --- DESKTOP NESTED DROPDOWNS (Level 3) --- */
@media (min-width: 769px) {
    /* Target a sub-menu that is inside another sub-menu */
    .ojh-nav .ojh-menu .sub-menu .sub-menu {
        position: absolute !important;
        top: 0 !important;        /* Align it with the top of the parent link */
        left: 100% !important;   /* Push it to the right of the current menu */
        margin-top: -10px !important; /* Adjust if you have padding issues */
        display: none !important;
    }

    /* Show the nested menu when hovering over the parent list item */
    .ojh-nav .ojh-menu .sub-menu li:hover > .sub-menu {
        display: block !important;
    }
    
    /* Optional: Add an arrow or indicator for items with children */
    .ojh-nav .ojh-menu .sub-menu .menu-item-has-children > a::after {
        content: ' ▸';
        float: right;
    }
}



@media (min-width: 769px) {
    /* 1. Reset the list item to handle positioning */
    .ojh-nav .ojh-menu .sub-menu li {
        position: relative !important;
        display: block !important; /* Resetting to block for better link hit-areas */
    }

    /* 2. Align text and remove the 'double arrow' */
    .ojh-nav .ojh-menu .sub-menu li a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 15px 12px 20px !important;
        line-height: 1.2 !important; /* Keeps text centered */
    }

    /* 3. Target the specific arrow element to prevent duplicates */
    /* This hides any extra arrows being generated by the theme/plugin */
    .ojh-nav .ojh-menu .sub-menu .menu-item-has-children > a::after {
        content: '▸' !important;
        font-size: 14px !important;
        color: white !important;
        margin-left: 10px !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    /* 4. Hide any secondary/extra arrows if they are appearing on the 'li' instead of the 'a' */
    .ojh-nav .ojh-menu .sub-menu li::after {
        display: none !important;
    }

    /* 5. Keep the fly-out menu positioned correctly */
    .ojh-nav .ojh-menu .sub-menu .sub-menu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        margin-top: 0 !important;
    }
}



/* --- DESKTOP PHONE BUTTON --- */
@media (min-width: 769px) {
    /* Targets the button container */
    .ojh-phone {
        display: block !important;
        background: #1a1a1a !important;
        padding: 20px 30px !important;
        border-radius: 25px !important; /* Nice round pill shape */
        text-decoration: none !important;
        transition: all 0.3s ease;
        line-height: 1 !important;
    }

    /* Targets the text specifically to override the blue link color */
    .ojh-phone, 
    .ojh-phone a {
        color: #ffffff !important; 
        font-weight: bold !important;
        font-size: 20px !important;
    }

    .ojh-phone:hover {
        background: #333333 !important;
        transform: translateY(-1px);
    }
}

/* --- MOBILE PHONE BUTTON --- */
@media (max-width: 768px) {
    .ojh-phone-mobile {
        display: inline-block !important;
        background: #1a1a1a !important;
        color: #ffffff !important;      /* Forces white on mobile */
        padding: 8px 18px !important;
        border-radius: 25px !important; /* Matches desktop roundness */
        text-decoration: none !important;
        font-weight: bold !important;
        font-size: 18px !important;
        margin-right: 12px;
    }

    .ojh-mobile-toggle {
        display: block !important;
        background: white !important;
        color: #f55c47 !important;
        border: none !important;
        font-size: 24px !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        cursor: pointer;
    }
}

/* --- MOBILE OVERLAY ACCORDION --- */
.ojh-mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #1a1a1a;
    z-index: 10001;
    padding: 60px 20px;
}

.ojh-mobile-overlay.open { display: block !important; }

.ojh-mobile-menu-list li a {
    color: white !important;
    display: block;
    padding: 15px;
    border-bottom: 1px solid #333;
}

.ojh-mobile-menu-list .sub-menu {
    display: none !important;
    background: #222 !important;
    padding-left: 20px !important;
}

.ojh-mobile-menu-list li.open > .sub-menu {
    display: block !important;
}

/* --- SITE-WIDE FOOTER FIX --- */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#page, .site { /* This targets the main WordPress wrapper */
    flex: 1 0 auto;
}

.ojh-footer {
    flex-shrink: 0;
    width: 100% !important;
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 40px 0 !important;
    border-top: 5px solid #f55c47 !important;
    clear: both; /* Ensures it clears any floated elements */
}

/* Ensure the container inside the footer stays centered and 1200px */
.ojh-footer .ojh-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    padding: 0 20px;
}

