/* ═══════════════════════════════════════════════════════════════════
   BCNB Portal – global stylesheet
   Covers: colour tokens, nav, home page sections, footer
   Note: .bcnb-topnav transparent-overlay override for the home page
         hero is kept in templates/home.html {% block styles %}
═══════════════════════════════════════════════════════════════════ */

/* ── Colour tokens ───────────────────────────────────────────────── */
:root {
    --bcnb-deep-teal:   #005C5D;
    --bcnb-core-pink:   #FC2F96;
    --bcnb-bright-teal: #00CCCC;
    --bcnb-warm-accent: #E88762;
    --bcnb-grey:        #b4b4b4;
    --bcnb-card-bg:     #e8e8e8;
}

/* ── Portal top nav ──────────────────────────────────────────────── */
.bcnb-topnav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    width: 100%;
    display: flex;
    align-items: center;
    /* max-width: 1240px; */
}
.bcnb-topnav__inner {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 0 18rem;
    height: 128px;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}
.bcnb-topnav__logo {
    position: absolute;
    top: 50%;
    left: 50%; 
    /* width: 50%; */
    max-width: 1240px;
}
.bcnb-topnav__logo img {
    height: 304px;
    /* display: block; */
    /* margin-left: auto; */
    transform: translate(-167%, -30%);
    left: 16rem;
}
.bcnb-topnav__logo--small {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    width: auto;
    max-width: none;
    z-index: 10;
    text-decoration: none;
}
.bcnb-topnav__logo--small img {
    height: 80px;
    padding-left: 0;
    transform: none;
}
.bcnb-topnav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}
.bcnb-topnav__link {
   font-family: 'futura-pt', 'Red Hat Text';
    font-weight: 700;
    font-size: 1.05rem;
    color: #005C5D;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.bcnb-topnav__link:hover {
    color: #FC2F96;
    border-bottom-color: #FC2F96;
    text-decoration: none;
}
.bcnb-topnav__link--active {
    color: #FC2F96;
    border-bottom-color: #FC2F96;
}
.bcnb-topnav__apply {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    margin-left: 2.5rem;
    margin-right: 0;
    padding: 0 3.2rem 0 1.8rem;
    height: 52px;
    background-image: url("/devel/bcntb_static/branding/icons/button.svg"), 
                  url("/bcntb_static/branding/icons/button.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    color: #fff;
   font-family: 'futura-pt', 'Red Hat Text';
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s;
}
.bcnb-topnav__apply:hover {
    filter: brightness(0.88);
    color: #fff;
    text-decoration: none;
}
.bcnb-topnav__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    margin-left: auto;
}
.bcnb-topnav__mobile {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 0.75rem 2rem 1rem;
}
.bcnb-topnav__mobile.is-open { display: flex; }
.bcnb-topnav__mobile-link {
   font-family: 'futura-pt', 'Red Hat Text';
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.bcnb-topnav__mobile-link:last-child { border-bottom: none; }
.bcnb-topnav__mobile-apply { color: #FC2F96; font-weight: 700; }

/* ── Dropdown nav ────────────────────────────────────────────────── */
.bcnb-topnav__dropdown {
    position: relative;
}
.bcnb-topnav__dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: inherit;
}
.bcnb-topnav__toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.bcnb-topnav__dropdown-toggle:hover .bcnb-topnav__toggle-label,
.bcnb-topnav__link--active .bcnb-topnav__toggle-label {
    border-bottom-color: #FC2F96;
}
.bcnb-topnav__chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.bcnb-topnav__dropdown-toggle[aria-expanded="true"] .bcnb-topnav__chevron {
    transform: rotate(180deg);
}
.bcnb-topnav__dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #005C5D;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
    padding: 0.4rem 0;
    display: none;
    z-index: 200;
}
.bcnb-topnav__dropdown-toggle[aria-expanded="true"] ~ .bcnb-topnav__dropdown-menu {
    display: block;
}
.bcnb-topnav__dropdown-item {
    display: block;
    padding: 0.6rem 1.35rem;
   font-family: 'futura-pt', 'Red Hat Text';
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.bcnb-topnav__dropdown-item:hover,
.bcnb-topnav__dropdown-item:focus {
    background: #f0fafa;
    color: #005C5D;
    border-left-color: #FC2F96;
    text-decoration: underline;
    /* outline: none; */
}
.bcnb-topnav__dropdown-item--active {
    color: #005C5D;
    border-left-color: #FC2F96;
    font-weight: 700;
}
/* Two-level flyout group */
.bcnb-topnav__dropdown-group {
    position: relative;
}
.bcnb-topnav__dropdown-group-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1.35rem;
    background: none;
    border: none;
    border-left: 3px solid transparent;
   font-family: 'futura-pt', 'Red Hat Text';
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #005C5D;
    white-space: nowrap;
    cursor: default;
    transition: background 0.1s, border-color 0.1s;
}
.bcnb-topnav__dropdown-group:hover > .bcnb-topnav__dropdown-group-label {
    background: #f0fafa;
    border-left-color: #00CCCC;
}
.bcnb-topnav__dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 290px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #00CCCC;
    border-radius: 0 0 6px 6px;
    box-shadow: 6px 4px 24px rgba(0, 0, 0, 0.10);
    padding: 0.4rem 0;
    z-index: 300;
}
.bcnb-topnav__dropdown-group:hover > .bcnb-topnav__dropdown-submenu {
    display: block;
}
.bcnb-topnav__dropdown-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0.3rem 0;
}
/* Analytics Hub – button stretches to match its dropdown width */
.bcnb-topnav__dropdown--analytics {
    min-width: 240px;
}
.bcnb-topnav__dropdown--analytics > .bcnb-topnav__dropdown-toggle {
    width: 100%;
    justify-content: center;
}
.bcnb-topnav__dropdown--analytics > .bcnb-topnav__dropdown-menu {
    left: 0;
    transform: none;
    min-width: 100%;
}
/* Mobile dropdown */
.bcnb-topnav__mobile-group {
    display: flex;
    flex-direction: column;
}
.bcnb-topnav__mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
   font-family: 'futura-pt', 'Red Hat Text';
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.bcnb-topnav__mobile-subitems {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.bcnb-topnav__mobile-subitems.is-open {
    display: flex;
}
.bcnb-topnav__mobile-sublink {
   font-family: 'futura-pt', 'Red Hat Text';
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f5f5f5;
}
.bcnb-topnav__mobile-sublink:last-child { border-bottom: none; }
.bcnb-topnav__mobile-sublink:hover { color: #005C5D; text-decoration: none; }
.bcnb-topnav__mobile-section-label {
   font-family: 'futura-pt', 'Red Hat Text';
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #005C5D;
    padding: 0.5rem 0 0.1rem;
    display: block;
}

@media (max-width: 720px) {
    .bcnb-topnav__links,
    .bcnb-topnav__apply { display: none; }
    .bcnb-topnav__hamburger { display: block; }
}

/* ── Home page wrapper ───────────────────────────────────────────── */
.bcnb-home,
.bcnb-home * {font-family: 'futura-pt', 'Red Hat Text'; box-sizing: border-box; }

/* ── Hero ────────────────────────────────────────────────────────── */
.bcnb-hero {
    position: relative;
    overflow: hidden;
    background: #111;
    line-height: 0;
    height: 85vh;
}
.bcnb-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.bcnb-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, transparent 55%);
    pointer-events: none;
}
.bcnb-hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1240px;
    padding-left: 2rem;
    box-sizing: border-box;
    line-height: 1;
}
.bcnb-hero__title {
    font-weight: 600;
    font-size: 3.8rem;
    line-height: 0.92;
    color: var(--bcnb-core-pink);
    text-transform: uppercase;
    margin: 0 0 0.55rem;
    letter-spacing: -1.5px;
}
.bcnb-hero__powered {
    font-weight: 100;
    font-size: 1.05rem;
    color: var(--bcnb-core-pink);
    margin: 0 0 1.1rem;
    line-height: 1.4;
}
.bcnb-hero__powered a { color: var(--bcnb-core-pink); text-decoration: none; font-weight: 700; }
.bcnb-hero__powered a:hover { text-decoration: underline; }
.bcnb-hero__scroll-wrap {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1240px;
    padding-left: 2rem;
    box-sizing: border-box;
}
.bcnb-hero__scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.bcnb-hero__scroll:hover { opacity: 1; }

.bcnb-intro__scroll img {
    width: 40px;
    display: block;
    margin-left: auto;
}

/* ── Two-column intro ────────────────────────────────────────────── */
.bcnb-intro {
    background: #fff;
    padding: 3.5rem 3rem;
}
.bcnb-intro__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    align-items: flex-start;
}
.bcnb-intro__lead { flex: 0 0 30%; padding-right: 4rem; }
.bcnb-intro__lead-text {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--bcnb-core-pink);
    line-height: 1.5;
    margin: 0 0 2rem;
}
.bcnb-intro__body { flex: 1; border-left: 1px solid var(--bcnb-deep-teal); padding-left: 4rem; position: relative; }
.bcnb-intro__body p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.8;
    margin: 0 0 1rem;
}
.bcnb-intro__body a { color: var(--bcnb-deep-teal); font-weight: 700; text-decoration: none; }
.bcnb-intro__body a:hover { text-decoration: underline; }

/* ── Feature cards ───────────────────────────────────────────────── */
.bcnb-features {
    background: #fff;
    padding: 2rem 3rem;
}
.bcnb-features__inner { max-width: 1200px; margin: 0 auto; }
.bcnb-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.bcnb-card {
    background: var(--bcnb-card-bg);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 1.75rem 1.5rem 1.25rem;
    min-height: 260px;
    transition: box-shadow 0.2s;
}
.bcnb-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    text-decoration: none;
    color: inherit;
}
.bcnb-card__title {
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin: 0 0 0.9rem;
}
.bcnb-card--catalogue .bcnb-card__title { color: var(--bcnb-core-pink); }
.bcnb-card--samples   .bcnb-card__title { color: var(--bcnb-core-pink); }
.bcnb-card--analytics .bcnb-card__title { color: var(--bcnb-core-pink); }
.bcnb-card__desc {
    font-size: 0.875rem;
    color: var(--bcnb-deep-teal);
    line-height: 1.65;
    flex: 1;
    margin: 0;
}
.bcnb-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1.5rem;
}
.bcnb-card__icon img {
    width: 72px; height: 72px;
    object-fit: contain;
    opacity: 0.65;
}
.bcnb-card__arrow { transition: transform 0.2s; }
.bcnb-card__arrow img { display: block; transform: rotate(-90deg); }
.bcnb-card:hover .bcnb-card__arrow { transform: translateX(3px); }

/* ── Stats + Citations ───────────────────────────────────────────── */
.bcnb-lower {
    background: #fff;
    padding: 3.5rem 3rem;
}
.bcnb-lower__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    align-items: flex-start;
}
.bcnb-stats {
    flex: 0 0 28%;
    padding-right: 3rem;
}
.bcnb-stats__heading {
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--bcnb-deep-teal);
    margin: 0 0 1.5rem;
    letter-spacing: 0.03em;
}
.bcnb-stat { margin: 0 0 1.1rem; }
.bcnb-stat__number {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--bcnb-core-pink);
    margin: 0;
}
.bcnb-stat__label {
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bcnb-core-pink);
    margin: 0.2rem 0 0;
}
.bcnb-stats__more {
    display: inline-flex;
    text-decoration: none;
    margin-top: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.bcnb-stats__more:hover { opacity: 1; }
.bcnb-stats__more img { height: 40px; display: block; }
.bcnb-citations {
    flex: 1;
    border-left: 1px solid var(--bcnb-deep-teal);
    padding-left: 3rem;
}
.bcnb-citations__heading {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    margin: 0 0 0.9rem;
}
.bcnb-citations__text {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}
.bcnb-citations__text a { color: var(--bcnb-deep-teal); text-decoration: none; font-weight: 700; }
.bcnb-citations__text a:hover { text-decoration: underline; }

/* ── Footer CTA ──────────────────────────────────────────────────── */
.bcnb-footer-cta {
    background: var(--bcnb-bright-teal);
    padding: 3rem 3rem 2rem;
}
.bcnb-footer-cta__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}
.bcnb-footer-cta__text {
    font-weight: 700;
    font-size: 3.8rem;
    line-height: 1.0;
    text-transform: uppercase;
    color: var(--bcnb-deep-teal);
   font-family: 'futura-pt', 'Red Hat Text';
}
.bcnb-footer-cta__text span {
    display: block;
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}
.bcnb-footer-cta__text span a { color: #fff; text-decoration: none;font-family: 'futura-pt', 'Red Hat Text'; font-weight: 700; }
.bcnb-footer-cta__text span a:hover { opacity: 0.85; }
.bcnb-footer-cta__icon { opacity: 0.85; }

/* ── Footer links ────────────────────────────────────────────────── */
.bcnb-footer-links {
    background: var(--bcnb-bright-teal);
    padding: 2rem 3rem;
}
.bcnb-footer-links__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
}
.bcnb-footer-links__cols { display: flex; gap: 4rem; }
.bcnb-footer-links__col { flex: 0 0 auto; }
.bcnb-footer-links__heading {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--bcnb-deep-teal);
    margin: 0 0 0.75rem;
    letter-spacing: 0.05em;
   font-family: 'futura-pt', 'Red Hat Text';
}
.bcnb-footer-links__list { list-style: none; margin: 0; padding: 0; }
.bcnb-footer-links__list li { margin: 0 0 0.4rem; }
.bcnb-footer-links__list a {
    font-size: 0.85rem;
    color: var(--bcnb-deep-teal);
    text-decoration: none;
   font-family: 'futura-pt', 'Red Hat Text';
}
.bcnb-footer-links__list a:hover { color: #fff; text-decoration: underline; }
.bcnb-footer-links__funded {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.bcnb-footer-links__funded-label {
    font-size: 0.75rem;
    color: var(--bcnb-deep-teal);
    margin-bottom: 0.4rem;
    font-weight: 700;
   font-family: 'futura-pt', 'Red Hat Text';
}
.bcnb-footer-links__funded-img { height: 60px; display: block; }

/* ── Footer copyright ────────────────────────────────────────────── */
.bcnb-footer-copyright {
    background: var(--bcnb-bright-teal);
    padding: 1rem 3rem 1.5rem;
}
.bcnb-footer-copyright__inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.78rem;
    color: var(--bcnb-deep-teal);
   font-family: 'futura-pt', 'Red Hat Text';
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .bcnb-features__grid { grid-template-columns: 1fr; }
    .bcnb-lower__inner   { flex-direction: column; }
    .bcnb-citations      { border-left: none; padding-left: 0; border-top: 1px solid #ddd; padding-top: 2rem; }
    .bcnb-stats          { padding-right: 0; }
}
@media (max-width: 720px) {
    .bcnb-intro__inner { flex-direction: column; gap: 2rem; }
    .bcnb-intro, .bcnb-features, .bcnb-lower { padding-left: 1.5rem; padding-right: 1.5rem; }
    .bcnb-hero__title   { font-size: 3rem; letter-spacing: -0.5px; }
    .bcnb-hero__content { left: 1.5rem; }
    .bcnb-hero          { height: 60vh; }
    .bcnb-footer-cta    { padding: 2rem 1.5rem 1.5rem; }
    .bcnb-footer-cta__text { font-size: 2.4rem; }
    .bcnb-footer-cta__inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .bcnb-footer-links  { padding: 1.5rem; }
    .bcnb-footer-links__cols { flex-direction: column; gap: 1.5rem; }
}
