header {
    background-color: #000000; /* Keep black header */
    color: var(--accent-gold);
    padding: 5px 0; /* Slightly reduced padding */
    position: fixed;
    width: 100%;
    z-index: 1000;
    height: var(--header-height); /* Use variable */
    display: flex; /* Use flex to center container vertically */
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure container takes full width */
}

.logo {
    flex-shrink: 0; /* Prevent logo from shrinking */
}
.logo a {
    display: block; /* Ensure link covers image */
    line-height: 0; /* Remove extra space */
}
.logo a:focus-visible { /* Specific focus for logo link */
    outline: 2px solid var(--focus-outline-color);
    outline-offset: 3px;
    border-radius: 3px;
}

.logo img {
    height: 75px; /* Slightly adjusted */
    width: auto;
    display: block; /* Remove potential bottom space */
}

.desktop-nav {
    margin: 0 20px; /* Add margin for spacing */
}

.desktop-nav a {
    color: var(--accent-gold);
    text-decoration: none;
    margin-left: 25px; /* Increased spacing */
    transition: color 0.3s;
    font-weight: 500; /* Slightly less bold */
    font-size: 17px;
    padding: 5px 0; /* Add padding for larger click area and underline spacing */
    position: relative; /* For active state underline */
}
.desktop-nav a:first-child {
    margin-left: 0;
}

.desktop-nav a:hover,
.desktop-nav a:focus { /* Combine hover/focus */
    color: #ffffff;
    text-decoration: none; /* Handled by active state */
}
/* Active state handled in main.css */


.social-icons a { /* Style links directly */
    color: var(--accent-gold);
    font-size: 22px; /* Slightly larger */
    margin-left: 18px; /* Increased spacing */
    transition: color 0.3s, transform 0.2s;
    display: inline-block; /* For transform */
}
.social-icons a:hover,
.social-icons a:focus {
    color: #ffffff;
    transform: scale(1.15); /* Slightly increase scale */
    text-decoration: none;
}
.social-icons a:focus-visible { /* Ensure focus outline is visible */
     outline: 2px solid var(--focus-outline-color);
     outline-offset: 2px;
     border-radius: 50%; /* Circle outline */
}

.mobile-menu-button {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 28px; /* Larger icon */
    cursor: pointer;
    padding: 5px; /* Add padding for touch target */
    line-height: 1; /* Prevent extra height */
    transition: color 0.3s, transform 0.2s;
}
.mobile-menu-button:hover, .mobile-menu-button:focus {
    color: #ffffff;
    transform: scale(1.1);
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none; /* Hidden initially */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Full screen */
    background-color: rgba(0, 0, 0, 0.97); /* Almost opaque */
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    /* Add transition for smoother appearance */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.mobile-menu.open {
    display: flex; /* Show when open class is added */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.mobile-menu a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: clamp(24px, 5vw, 30px); /* Responsive font size */
    margin: 18px 0; /* Adjusted spacing */
    padding: 10px 15px; /* Larger touch target */
    transition: color 0.3s, transform 0.2s;
    font-weight: 500;
    position: relative; /* For active state underline */
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    color: #ffffff;
    transform: scale(1.05);
    text-decoration: none;
}
/* Active state handled in main.css */

/* Close button inside mobile menu */
.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 32px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s, transform 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #ffffff;
    transform: scale(1.1) rotate(90deg); /* Rotate effect */
}