/* --- Header and Menu Styles (Revised Attempt) --- */
#mainHeader {
    position: fixed; /* Keep header at the top */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: center; /* Center the phone number div horizontally */
    padding: 0.75rem 1.3rem; /* Padding top/bottom and left/right */
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 2rem;
    position: relative; /* Context for absolute positioning */
	margin-bottom: 20px;
}

#headerPhoneNumber {
    /* This div is centered by the parent's justify-content: center */
    text-align: center; /* Center the text inside the div */
    /* Ensure it doesn't shrink if header is wide */
    flex-grow: 1; /* Allow it to take available space if needed, helping centering */
    /* Add padding to prevent overlap with absolute button on narrow screens */
    /* Adjust padding based on menu button size + desired gap */
    padding-left: 50px; /* Approx width+padding of menu button */
    padding-right: 50px; /* Approx width+padding of menu button */
}

#headerPhoneNumber a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 2rem;
    display: inline-block; /* Ensure it doesn't cause wrapping issues */
    white-space: nowrap; /* Prevent number from wrapping */
}
 #headerPhoneNumber a:hover {
     color: #007bff;
 }

#menuToggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem; /* Clickable area */
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; /* Position relative to header */
    right: 1rem; /* Distance from right edge */
    top: 50%; /* Align top edge to vertical center */
    transform: translateY(-50%); /* Shift up by half its height */
}

#menuToggle svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

/* --- Nav Overlay and Panel Styles (Unchanged) --- */
#navOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#navOverlay.active {
    display: block;
    opacity: 1;
}

#mobileNavPanel {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 1020;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
#mobileNavPanel.active {
    transform: translateX(0);
}

#closeMenuButton {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem;
    line-height: 1;
    width: auto;
    margin: 0;
    color: #888;
}
 #closeMenuButton:hover {
     color: #333;
 }

#mobileNavPanel ul {
    list-style: none;
    margin-top: 3rem;
    padding: 0;
}

#mobileNavPanel li {
    margin-bottom: 1rem;
}

#mobileNavPanel a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.2s ease;
}
#mobileNavPanel a:hover {
    color: #0056b3;
}
/* --- End Header and Menu Styles --- */
