/*
 * BlueCoat French Bulldogs — Header stylesheet
 * Theme: blue-coat-french-bulldog-theme
 * ------------------------------------------------------------------
 * Sticky header, desktop nav, dropdowns, mega dropdown, hamburger and the premium mobile sidebar. Loaded on EVERY page.
 */

/* ============================================================
   HEADER
   ============================================================ */
.bc-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 20px 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bc-header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.bc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 10001;
}

.bc-logo-mark {
    width: 46px;
    height: 46px;
    background: #1B73B8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bc-logo-mark svg {
    width: 24px;
    height: 24px;
}

.bc-logo:hover .bc-logo-mark {
    transform: rotate(-10deg) scale(1.05);
    background: #1e80cc;
}

.bc-logo-type {
    display: flex;
    flex-direction: column;
}

.bc-logo-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: 1px;
}

.bc-header.scrolled .bc-logo-name {
    color: #0a0a0a;
}

.bc-logo-tagline {
    font-size: 0.6rem;
    color: #1B73B8;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 3px;
}

.bc-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bc-nav-item {
    position: relative;
}

.bc-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.bc-header.scrolled .bc-nav-link {
    color: #444;
}

.bc-header.scrolled .bc-nav-link:hover {
    color: #1B73B8;
    background: rgba(27, 115, 184, 0.04);
}

.bc-nav-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.bc-nav-item:hover .bc-nav-link svg {
    transform: rotate(180deg);
}

.bc-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.bc-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 300px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.bc-nav-item:hover .bc-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #0a0a0a;
    transition: all 0.3s ease;
}

.bc-dropdown-item:hover {
    background: #f5f7fa;
}

.bc-dropdown-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(27, 115, 184, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bc-dropdown-icon svg {
    width: 20px;
    height: 20px;
    color: #1B73B8;
}

.bc-dropdown-item:hover .bc-dropdown-icon {
    background: rgba(27, 115, 184, 0.12);
    transform: scale(1.05);
}

.bc-dropdown-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #0a0a0a;
}

.bc-dropdown-info p {
    font-size: 0.73rem;
    color: #999;
}

.bc-dropdown-sep {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 4px 8px;
}

.bc-mega-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 680px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.bc-nav-item:hover .bc-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bc-mega-title {
    grid-column: 1 / -1;
    font-size: 0.68rem;
    font-weight: 700;
    color: #1B73B8;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0 16px 10px;
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.bc-hamburger {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    background: transparent;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.bc-header.scrolled .bc-hamburger {
    border-color: rgba(0, 0, 0, 0.1);
}

.bc-hamburger:hover {
    border-color: #1B73B8;
    background: rgba(27, 115, 184, 0.04);
}

.bc-hamburger-lines {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bc-hamburger-lines span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

.bc-header.scrolled .bc-hamburger-lines span {
    background: #0a0a0a;
}

.bc-hamburger-lines span:nth-child(1) {
    width: 100%;
}

.bc-hamburger-lines span:nth-child(2) {
    width: 60%;
    margin-left: auto;
}

.bc-hamburger-lines span:nth-child(3) {
    width: 80%;
}

.bc-hamburger.active .bc-hamburger-lines span {
    background: #0a0a0a;
}

.bc-hamburger.active .bc-hamburger-lines span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    width: 100%;
}

.bc-hamburger.active .bc-hamburger-lines span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.bc-hamburger.active .bc-hamburger-lines span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 100%;
}

.bc-hamburger.active {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(27, 115, 184, 0.04);
}


/* ============================================================
   MOBILE SIDEBAR
   ============================================================ */
.bc-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.bc-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bc-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 10003;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 80px rgba(0, 0, 0, 0.15);
}

.bc-sidebar.active {
    transform: translateX(0);
}

/* Sidebar Header */
.bc-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.bc-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.bc-sidebar-logo-mark {
    width: 40px;
    height: 40px;
    background: #1B73B8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-sidebar-logo-mark svg {
    width: 20px;
    height: 20px;
}

.bc-sidebar-logo-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: 0.5px;
}

.bc-sidebar-logo-sub {
    font-size: 0.55rem;
    color: #1B73B8;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 1px;
}

.bc-sidebar-close {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bc-sidebar-close svg {
    width: 20px;
    height: 20px;
    color: #666;
    transition: color 0.3s;
}

.bc-sidebar-close:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
}

.bc-sidebar-close:hover svg {
    color: #ef4444;
}

/* Sidebar Body */
.bc-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.bc-sidebar-body::-webkit-scrollbar {
    display: none;
}

.bc-sidebar-nav-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #bbb;
    padding: 10px 30px 10px;
}

.bc-sidebar-nav {
    list-style: none;
    padding: 0 14px;
}

.bc-sidebar-nav-item {
    margin-bottom: 2px;
}

.bc-sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #0a0a0a;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.bc-sidebar-nav-link:hover {
    background: rgba(27, 115, 184, 0.04);
    color: #1B73B8;
}

.bc-sidebar-nav-link.active {
    background: rgba(27, 115, 184, 0.06);
    color: #1B73B8;
}

.bc-sidebar-nav-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(27, 115, 184, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bc-sidebar-nav-icon svg {
    width: 18px;
    height: 18px;
    color: #1B73B8;
}

.bc-sidebar-nav-link:hover .bc-sidebar-nav-icon {
    background: rgba(27, 115, 184, 0.12);
    transform: scale(1.05);
}

.bc-sidebar-nav-link.active .bc-sidebar-nav-icon {
    background: #1B73B8;
}

.bc-sidebar-nav-link.active .bc-sidebar-nav-icon svg {
    color: #fff;
}

.bc-sidebar-nav-text {
    display: flex;
    flex-direction: column;
}

.bc-sidebar-nav-text span:first-child {
    font-size: 0.95rem;
}

.bc-sidebar-nav-text span:last-child {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 400;
    margin-top: 1px;
}

.bc-sidebar-nav-badge {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 60px;
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    letter-spacing: 0.5px;
}

.bc-sidebar-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 16px 30px;
}

/* Sidebar Contact Card */
.bc-sidebar-contact {
    margin: 10px 14px;
    padding: 24px 20px;
    background: #f5f7fa;
    border-radius: 18px;
}

.bc-sidebar-contact-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 16px;
}

.bc-sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #0a0a0a;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.bc-sidebar-contact-item:last-child {
    margin-bottom: 0;
}

.bc-sidebar-contact-item:hover {
    color: #1B73B8;
}

.bc-sidebar-contact-item svg {
    width: 16px;
    height: 16px;
    color: #1B73B8;
    flex-shrink: 0;
}

/* Sidebar Footer */
.bc-sidebar-footer {
    padding: 24px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.bc-sidebar-cta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #1B73B8;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(27, 115, 184, 0.25);
}

.bc-sidebar-cta svg {
    width: 16px;
    height: 16px;
}

.bc-sidebar-cta:hover {
    background: #1e80cc;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(27, 115, 184, 0.35);
}

.bc-sidebar-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.bc-sidebar-social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bc-sidebar-social-link svg {
    width: 16px;
    height: 16px;
    color: #888;
}

.bc-sidebar-social-link:hover {
    background: #1B73B8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 115, 184, 0.2);
}

.bc-sidebar-social-link:hover svg {
    color: #fff;
}

.bc-sidebar-copy {
    text-align: center;
    margin-top: 16px;
    font-size: 0.68rem;
    color: #ccc;
    letter-spacing: 0.5px;
}

/* Sidebar link stagger animation */
.bc-sidebar.active .bc-sidebar-nav-item {
    animation: bc-slide-in 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
    transform: translateX(30px);
}

.bc-sidebar.active .bc-sidebar-nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.bc-sidebar.active .bc-sidebar-nav-item:nth-child(2) {
    animation-delay: 0.15s;
}

.bc-sidebar.active .bc-sidebar-nav-item:nth-child(3) {
    animation-delay: 0.2s;
}

.bc-sidebar.active .bc-sidebar-nav-item:nth-child(4) {
    animation-delay: 0.25s;
}

.bc-sidebar.active .bc-sidebar-nav-item:nth-child(5) {
    animation-delay: 0.3s;
}

.bc-sidebar.active .bc-sidebar-nav-item:nth-child(6) {
    animation-delay: 0.35s;
}

.bc-sidebar.active .bc-sidebar-nav-item:nth-child(7) {
    animation-delay: 0.4s;
}

@keyframes bc-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Body lock when sidebar open */
body.sidebar-open {
    overflow: hidden;
}

/* ============================================================
   HEADER RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .bc-nav {
        display: none;
    }

    .bc-mobile-toggle {
        display: flex;
    }

    .bc-hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .bc-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================================
   WORDPRESS + ACCESSIBILITY ADDITIONS
   (kept at the end so the original design above stays untouched)
   ============================================================ */

/* Touch devices: first tap opens the dropdown (see assets/js/header.js). */
.bc-nav-item.bc-open .bc-dropdown,
.bc-nav-item.bc-open .bc-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bc-nav-item.bc-open .bc-nav-link svg {
    transform: rotate(180deg);
}

/* Keyboard focus opens the dropdowns too. */
.bc-nav-item:focus-within .bc-dropdown,
.bc-nav-item:focus-within .bc-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Current section / current page highlight. */
.bc-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.bc-header.scrolled .bc-nav-link.active {
    color: #1B73B8;
    background: rgba(27, 115, 184, 0.07);
}

/* WordPress admin bar offset. */
body.admin-bar .bc-header {
    top: 32px;
}

body.admin-bar .bc-sidebar {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .bc-header {
        top: 46px;
    }

    body.admin-bar .bc-sidebar {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* Skip link (accessibility). */
.bc-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 14px 24px;
    background: #1B73B8;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 0 0 12px 0;
    text-decoration: none;
}

.bc-skip-link:focus {
    left: 0;
}

/* Visible focus ring for keyboard users. */
.bc-nav-link:focus-visible,
.bc-sidebar-nav-link:focus-visible,
.bc-hamburger:focus-visible,
.bc-btn:focus-visible {
    outline: 2px solid #1B73B8;
    outline-offset: 3px;
}
