/* Site Header & Sticky Navigation (Option A) */
.site-header {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    z-index: 1500;
}

.site-header.site-header--pinned {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

@media (min-width: 0) {
.site-header.site-header--pinned + main {
    padding-top: var(--site-header-height);
}
}
.site-header .navigation {
    position: relative;
    z-index: 2001;
    background-color: transparent;
    box-shadow: none;
}

/* End Sticky Navigation */

/* Navigation */

.nav-wrapper {
    background-color: #fff;
    /* Removed border to avoid gap appearance */
    /* border-bottom: 1px solid #e2e8f0; */
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo-image {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0; /* Spacing handled by padding for separators */
    height: 100%;
}

.nav-menu a:not(.nav-cta) {
    position: relative;
    color: #475569; /* Slate 600 */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
    padding: 0 1.25rem;
    border-right: 1px solid #cbd5e1; /* Slate 300 separator */
    line-height: 1.2;
}

.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #7f1d1d; /* Brand Red */
    transition: width 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-menu a:not(.nav-cta):hover,
.nav-menu a:not(.nav-cta).active {
    color: #7f1d1d; /* Brand Red */
}

.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta).active::after {
    width: calc(100% - 2.5rem); /* Expand to text width (total width - padding) */
}

/* Remove separator from the last text link (before CTA) */
.nav-menu > a:nth-last-child(2) {
    border-right: none;
    padding-right: 0;
}

.nav-menu .nav-cta {
    margin-left: 1.5rem; /* Space between menu and button */
    background-color: #7f1d1d; /* Dark red to match brand */
    color: #ffffff !important; /* Ensure text is white */
    padding: 0.5rem 1.25rem; /* Reduced padding for a more discreet look */
    border-radius: 999px; /* Pill shape */
    font-weight: 600;
    font-size: 0.9rem; /* Slightly smaller font */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-menu .nav-cta:hover {
    background-color: #991b1b;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0f172a;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

.nav-overlay {
    display: none;
}

#header-spacer {
    width: 100%;
    height: 0;
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 240px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    z-index: 2002;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
    border-right: none !important; /* Override default nav link border */
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #7f1d1d;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}
