/* =====================================================
   Navigation Dropdowns
   Add this section to marketing-styles.css
   ===================================================== */

/* Dropdown container - must match .nav-bar__tab spacing */
.nav-bar__dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 24px;
}

/* Dropdown trigger - must match .nav-bar__tab styling */
.nav-bar__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    /* Match .nav-bar__tab styles */
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    padding: 0;
    margin: 0;
    transition: color 0.2s;
}

/* Ensure dropdown trigger doesn't inherit nav-bar__tab margin */
.nav-bar__dropdown .nav-bar__tab {
    margin-right: 0;
}

/* Ensure dropdown trigger doesn't inherit nav-bar__tab margin */
.nav-bar__dropdown .nav-bar__tab {
    margin-right: 0;
}

.nav-bar__dropdown-trigger:hover {
    color: var(--white);
}

/* Dropdown arrow */
.nav-bar__dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-bar__dropdown-arrow--open {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-bar__dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 400;
    animation: dropdownFadeIn 0.15s ease-out;
    /* Hidden by default for static pages (JS controls visibility) */
    display: none;
}

/* Invisible bridge to maintain hover when moving from trigger to menu */
.nav-bar__dropdown-menu::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* Show on hover for CSS-only fallback */
.nav-bar__dropdown:hover .nav-bar__dropdown-menu {
    display: block;
}

/* Arrow pointer on dropdown - positioned above the menu */
.nav-bar__dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
    /* Ensure arrow is above the invisible bridge */
    z-index: 1;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Dropdown items */
.nav-bar__dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.nav-bar__dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Icon in dropdown */
.nav-bar__dropdown-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Content wrapper */
.nav-bar__dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Item label */
.nav-bar__dropdown-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Item description */
.nav-bar__dropdown-description {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Divider for grouping items */
.nav-bar__dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}


/* =====================================================
   Enhanced Footer with Link Categories
   ===================================================== */

.page-footer-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2.4rem;
    background-color: #303a52;
    color: var(--light-aluminium);
}

.page-footer__main {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 4rem;
    width: 100%;
    max-width: 120rem;
    padding: 4rem 3.2rem;
}

/* Brand column */
.page-footer__brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.page-footer__brand-logo {
    height: 50px;
    width: auto;
}

.page-footer__brand-tagline {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--aluminium);
    max-width: 280px;
}

/* Link columns */
.page-footer__col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.page-footer__col-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-footer__col-link {
    font-size: 1.4rem;
    color: var(--aluminium);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.page-footer__col-link:hover {
    color: var(--white);
}

/* Bottom bar */
.page-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 120rem;
    padding: 2rem 3.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-footer__copyright {
    font-size: 1.3rem;
    color: var(--aluminium);
}

.page-footer__legal {
    display: flex;
    gap: 2rem;
}

.page-footer__legal-link {
    font-size: 1.3rem;
    color: var(--aluminium);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-footer__legal-link:hover {
    color: var(--white);
}

/* Responsive footer */
@media only screen and (max-width: 960px) {
    .page-footer__main {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .page-footer__brand-col {
        grid-column: span 2;
    }
}

@media only screen and (max-width: 640px) {
    .page-footer__main {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        padding: 3rem 1.6rem;
    }

    .page-footer__brand-col {
        grid-column: span 1;
        align-items: center;
        text-align: center;
    }

    .page-footer__brand-tagline {
        max-width: 100%;
    }

    .page-footer__col {
        align-items: center;
        text-align: center;
    }

    .page-footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2rem 1.6rem;
    }

    .page-footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* =====================================================
   Mobile Navigation Dropdown Adjustments
   ===================================================== */

/* Match nav-bar__tab responsive font size */
@media only screen and (max-width: 640px) {
    .nav-bar__dropdown-trigger {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 340px) {
    .nav-bar__dropdown-trigger {
        font-size: 1.3rem;
    }
}

@media only screen and (max-width: 768px) {
    /* Hide desktop dropdowns on mobile */
    .nav-bar__dropdown {
        display: none;
    }

    /* Static links should also be hidden if using mobile nav */
    .nav-bar__tabs > a.nav-bar__tab:not(:first-child) {
        display: none;
    }
}