/* WP-Friendly Reset & Variables */
:root {
    --bsb-font-primary: 'Montserrat', sans-serif;
    --bsb-font-display: 'Syncopate', sans-serif;
    --bsb-color-bg: #ffffff;
    --bsb-color-text: #0d0d0d;
    --bsb-color-menu: #65fce3;
    --bsb-color-menu: #FFD3FF;
    --bsb-color-menu-text: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.bsb-body {
    margin: 0;
    padding: 0;
    font-family: var(--bsb-font-primary);
    background-color: var(--bsb-color-bg);
    color: var(--bsb-color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Alignment Container - Clean 1400px Max Width with 20px padding entirely consistent */
.bsb-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    /* Structural anchor for children */
}

/* Header */
.bsb-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    pointer-events: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

@media (min-width: 1600px) {
    .header-container {
        padding-left: 10rem;
        padding-right: 10rem;
    }

    .bsb-left-sidebar {
        left: calc(10rem + 25px) !important;
    }
}

.bsb-header-logo {
    pointer-events: auto;
    width: 80px;
    /* Constrained explicitly to 80px */
}

.bsb-header-logo img {
    width: 100%;
    height: auto;
}

.bsb-menu-toggle,
.bsb-menu-close {
    pointer-events: auto;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.bsb-menu-toggle {
    z-index: 1001;
}

.bsb-menu-icon {
    width: 35px;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Off-Canvas Menu completely covers header properly upon slide-in to fix layering bleed */
.bsb-offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: 50%;
    height: 100vh;
    background-color: #000000;
    z-index: 2000;
    /* Force fully over header logic unconditionally */
    display: flex;
    align-items: center;
    transform: translateX(100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    visibility: hidden;
}

.bsb-menu-close {
    position: absolute;
    top: 3.5rem;
    left: 4rem;
    z-index: 2001;
}

/* Reduced size accurately */
.bsb-close-icon {
    width: 26px;
    /* Matched to design scale strictly smaller */
    filter: brightness(0) invert(1);
    transition: transform 0.3s cubic-bezier(0.87, 0, 0.13, 1);
}

.bsb-menu-close:hover .bsb-close-icon {
    transform: scale(1.15) rotate(90deg);
}

.bsb-menu-inner {
    padding-left: 7rem;
    width: 100%;
}

.bsb-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bsb-menu-item {
    overflow: hidden;
}

.bsb-menu-link {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--bsb-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    transform: translateY(100%);
    transition: color 0.3s ease;
}

.bsb-menu-link::after {
    content: '';
    position: absolute;
    top: calc(50% - 4px);
    left: -10px;
    width: calc(100% + 10px);
    height: 2px;
    background-color: var(--bsb-color-menu);
    transform: scaleX(0) translateY(50%);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.bsb-menu-link:hover::after {
    transform: scaleX(1) translateY(50%);
}

/* Hero Section */
.bsb-hero-wrapper {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 10;
}

.bsb-hero-video-container {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bsb-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.bsb-hero-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.bsb-hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/hero-overlay-image.png');
    background-size: cover;
    background-position: top center;
    opacity: 1;
    mix-blend-mode: darken;
    /* Explicit darken blend mode */
    z-index: 3;
    pointer-events: none;
}

/* Left Sidebar - Fixed global presence for brand continuity */
.bsb-left-sidebar {
    position: fixed;
    /* left: calc(50% - 700px + 25px); */
    left: 40px;
    /* Aligned with the 1400px container grid */
    top: 0;
    height: 100vh;
    /* Viewport height for fixed positioning */
    width: 30px;
    z-index: 50;
    /* Above sections, below header overlays if any */
    pointer-events: none;
}

@media (max-width: 1440px) {
    .bsb-left-sidebar {
        left: 25px;
    }
}

.bsb-sidebar-text {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    pointer-events: auto;
    font-family: var(--bsb-font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
    white-space: nowrap;
    opacity: 0.95;
    color: #ffffff;
    transition: color 0.4s ease;
}

.bsb-social-icons {
    position: absolute;
    bottom: 4rem;
    /* Pinned near the bottom to match design snapshot */
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.bsb-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bsb-social-icons a:hover {
    opacity: 1;
    transform: scale(1.15) translateY(-2px);
}

.bsb-social-icons img {
    /* Scale gracefully within perfect explicitly boxed container */
    max-width: 100%;
    max-height: 100%;
    height: auto;
    filter: brightness(0) invert(1) !important;
    transition: filter 0.4s ease;
}

.bsb-hero-content {
    position: relative;
    width: 100%;
    text-align: left;
    padding-left: 100px;
}

.bsb-hero-title {
    font-family: var(--bsb-font-display);
    font-size: clamp(2rem, 4.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
    text-shadow: 0px 4px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
}

.bsb-title-line {
    overflow: hidden;
    position: relative;
    display: block;
}

.bsb-title-line-inner {
    display: inline-block;
    transform: translateY(110%);
}

.bsb-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.9;
    z-index: 10;
}

.bsb-scroll-indicator p {
    font-family: var(--bsb-font-primary);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    margin-bottom: 0.5rem;
    font-weight: 700;
    opacity: 0.7;
    color: white;
}

.bsb-arrow-down-icon {
    width: 24px;
    height: auto;
    filter: brightness(0) invert(1);
    animation: bounceSubtle 2s infinite ease-in-out;
}

@keyframes bounceSubtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bsb-left-sidebar {
        display: none;
    }

    .bsb-hero-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .bsb-offcanvas-menu {
        width: 100vw;
        max-width: 100vw;
    }

    .bsb-menu-inner {
        padding-left: 3rem;
    }

    .bsb-menu-link {
        font-size: 1.2rem;
    }

    .bsb-hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

/* Dynamic Header States (Logo and Toggle) */
.bsb-header.is-light .bsb-header-logo img,
.bsb-header.is-light .bsb-menu-icon {
    filter: brightness(0) invert(1);
    /* Force White */
}

.bsb-header.is-dark .bsb-header-logo img,
.bsb-header.is-dark .bsb-menu-icon {
    filter: brightness(0);
    /* Force Black/Dark */
}