:root {
    --topbar-height: 36px;
}

/* ---------------------------------
    TOP BAR
   ---------------------------------*/
.bca-topbar {
    background: var(--bca-dark-navy);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.bca-topbar__inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.bca-topbar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bca-topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bca-font-heading);
    font-size: 11px;
    font-weight: 500;
    color: rgb(255 255 255 / 80%);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bca-topbar__item:hover { color: rgba(255,255,255,0.65); }
.bca-topbar__item svg { width:11px; height:11px; stroke:currentColor; fill:none; stroke-width:2; flex-shrink:0; }
.bca-topbar__item-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.bca-topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bca-topbar__reg {
    font-family: var(--bca-font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bca-secondary);
    cursor: pointer;
    transition: color 0.2s ease;    
}

.bca-topbar__reg:hover { color: var(--bca-dark-secondary); }

.bca-topbar__badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--bca-font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bca-secondary);
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 3px 10px;
    border-radius: 3px;
}


/* ---------------------------------
    MAIN HEADER
   ---------------------------------*/
.bca-header {
    position: fixed;
    top: var(--topbar-height);
    width: 100%;
    backdrop-filter: blur(5px);
    background: transparent;
    z-index: 9999;
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.bca-header.is-bg { background: var(--bca-dark-navy); }
.bca-header.bca-mobile-menu-open { background: var(--bca-dark-navy); }

.bca-header.scrolled {
    top: 0;
    background: var(--bca-dark-navy);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.bca-header__inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 36px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo */
.bca-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 40px;
    text-decoration: none;
}

.bca-header__logo img { max-width: 130px; }

/* Nav */
.bca-nav {
    display: flex;
    align-items: center;    
    justify-content: center;
    gap: 0;
    flex: 1;
}

.bca-nav__item {
    position: relative;
}

.bca-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    height: 70px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    position: relative;
    cursor: pointer;
    border: none;
    background: none;
}

.bca-nav__link::after {
    content: '';
    position: absolute;
    bottom: 13px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--bca-primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px 2px 0 0;
}

.bca-header.bca-header.scrolled .bca-nav__link::after { bottom: 0; }

.bca-nav__link:hover { color: var(--white); }
.bca-nav__link:hover::after { transform: scaleX(1); }
.bca-nav__item.active > .bca-nav__link { color: var(--white); }
.bca-nav__item.active > .bca-nav__link::after { transform: scaleX(1); }

/* Chevron icon */
.bca-nav__chevron {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.bca-nav__item:hover .bca-nav__chevron,
.bca-nav__item.open .bca-nav__chevron { transform: rotate(180deg); }

/* ─── SIMPLE DROPDOWN ─── */
.bca-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--bca-dark-border);
    border-top: 3px solid var(--bca-primary);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 16px 48px rgba(13,27,62,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 100;
    overflow: hidden;
}
.bca-nav__item:hover .bca-dropdown,
.bca-nav__item.open .bca-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bca-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-family: var(--bca-font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    border-bottom: 1px solid var(--bca-dark-border);
}
.bca-dropdown__item:last-child { border-bottom: none; }
.bca-dropdown__item:hover { background: var(--bg-soft); color: var(--bca-primary); }
.bca-dropdown__item svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:2; flex-shrink:0; opacity:0.5; }
.bca-dropdown__item:hover svg { opacity: 1; }

/* ─── MEGA MENU (Services) ─── */
.bca-mega {
    position: fixed;
    top: 70px; /* will be set by JS */
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 3px solid var(--bca-primary);
    box-shadow: 0 16px 64px rgba(13,27,62,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 9998;
}
.bca-nav__item:hover .bca-mega,
.bca-nav__item.open .bca-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bca-mega__inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 40px 36px;
    display: grid;
    grid-template-columns: 1fr 30px 1fr 250px;
    gap: 0;
}

.bca-mega__col-divider {
    width: 1px;
    justify-self: center;
    height: 100%;
    background: var(--bca-dark-border);
}

.bca-mega__col:last-child { border-right: none; padding-right: 0; padding-left: 20px; }

.bca-mega__col-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bca-dark-border);
}
.bca-mega__col-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bca-mega__col-icon--blue { background: rgba(26,86,219,0.1); }
.bca-mega__col-icon--gold { background: rgba(201,168,76,0.1); }
.bca-mega__col-icon svg { width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; }
.bca-mega__col-icon--blue svg { stroke: var(--bca-primary); }
.bca-mega__col-icon--gold svg { stroke: var(--bca-secondary); }

.bca-mega__col-label { 
    font-size: 14px; 
    font-weight: 800; 
    color: var(--bca-dark-navy); 
    letter-spacing: 0.4px; 
}

.bca-mega__col-sublabel { 
    font-size: 13px; 
    font-weight: 600;
    color: var(--muted); 
}

.bca-mega__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bca-mega__list-item { margin: 0; }

.bca-mega__list-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.bca-mega__list-item a:hover { background: var(--bca-card-bg); color: var(--bca-primary); }
.bca-mega__list-item a svg { width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2; flex-shrink:0; opacity:0; transition: opacity 0.18s ease; }
.bca-mega__list-item a:hover svg,
.bca-mega__list-item--specialist a:hover span { opacity: 1; } 
.bca-mega__list-item--specialist a:hover { color: var(--bca-secondary); }

/* Specialist badge in mega menu */
.bca-mega__list-item--specialist a { color: var(--bca-secondary); }
.bca-mega__list-item--specialist a span {
    content: '✦ BC&A Specialist';
    background: var(--bca-secondary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px 01px 8px;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.bca-mega__view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bca-primary);
    text-decoration: none;
    border-top: 1px solid var(--bca-dark-border);
    transition: gap 0.2s ease;
}
.bca-mega__view-all svg { width:12px; height:12px; stroke:currentColor; fill:none; stroke-width:2.5; }
.bca-mega__view-all:hover { gap: 9px; }

/* Right col — CTA card */
.bca-mega__cta {
    background: var(--bca-dark-navy);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bca-mega__cta-eyebrow {
    font-family: var(--bca-font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bca-secondary);
}

.bca-mega__cta h3 {
    font-family: var(--bca-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.bca-mega__cta h3 em { font-style: italic; color: var(--bca-secondary); }

.bca-mega__cta p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
}


/* ─── RIGHT ACTIONS ─── */
.bca-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.bca-header__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: background 0.2s ease, color 0.2s ease;
}

.bca-header__icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.bca-header__icon-btn svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; }

.bca-header__quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background-image: linear-gradient(115deg, var(--bca-primary) 0%, var(--bca-dark-blue) 100%);
    padding: 9px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease;
    box-shadow: 0 4px 14px rgba(26,86,219,0.35);
}

.bca-header__quote-btn:hover { color: white; background-image: linear-gradient(115deg, #0533a7 0%, #082f93 100%); }
.bca-header__quote-btn svg { width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2.5; transition: transform 0.22s ease; }
.bca-header__quote-btn:hover svg { transform: translateX(2px); }

/* Divider */
.bca-header__divider { width: 1px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 4px; }

/* Backdrop overlay */
.bca-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13,27,62,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9990; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.bca-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ─── SEARCH OVERLAY ─── */
.bca-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,27,62,0.95);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bca-search-overlay.active { opacity: 1; visibility: visible; }
.bca-search-overlay__inner { width: 100%; max-width: 640px; padding: 0 24px; }
.bca-search-overlay__label { 
    font-family: var(--bca-font-heading); 
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; 
    color: rgba(255,255,255,0.35); 
    margin-bottom: 16px; display: block; 
}
.bca-search-overlay__input-wrap { 
    display: flex; align-items: center; gap: 16px; 
    border-bottom: 2px solid rgba(255,255,255,0.2); 
    padding-bottom: 16px; 
    transition: border-color 0.22s ease; 
}
.bca-search-overlay__input-wrap:focus-within { border-color: var(--bca-primary); }
.bca-search-overlay__icon { width:22px; height:22px; stroke:rgba(255,255,255,0.4); fill:none; stroke-width:2; flex-shrink:0; }
.bca-search-overlay__input { 
    background: none; border: none; outline: none; 
    font-family: var(--bca-font-heading); 
    font-size: clamp(22px, 4vw, 36px); 
    font-weight: 600; color: var(--white); flex: 1; 
}
.bca-search-overlay__input::placeholder { color: rgba(255,255,255,0.25); }
.bca-search-overlay__close { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: rgba(255,255,255,0.4); 
    font-family: var(--bca-font-heading); 
    font-size: 13px; font-weight: 600; 
    transition: color 0.2s ease; 
    margin: 0; padding: 0;
    overflow: visible;
    display: flex; align-items: center; gap: 6px; 
}
.bca-search-overlay__close:hover { color: var(--white); }
.bca-search-overlay__hint { font-family: var(--bca-font-heading); font-size: 12px; color: rgba(255,255,255,0.25); margin-top: 16px; }


/* ---------------------------------
    MOBILE MENU
   ---------------------------------*/
.bca-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.bca-hamburger:hover { background: rgba(255,255,255,0.08); }
.bca-hamburger span {
    display: block;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.28s ease;
    transform-origin: center;
}

.bca-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bca-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.bca-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.bca-mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bca-dark-navy);
    z-index: 9997;
    overflow-y: auto;
    padding: 24px 24px 48px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bca-mobile-menu.open { transform: translateX(0); }

.bca-mobile-nav { list-style: none; display: flex; flex-direction: column; gap: 0; }
.bca-mobile-nav__item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.bca-mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: rgb(255 255 255);
    text-decoration: none;
    cursor: pointer;
}

.bca-mobile-nav__link svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2.5; transition: transform 0.25s ease; }
.bca-mobile-nav__item.open .bca-mobile-nav__link svg { transform: rotate(90deg); }

.bca-mobile-sub { display: none; padding: 0 0 16px 16px; }
.bca-mobile-nav__item.open .bca-mobile-sub { display: block; }
.bca-mobile-sub__section { margin-bottom: 16px; }

.bca-mobile-sub__section-label { 
    font-size: 12px; 
    font-weight: 700; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: var(--bca-secondary); 
    margin-bottom: 8px; 
    display: block; 
}

.bca-mobile-sub__link { 
    display: block; 
    padding: 6px 0; 
    font-size: 15px; font-weight: 600; 
    color: rgba(255,255,255,0.55); 
    text-decoration: none; 
    transition: color 0.2s ease; 
}

.bca-mobile-sub__link:hover { color: var(--white); }
.bca-mobile-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

.bca-mobile-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
}

.bca-mobile-actions a svg { height:15px; stroke:currentColor; fill:none; stroke-width:2.5; }
.bca-mobile-actions__outline { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }


/* ---------------------------------
    RESPONSIVE
   ---------------------------------*/
@media (max-width: 1100px) {
    .bca-nav__link { padding: 0 10px; font-size: 14px; }
    .bca-header__inner { padding: 0 20px; }
    .bca-header__logo { margin-right: 24px; }
}

@media (max-width: 900px) {
    .bca-topbar { display: none; }
    .bca-header { top: 0;}
    .bca-nav { display: none; }
    .bca-header__divider { display: none; }
    .bca-header__quote-btn .bca-header__quote-btn-text { display: none; }
    .bca-hamburger { display: flex; }
    .bca-mobile-menu { display: block; }
}

@media (max-width: 480px) {
    .bca-header__logo svg { height: 28px; }
    .bca-header__quote-btn { display: none;}
}