/* bp-event-landing — landing-base.css
 * Cross-template chrome: smooth scroll, hub-header tokens, video modal,
 * body reset. Per-template tokens live in event-types/<key>/base.css.
 */

html { scroll-behavior: smooth; }

body.bp-event-landing {
    margin: 0;
    padding: 0;
}
body.bp-event-landing.bp-modal-open {
    overflow: hidden;
}

/* Header = the hub's (templates/hub/c-vision/partials/header.php + assets/css/hub/c-vision/header.css).
   Its tokens normally come from hub base.css, which is not loaded here. */
:root { --hub-bg: #0D0D0D; --hub-container: 1296px; --hub-gutter: 24px; }
body.bp-event-landing.admin-bar .bp-hub-header { top: 32px; }
@media (max-width: 782px) { body.bp-event-landing.admin-bar .bp-hub-header { top: 46px; } }
html.bp-nav-open { overflow: hidden; }
body.bp-event-landing [id] { scroll-margin-top: 90px; }
/* 5 nav items + CTA (hub has 3): tighter spacing so the desktop row fits (design header-hero.jpg). */
@media (min-width: 1200px) {
    body.bp-event-landing .bp-hub-nav { gap: 26px; }
    body.bp-event-landing .bp-hub-nav a { font-size: 1.125rem; white-space: nowrap; }
    body.bp-event-landing .bp-hub-nav .bp-hub-nav-cta { margin-left: 0; }
}

/* === Reveal-on-scroll — generic pattern. Toggled by initSectionReveal() in landing.js. === */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 100ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 200ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 300ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === Video modal === */
.bp-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-video-modal[hidden] { display: none; }

.bp-video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.bp-video-modal-frame {
    position: relative;
    width: 90%;
    max-width: 1180px;
    aspect-ratio: 16 / 9;
}

.bp-video-modal-iframe-wrap {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.bp-video-modal-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.bp-video-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
}
.bp-video-modal-close:hover { color: #E01C24; }

/* Section base */
.bp-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.bp-section-placeholder,
.bp-hero-placeholder {
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.15);
    margin: 1rem 2rem;
    border-radius: 8px;
    font-style: italic;
}
