/* ============================================================
   BANNER
   Split out of style.css — see functions.php for the enqueue.
   ============================================================ */

/* Miami Banner Video: mp4 background */
.banner-wrap.banner-wrap--video {
    position: relative;
    overflow: hidden;
}

.banner-wrap.banner-wrap--video:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 15, 7, 0.5);
    z-index: 1;
}

.banner-wrap .banner-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 0;
}

.banner-wrap.banner-wrap--video .content {
    z-index: 1;
}

/* Mobile only (Figma "Hero", node 298:2339): the video is a normal
   248px-tall block sitting between the title and the button, not a
   full-bleed background behind everything like on tablet/desktop.
   .content is flattened via display:contents so its children (title,
   button, ...) become direct flex items of .banner-wrap alongside the
   video, letting `order` interleave them without touching the shared PHP
   markup or the tablet/desktop layout. */
@media (max-width: 767px) {
    .banner-wrap.banner-wrap--video {
        display: flex;
        flex-direction: column;
        min-height: auto;
        /* 96px, not Figma's 32px: the site header is position:fixed at
           ~62px tall and this content used to sit safely below it only
           because of the old top:50%-centered layout — normal flow now
           starts right at this box's own top edge, so it needs enough
           clearance (62px header + Figma's 32px gap) to not run under it. */
        padding: 96px 20px 64px;
        background-color: #2e1d11;
    }

    .banner-wrap.banner-wrap--video:before {
        content: none;
    }

    .banner-wrap.banner-wrap--video .banner-video-bg {
        position: static;
        transform: none;
        width: unset;
        max-width: unset;
        height: 248px;
        min-width: 0;
        min-height: 0;
        object-fit: cover;
        order: 3;
        margin: 0 -20px;
    }

    .banner-wrap.banner-wrap--video .content {
        display: contents;
    }

    .banner-wrap.banner-wrap--video .content .subtitle {
        order: 1;
    }

    .banner-wrap.banner-wrap--video .content .title {
        order: 2;
        margin: 0 0 32px;
    }

    .banner-wrap.banner-wrap--video .content .text {
        order: 4;
    }

    .banner-wrap.banner-wrap--video .content .gradient-btn {
        order: 5;
        margin-top: 24px;
    }

    .banner-wrap.banner-wrap--video .content .all_events {
        order: 6;
    }
}

/* Gradient button: gold-foil pill style (Figma: Hostess, node 181:3622).
   Selector is doubled (.gradient-btn.gradient-btn) to bump specificity to
   (0,2,0) — needed because this class is also applied to native form
   controls (e.g. <input type="submit">), and the parent theme's global
   `input[type="submit"] { background-color:#d85b1f; ... }` reset has
   specificity (0,1,1), which otherwise beats a plain single-class rule and
   silently overrides the background/color/padding/text-transform here. */
.gradient-btn.gradient-btn {
    font-family: 'Murs Gothic';
    display: inline-flex;
    align-items: center;
    min-width: 0;
    height: 46px;
    padding: 0 60px 0 16px;
    box-sizing: border-box;
    border: none;
    border-radius: 999px;
    background-color: #0b090c;
    background-image: url('../img/gradient-btn-bg.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #0b090c;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.5px;
    text-transform: none;
}

.gradient-btn.gradient-btn:focus {
    outline: none;
    color: #0b090c;
}

.gradient-btn.gradient-btn:hover {
    border: none;
    background-color: #0b090c;
    background-image: url('../img/gradient-btn-bg.jpg');
    color: #0b090c;
}

.gradient-btn .border-with-grad {
    display: none;
}

.gradient-btn .text-label {
    position: static;
    top: 0;
    padding: 2px 0 0px;
    line-height: 46px;
}

.gradient-btn .fa {
    top: 6px;
    background-color: #4a2f22 !important;
}

.gradient-btn .fa:before {
    color: #efe6dd;
}

.gradient-btn:before {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* "All events" link under the gradient button (Figma: Hostess, node 181:3629/181:3630) */
.banner-wrap .content .all_events {
    display: block;
    margin-top: 16px;
    font-family: 'Murs Gothic';
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--cream, #efe6dd);
    text-align: center;
    text-decoration: none;
    opacity: 1;
    width: fit-content;
    margin: 20px auto;
}

.banner-wrap .content .all_events:hover {
    opacity: 0.7;
}

/* Banner title (Figma: Hostess, nodes 181:3619 / 292:1122 / 298:2351).
   font-family/font-weight are set explicitly here because the parent
   theme's own base .banner-wrap .content .title rule sets
   font-family:"Raleway" / font-weight:900, which this doesn't otherwise
   override — every other heading on the site uses the Murs Gothic display
   face (var(--font-display)), matching Figma's Murs_Gothic:Wide_Dark. */
.banner-wrap .content .title {
    font-family: var(--font-display);
    font-weight: 800;
    font-feature-settings: "dlig" 1;
    color: #efe6dd;
    letter-spacing: -2px;
    text-transform: uppercase;
    font-size: 58px;
    line-height: 1.1;
    max-width: 1058px;
}

@media (max-width: 991px) {
    .banner-wrap .content .title {
        font-size: 52px;
        line-height: 1.1;
        letter-spacing: -2px;
    }
}

@media (max-width: 767px) {
    .banner-wrap .content .title {
        font-size: 25px;
        line-height: 1.15;
        letter-spacing: -0.5px;
    }
}

.banner-wrap .content {
    padding: 0 20px;
}