/* Header Navigation Styles */

/* Main navigation */
.main-nav {
    display: flex;
    z-index: 40;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    transition: background-color 300ms;
}

.main-nav[data-menu-open="true"] {
    border: none;
    background-color: var(--bg-standard);
}

/* Header inner */
.header-inner {
    z-index: 40;
    display: flex;
    width: 100%;
    flex-direction: row;
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    height: 5rem;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
    --shadow: 0px 14px 34px 0px rgba(147, 199, 199, .31);
    box-shadow: var(--shadow);
    
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

@media (min-width: 768px) {
    .header-inner {
        height: 6rem;
    }
}

/* Under-glow beneath the whole header */
.main-nav {
    position: sticky; /* ensure containing block for pseudo */
}

.main-nav::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1.5rem;
    width: calc(100% - 4rem);
    height: 3.5rem;
    background: radial-gradient(closest-side at 50% 0, rgba(27,40,68,0.12), rgba(27,40,68,0.06) 40%, transparent 70%);
    filter: blur(18px);
    opacity: 0.95;
    pointer-events: none;
    z-index: 39; /* sit underneath header-inner (z-index:40) */
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    transition: opacity 300ms ease, transform 300ms ease;
}

@media (min-width: 1145px) {
    .main-nav::after {
        bottom: -2.25rem;
        height: 4.5rem;
        filter: blur(26px);
        width: calc(100% - 6rem);
    }
}

/* Reduce or hide glow when menu is opened (optional visual state) */
.main-nav[data-menu-open="true"]::after {
    opacity: 0.6;
    transform: translateX(-50%) translateY(4px);
}

/* Header container */
.header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Navigation lists */
.nav-list {
    display: flex;
    gap: 1rem;
    height: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list--start {
    justify-content: flex-start;
    flex-grow: 1;
    flex-basis: 0;
}

.nav-list--center {
    justify-content: center;
    display: none;
}

@media (min-width: 1145px) {
    .nav-list--center {
        display: flex;
    }
}

.nav-list--end {
    justify-content: flex-end;
    flex-grow: 1;
    flex-basis: 0;
}

@media (min-width: 1145px) {
    .nav-list--end {
        display: none;
    }
}

/* Logo container */
.logo-container {
    display: flex;
    flex-basis: 0;
    flex-direction: row;
    flex-grow: 1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    background-color: transparent;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}

.logo-link {
    display: inline-block;
}

.logo-svg {
    width: auto;
    height: 2rem;
}

@media (min-width: 640px) {
    .logo-svg {
        height: 2.5rem;
    }
}

@media (min-width: 768px) {
    .logo-svg {
        height: 2.75rem;
    }
}

/* Navigation items */
.nav-item {
    list-style: none;
    display: inline-flex;
    position: relative;
    font-size: 1rem;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.nav-item[data-active="true"] {
    font-weight: 600;
}

/* Navigation links */
.nav-link {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    font-size: 1rem;
    color: var(--color-heading);
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-weight: 600;
    line-height: 2rem;
    transition: color 200ms, opacity 200ms;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav-link {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.nav-link:active {
    opacity: 0.5;
}

.nav-link:focus-visible {
    z-index: 10;
    outline-style: dashed;
    outline-width: 1px;
    outline-offset: 0;
}

/* Navigation link dropdown button variant */
.nav-link--dropdown {
    z-index: 10;
}

/* Navigation link text */
.nav-link-text {
    transition: transform 200ms;
}

.nav-item a:hover {
    color: var(--color-body) !important;
}

.nav-item:hover .nav-link-text {
    transform: translateY(-0.125rem);
}

/* Navigation link indicator (for Home link) */
.nav-link-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-6px) scale(0.92);
    display: inline-flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px 9999px 0 0;
    background-color: rgba(0, 0, 0, 0.05);
    transform-origin: 50% 0 0;
    opacity: 0;
    transition: transform 360ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
    pointer-events: none;
}

.nav-link-indicator::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    bottom: 0;
    height: 0.75rem;
    width: 0.75rem;
    background: radial-gradient(circle 0.75rem at top left, transparent 98%, rgba(0, 0, 0, 0.05));
}

.nav-link-indicator::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    bottom: 0;
    height: 0.75rem;
    width: 0.75rem;
    background: radial-gradient(circle 0.75rem at top right, transparent 98%, rgba(0, 0, 0, 0.05));
}

.nav-link-icon {
    height: 1rem;
    width: 1rem;
    fill: rgba(0, 0, 0, 0.2);
}

.nav-link-icon::after {
    transform: scaleX(-1); /* Flip the ::after pseudo-element horizontally */
}

.nav-item[data-active="true"] .nav-link-indicator {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Stronger, more specific styles to match the example (override if needed) */
.nav-list .nav-item .nav-link .nav-link-indicator,
.nav-list .nav-item .nav-link .nav-link-indicator::before {
    will-change: transform, opacity;
}

.nav-list .nav-item .nav-link .nav-link-indicator {
    height: 1.5rem; /* h-6 */
    width: 1.5rem;  /* w-6 */
    border-radius: 9999px 9999px 0 0;
    background-color: rgba(0,0,0,0.05);
    box-shadow: 0 8px 20px rgba(16,24,40,0.06);
}

.nav-list .nav-item[data-active="true"] .nav-link .nav-link-indicator {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
    animation: floatDown 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes floatDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-12px) scale(0.85);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.nav-list .nav-item .nav-link .nav-link-indicator::before {
    background: radial-gradient(circle 0.75rem at top left, transparent 98%, rgba(0,0,0,0.05));
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    position: relative;
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle:focus {
    outline-style: dashed;
    outline-width: 1px;
    outline-offset: 0;
}

@media (min-width: 1145px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hamburger lines */
.hamburger-line {
    position: absolute;
    height: 4px;
    border-radius: 2px;
    background-color: var(--color-heading);
    transition: transform 300ms, width 300ms;
}

.hamburger-line--top {
    width: 1.5rem;
    transform: translateY(-9px);
}

.hamburger-line--middle {
    width: 1rem;
    margin-left: 0.5rem;
}

.hamburger-line--bottom {
    width: 1.5rem;
    transform: translateY(9px);
}

/* Dropdown Menu Styles */
.nav-item--dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    z-index: 100000;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) scale(0.95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    margin-top: 0.5rem;
    transform-origin: 50% 0;
    will-change: transform, opacity;
}

.dropdown-menu[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

/* Dropdown arrow pointing up */
.dropdown-arrow {
    position: absolute;
    top: -0.3125rem; /* -5px converted */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 0.625rem; /* 10px */
    height: 0.625rem; /* 10px */
    background-color: var(--white);
    border-radius: 0.125rem; /* 2px */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    z-index: -1;
}

/* Dropdown content container */
.dropdown-content {
    position: relative;
    background-color: var(--white);
    min-width: 200px;
    border-radius: 0.375rem; /* 6px */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: none;
}

@media (min-width: 768px) {
    .dropdown-content {
        display: inline-flex;
    }
}

/* Dropdown navigation */
.dropdown-nav {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: clip;
    padding: 0;
    gap: 0;
}

/* Dropdown list */
.dropdown-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    outline: none;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e7eb;
}

.dropdown-list li {
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-list li:last-child {
    border-bottom: none;
}

/* Dropdown item */
.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
    gap: 0.5rem;
    border-radius: 0;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    transition: background-color 200ms, color 200ms;
}

.dropdown-item:focus-visible {
    z-index: 10;
    outline-offset: 2px;
}

.dropdown-item:focus,
.dropdown-item[data-focus="true"] {
    background-color: var(--bg-standard); /* grey-blue */
}

.dropdown-item:hover {
    background-color: var(--bg-standard); /* grey-blue */
}

/* Dropdown item text */
.dropdown-item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-heading); /* primary */
    width: 100%;
    transition: color 200ms;
    font-size: 1rem; /* text-medium */
    font-weight: 700; /* font-bold */
}

.dropdown-item:hover .dropdown-item-text {
    color: var(--dark-pink); /* dark-pink */
}

/* Dropdown item icon */
.dropdown-item-icon {
    height: 1rem; /* h-4 */
    width: 1rem; /* w-4 */
    fill: var(--color-blue-100); /* light-blue */
    transition: fill 200ms;
    flex-shrink: 0;
}

.dropdown-item:hover .dropdown-item-icon {
    fill: var(--dark-pink); /* dark-pink */
}

body.admin-bar .main-nav {
    top: 32px; /* Offset for WordPress admin bar */
}

body {
    overflow-x: hidden; /* Prevent horizontal scroll issues */
    overflow-y: visible; /* Ensure sticky elements remain visible */
}

/* =========================================================
   MOBILE NAVIGATION LIST
========================================================= */

/* Mobile menu list container */
.mobile-nav-list {
    z-index: 30;
    position: fixed;
    display: none; /* Hidden by default */
    max-width: 100%;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    background-color: var(--bg-standard); /* grey-blue */
    padding: 0;
    margin: 0;
    list-style: none;
    height: calc(100vh - var(--navbar-height));
    will-change: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 300ms ease, transform 300ms ease;
}

/* Show mobile menu when open */
.mobile-nav-list[data-open="true"] {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile nav wrapper */
.mobile-nav-wrapper {
    background-color: var(--bg-standard); /* grey-blue */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Mobile nav inner container */
.mobile-nav-inner {
    display: flex;
    flex-direction: column;
}

/* Mobile nav divider */
.mobile-nav-inner > * {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-inner > *:last-child {
    border-bottom: none;
}

/* Mobile nav link (direct links like Home, Actueel, etc.) */
.mobile-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
    transition: opacity 200ms;
    padding: 1.25rem 1rem; /* py-5 px-4 */
    font-size: 1.375rem; /* text-[1.375rem] */
    font-weight: 800; /* font-extrabold */
    line-height: 1;
    color: var(--color-heading); /* text-primary */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mobile-nav-link:hover {
    opacity: 0.8;
}

.mobile-nav-link:active {
    opacity: 0.6;
}

.mobile-nav-link:focus-visible {
    z-index: 10;
    outline-style: dashed;
    outline-width: 1px;
    outline-offset: -3px;
    outline-color: var(--color-heading); /* primary */
}

/* Mobile accordion/dropdown container */
.mobile-accordion {
    width: 100%;
    padding: 0;
}

/* Mobile accordion header */
.mobile-accordion-header {
    margin: 0;
}

/* Mobile accordion button */
.mobile-accordion-button {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0.75rem;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: opacity 200ms;
    padding: 1.25rem 1rem; /* py-5 px-4 */
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-accordion-button:focus-visible {
    z-index: 10;
    outline-style: dashed;
    outline-offset: -3px;
    outline-width: 1px;
    outline-color: var(--color-heading); /* primary */
}

/* Mobile accordion button content wrapper */
.mobile-accordion-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Mobile accordion title */
.mobile-accordion-title {
    font-size: 1.375rem; /* text-[1.375rem] */
    color: var(--color-heading); /* text-primary */
    transition: color 200ms;
    font-weight: 800; /* font-extrabold */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile accordion icon */
.mobile-accordion-icon {
    color: rgba(0, 0, 0, 0.4); /* text-default-400 */
    transition: transform 200ms;
    transform: rotate(0deg);
}

.mobile-accordion-button[data-open="true"] .mobile-accordion-icon,
.mobile-accordion-header[data-open="true"] .mobile-accordion-icon {
    transform: rotate(-180deg);
}

.mobile-accordion-icon svg {
    height: 1.5rem; /* h-6 */
    width: 1.5rem; /* w-6 */
    fill: currentColor;
}

/* Mobile accordion content/section */
.mobile-accordion-section {
    will-change: auto;
    opacity: 1;
    height: auto;
    overflow-y: unset;
    transition: height 300ms ease, opacity 300ms ease;
}

.mobile-accordion-section[data-open="false"],
.mobile-accordion-section:not([data-open="true"]) {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Mobile accordion content inner */
.mobile-accordion-content {
    padding: 0.5rem 1rem 1.5rem; /* py-2 px-4 pt-4 pb-6 */
}

/* Mobile dropdown base */
.mobile-dropdown-base {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.25rem;
    overflow: clip;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Mobile dropdown list */
.mobile-dropdown-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.125rem; /* gap-0.5 */
    outline: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile dropdown item */
.mobile-dropdown-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.375rem 0; /* py-1.5 */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 0.125rem; /* rounded-small */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    padding-left: 0;
    padding-right: 0;
}

.mobile-dropdown-item:focus-visible {
    z-index: 10;
    outline-width: 2px;
    outline-color: var(--color-heading); /* focus */
    outline-offset: 2px;
}

.mobile-dropdown-item:hover {
    transition: background-color 200ms, color 200ms;
    background-color: rgba(0, 0, 0, 0.05);
    color: inherit;
}

.mobile-dropdown-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: inherit;
}

/* Mobile dropdown item label/text */
.mobile-dropdown-item-label {
    flex: 1;
    font-size: 0.875rem; /* text-small */
    font-weight: 400; /* font-normal */
}

/* Mobile dropdown link */
.mobile-dropdown-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
    color: var(--color-heading); /* text-primary */
    transition: opacity 200ms;
    font-size: 1.125rem; /* text-[1.125rem] */
    font-weight: 800; /* font-extrabold */
}

.mobile-dropdown-link:hover {
    opacity: 0.8;
}

.mobile-dropdown-link:active {
    opacity: 0.6;
}

.mobile-dropdown-link:focus-visible {
    z-index: 10;
    outline-width: 2px;
    outline-color: var(--color-heading); /* focus */
    outline-offset: 2px;
}

/* Hide mobile nav on desktop */
@media (min-width: 1145px) {
    .mobile-nav-list {
        display: none;
    }
}

/* Add margin-top to mobile navigation */
.mobile-nav-list {
    margin-top: 2rem; /* Ensures spacing below the header */
}