/* ===============================================
   BBN SCHOOL - Shared Header, Footer & Scroll Borders
   Used across all WordPress pages via child theme
   =============================================== */

:root {
    --bbn-navy: #0a1628;
    --bbn-blue: #1a3a5c;
    --bbn-gold: #b8977e;
    --bbn-gold-light: #d4b896;
    --bbn-text-dark: #1a1a1a;
    --bbn-text-medium: #555;
    --bbn-text-light: #777;
    --bbn-border-subtle: rgba(0,0,0,0.06);
}

/* ===============================================
   SCROLL BORDER EFFECT
   =============================================== */

.scroll-border {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scroll-border.visible {
    opacity: 1;
}

.scroll-border-left {
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--bbn-gold), var(--bbn-blue));
}

.scroll-border-right {
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--bbn-gold), var(--bbn-blue));
}

.scroll-border-bottom {
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(to right, var(--bbn-blue), var(--bbn-gold), var(--bbn-blue));
}

/* ===============================================
   NAVIGATION
   =============================================== */

.bbn-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9990;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.bbn-navbar.scrolled {
    box-shadow: 0 1px 30px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--bbn-border-subtle);
}

.bbn-nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2.5rem;
}

.bbn-logo-container {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.bbn-logo-img {
    height: 46px;
    width: auto;
}

.bbn-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--bbn-navy);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.bbn-logo-text:hover {
    color: var(--bbn-navy);
    text-decoration: none;
}

.bbn-logo-divider {
    width: 1px;
    height: 28px;
    background: var(--bbn-border-subtle);
    margin: 0 0.3rem;
}

.bbn-logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--bbn-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.bbn-nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.bbn-nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbn-nav-menu a {
    text-decoration: none;
    color: var(--bbn-text-medium);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

.bbn-nav-menu a:hover {
    color: var(--bbn-navy);
    text-decoration: none;
}

.bbn-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--bbn-gold);
    transition: width 0.3s ease;
}

.bbn-nav-menu a:hover::after {
    width: 100%;
}

.bbn-cta-buttons {
    display: flex;
    gap: 0.75rem;
}

.bbn-btn {
    padding: 0.65rem 1.6rem;
    border-radius: 3px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.4;
}

.bbn-btn:hover {
    text-decoration: none;
}

.bbn-btn-primary {
    background: var(--bbn-navy);
    color: white !important;
    border: 1.5px solid var(--bbn-navy);
}

.bbn-btn-primary:hover {
    background: var(--bbn-blue);
    border-color: var(--bbn-blue);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(10,22,40,0.25);
}

.bbn-btn-outline {
    background: transparent;
    color: var(--bbn-navy) !important;
    border: 1.5px solid var(--bbn-navy);
}

.bbn-btn-outline:hover {
    background: var(--bbn-navy);
    color: white !important;
}

.bbn-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.bbn-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--bbn-navy);
    transition: all 0.3s ease;
    display: block;
}

.bbn-navbar-spacer {
    height: 72px;
}

/* ===============================================
   FOOTER
   =============================================== */

.bbn-footer {
    background: #0d1b2a;
    color: white;
    padding: 5rem 2rem 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.bbn-footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.bbn-footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bbn-footer-logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.bbn-footer-logo-section p {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

.bbn-footer-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--bbn-gold-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bbn-footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbn-footer-section ul li {
    margin-bottom: 0.65rem;
}

.bbn-footer-section a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.bbn-footer-section a:hover {
    color: white;
    text-decoration: none;
}

.bbn-footer-bottom {
    max-width: 1100px;
    margin: 3.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    font-weight: 300;
}

.bbn-footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.3);
}

.bbn-footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.bbn-footer-bottom-links a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.bbn-footer-bottom-links a:hover {
    color: rgba(255,255,255,0.7);
}

/* ===============================================
   HIDE DEFAULT HELLO ELEMENTOR HEADER/FOOTER
   =============================================== */

#site-header.site-header,
#site-footer.site-footer,
.site-header.dynamic-header,
.site-footer.dynamic-footer {
    display: none !important;
}

/* ===============================================
   WORDPRESS CONTENT AREA REFINEMENTS
   =============================================== */

.site-content {
    min-height: 50vh;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
    .bbn-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 1px solid var(--bbn-border-subtle);
    }

    .bbn-nav-menu.active {
        display: flex;
    }

    .bbn-cta-buttons {
        display: none;
    }

    .bbn-menu-toggle {
        display: flex;
    }

    .bbn-logo-divider,
    .bbn-logo-tagline {
        display: none;
    }

    .bbn-navbar-spacer {
        height: 64px;
    }

    .bbn-footer-content {
        grid-template-columns: 1fr;
    }

    .bbn-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
