/* Custom CSS for header background image */
.site-header .container-fluid {
    padding: 0;
    margin-top: -1em !important;
    margin-bottom: 0 !important;
    background-image: url('/wp-content/uploads/2025/07/header-bg.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: center center;
    z-index: 1;
    max-height: 10em;
    overflow: hidden;
}

.site-header .row {
    align-items: center;
    min-height: 60px;
    max-height: 10em;
}

.header-left-col {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    max-width: 80%;
    max-height: 8em;
    height: auto;
    display: block;
    padding: 10px;
}

/* Adjust site-branding for the new layout */
.site-header .site-branding {
    text-align: center;
    background-image: url('/wp-content/uploads/2025/07/headerflower-small.png');
    background-position: bottom left;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 2;
    max-height: 10em;
}

/* Style for the website title */
.site-header .site-title-custom {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: bold;
    color: #083a1d !important;
    margin: 0;
    line-height: 1.2;
}

.site-header .site-title-custom a {
    text-decoration: none;
    color: inherit;
}

/* FIXED: Navbar styles */
.navbar {
    padding: 0.5rem 0;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
}

/* FIXED: Hamburger menu button - always functional */
.navbar-toggler {
    border: none;
    padding: 0.375rem 0.75rem;
    font-size: 1.25rem;
    background: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative !important; /* FIXED: Prevent positioning issues */
    z-index: 1001 !important; /* FIXED: Ensure always clickable */
}

.navbar-toggler:hover {
    background: rgba(0,0,0,0.05);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none; /* FIXED: Remove focus outline */
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-size: 100%;
}

/* FIXED: Full-screen overlay menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.fullscreen-menu.show {
    display: flex !important;
    opacity: 1;
    
}

.fullscreen-menu-content {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    position: relative;
    z-index: 3 !important;
}

/* Close button */
.btn-close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.btn-close-menu:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

/* Menu items - vertical layout, horizontally centered */
.fullscreen-nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fullscreen-nav-menu li {
    margin: 0;
    padding: 0;
}

.fullscreen-nav-menu a {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fullscreen-nav-menu a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

/* Responsive adjustments */

/*@media (max-width: 537px) { */
@media (max-width: 552px) {
    h1.site-title-custom.mb-0 {
        visibility: hidden !important;
        display: none !important;
    }

    button.navbar-toggler {
      /*  position: absolute !important;
        top: 0 !important;
        left: 8em !important; */
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 240px) {
    button.navbar-toggler {
    /*    position: relative !important;
        top: 0 !important;
        left: 5em !important; */
        margin: 0 auto;
        display: block;
    }
}


@media (max-width: 768px) {
    .fullscreen-nav-menu {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .fullscreen-nav-menu a {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
        min-width: 200px;
        text-align: center;
    }
    
    .site-title-custom {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .fullscreen-nav-menu a {
        font-size: 1.2rem;
        padding: 0.7rem 1.2rem;
        min-width: 180px;
    }
    
    .btn-close-menu {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}

/* FIXED: Mobile layout for very small screens */
@media (max-width: 406px) {
    .fullscreen-nav-menu {
        margin-top: 1em;
    }

    /* FIXED: Proper mobile header layout */
    .navbar .container-fluid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 150px;
        position: relative;
        padding: 10px 15px;
    }

    /* Logo - Top */
    .navbar-brand {
        order: 1;
        margin-bottom: 10px;
        padding-top: 10px;
        align-self: center;
    }

    /* Site Title - Middle */
    .site-branding {
        order: 2;
        margin: 10px 0;
        text-align: center;
        flex-grow: 0;
    }

    /* FIXED: Hamburger - Bottom but functional */
    .navbar-toggler {
        order: 3;
        margin-top: 10px;
        padding-bottom: 10px;
        position: relative !important; /* FIXED: No absolute positioning */
        bottom: auto !important;
        align-self: center;
        pointer-events: auto !important; /* FIXED: Ensure clickable */
        z-index: 1001 !important;
    }

    /* Logo and title size adjustments */
    .header-logo {
        margin-top: 3em;
        max-height: 50% !important;
    }
    
    .site-title-custom {
        font-size: 1rem !important;
        position: relative;
        left: -10em !important;
    }

    .navbar-toggler-icon  {
        top: -2.5em !important;
        left: -7em !important;
        position: relative;
    }
}

/* Animation for smooth menu appearance */
.fullscreen-menu.collapsing {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Custom hamburger animation */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* FIXED: Ensure hamburger stays functional after menu close */
.navbar-toggler[aria-expanded="false"] {
    pointer-events: auto !important;
    z-index: 1001 !important;
}

/* CLEANED UP: Removed redundant z-index rules and simplified collapse behavior */
.fullscreen-menu.collapse:not(.show) {
    display: none;
}

.fullscreen-menu.collapse.show {
    display: flex !important;
    opacity: 1 !important;
}

/* Fixed carousel gap (uncomment if needed) */
/*
.site-header, .hero-carousel, #primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

section, header, main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hero-carousel {
    position: relative;
    z-index: -1;
    margin-top: -2em !important;
}
*/