/* ─────────────────────────────────────────────
   Build Smart Brands — Global Stylesheet
   Design tokens, reset, layout utilities,
   and shared components (buttons, hero shell).
   Block-specific styles live in blocks/acf-blocks/<name>/style.css
───────────────────────────────────────────── */

/* ── Design Tokens ── */
:root {
    --bsb-font-primary:  'Montserrat', sans-serif;
    --bsb-font-display:  'Syncopate', sans-serif;
    --bsb-color-bg:      #ffffff;
    --bsb-color-text:    #0d0d0d;
    --bsb-color-black:   #000000;
    --bsb-cyan:          #65fce3;
    --bsb-pink:          #FFD3FF;
    --bsb-ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin:     0;
    padding:    0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
    font-family:             var(--bsb-font-primary);
    background-color:        var(--bsb-color-bg);
    color:                   var(--bsb-color-text);
    overflow-x:              hidden;
    -webkit-font-smoothing:  antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    max-width: 100%;
    display:   block;
}

a {
    color:           inherit;
    text-decoration: none;
}

/* ── Layout Container ── */
.bsb-container {
    width:         100%;
    max-width:     1400px;
    margin-left:   auto;
    margin-right:  auto;
    padding-left:  20px;
    padding-right: 20px;
    position:      relative;
}

/* ── Buttons ── */
.btn-outline {
    display:         inline-flex;
    align-items:     center;
    gap:             0.75rem;
    padding:         1rem 2rem;
    border:          1.5px solid var(--bsb-color-text);
    border-radius:   50px;
    font-family:     var(--bsb-font-primary);
    font-size:       0.9rem;
    font-weight:     600;
    color:           var(--bsb-color-text);
    text-decoration: none;
    text-transform:  uppercase;
    letter-spacing:  0.05em;
    background:      transparent;
    cursor:          pointer;
    transition:      background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    position:        relative;
    overflow:        hidden;
}

.btn-outline svg {
    width:      20px;
    height:     20px;
    flex-shrink: 0;
    transition:  transform 0.3s ease;
}

.btn-outline:hover {
    background:   var(--bsb-pink);
    border-color: var(--bsb-pink);
}

.btn-outline:hover svg {
    transform: translateX(4px);
}

/* Light variant — for dark section backgrounds */
.btn-outline--light {
    color:        #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline--light:hover {
    background:   var(--bsb-pink);
    border-color: var(--bsb-pink);
    color:        var(--bsb-color-text);
}

/* ── Hero Shell (shared by all hero blocks) ── */
.bsb-hero-wrapper,
.bsb-inner-hero-wrapper {
    position: relative;
    height:   100dvh;
    width:    100vw;
    display:  flex;
    align-items: center;
    z-index:  1;
}

.bsb-inner-hero-wrapper {
    overflow: hidden;
}

@keyframes bsb-inner-hero-reveal {
    from { opacity: 0; transform: scale(1.05); }
    to   { opacity: 1; transform: scale(1);    }
}

.bsb-inner-hero-wrapper .bsb-hero-image-overlay {
    animation: bsb-inner-hero-reveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

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

.bsb-hero-overlay {
    position:   absolute;
    top: 0; left: 0;
    width:      100%;
    height:     100%;
    background: var(--bsb-color-black);
    opacity:    0.2;
    z-index:    2;
}

.bsb-hero-image-overlay {
    position:           absolute;
    top: 0; left: 0;
    width:              100%;
    height:             100%;
    background-size:    cover;
    background-position: top center;
    mix-blend-mode:     darken;
    z-index:            3;
    pointer-events:     none;
}

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

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

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

.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:          currentColor;
    text-shadow:    0 0 3px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
}

/* Each line wraps text for the slide-up reveal */
.bsb-title-line {
    overflow: hidden;
    display:  block;
}

.bsb-title-line-inner {
    display:   inline-block;
    transform: translateY(110%); /* JS animates to 0 */
}

.bsb-hero-content p {
    font-family: var(--bsb-font-primary);
    font-size:   clamp(0.88rem, 1.1vw, 1.375rem);
    line-height: 1.8;
    color:       currentColor;
    margin:      1.75rem 0 0;
    font-weight: 400;
    max-width:   660px;
}

/* Scroll indicator */
.bsb-scroll-indicator {
    position:       absolute;
    top:            calc(100% + 5rem);
    left:           50%;
    transform:      translateX(-50%);
    display:        flex;
    flex-direction: column;
    align-items:    center;
    opacity:        0.9;
    cursor:         pointer;
    z-index:        10;
}

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

.bsb-arrow-down-icon {
    width:  54px;
    height: auto;
    filter: brightness(0) invert(1);
}

.bsb-scroll-indicator:hover .bsb-arrow-down-icon {
    animation: bsb-bounce 1s infinite ease-in-out;
}

@keyframes bsb-bounce {
    0%, 100% { transform: translateY(0);  }
    50%       { transform: translateY(8px); }
}

/* ── Reveal animation helper ── */
/* Initial hidden state; JS drives clip-path + y to their revealed values */
.bsb-reveal-block {
    will-change: clip-path, transform;
}

/* ── Section spacing ── */
.bsb-section {
    padding-top:    8rem;
    padding-bottom: 8rem;
}

.bsb-section--sm {
    padding-top:    4rem;
    padding-bottom: 4rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bsb-hero-content {
        padding-left: 0;
        text-align:   center;
    }
}

@media (max-width: 768px) {
    .bsb-hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .bsb-hero-image-overlay {
        background-position: top right -70vw;
    }

    .bsb-section {
        padding-top:    4rem;
        padding-bottom: 4rem;
    }
}
