/*
Theme Name: Jure LLC
Author: mixtape marketing
Author URI: https://www.mixtapeagency.com
Description: Custom block theme built for Jure LLC
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jure-llc
Tags:
*/

html {
    scroll-behavior: smooth;
}

@media (max-width: 767px) {
    .jure--header--transparent .has-base-color {
        color: var(--wp--preset--color--contrast) !important;
    }
}

@media (min-width: 768px) {
    .jure--header--transparent > .wp-block-group {
        position: absolute !important;
        width: 100%;
    }
}

.wp-element-button {
    transition: all 0.3s;
}
.wp-block-button__link:hover {
    color: #fff !important;
    background-color: var(--wp--preset--color--contrast);
}
.wp-block-button__link.has-primary-color:hover {
    background-color: var(--wp--preset--color--primary);
}

.jure-list-h {
    --jure-list-spacing: 1em;
    --jure-list-spacing-lg: calc(var(--jure-list-spacing) * 2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--jure-list-spacing-lg);
    list-style-type: none;
    padding-left: 0;
}

.jure-list-h li + li::before {
    content: "\2022";
    display: inline-block;
    margin-right: var(--jure-list-spacing);
    margin-left: calc(var(--jure-list-spacing) * -1);
}

@media (min-width: 768px) {
    .jure-list-h.has-small-font-size {
        font-size: var(--wp--preset--font-size--medium) !important;
    }
}

.spurs::before,
.spurs::after {
    content: "";
    height: 1px;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--wp--preset--color--secondary));
}
.spurs::after {
    transform: rotate(180deg);
}

.jure--text--balance {
    text-wrap: balance;
}

.jure--list-style--none li {
    padding-left: 0;
    list-style-type: none;
}

/**
 * Testimonials Customizations
 */
.wp-block-query.is-style-carousel {
    position: relative;
}
.jure-slider-track,
.splide__track {
    padding-bottom: 2rem;
}
.jure-nav-arrows {
    display: flex;
    gap: 3px;
    position: absolute;
    top: calc(100% - 32px);
    right: 32px;
    border-radius: 0;
}

.jure-nav-arrows .jure-nav-arrow {
    position: relative;
    width: unset;
    height: unset;
    padding: 1em;
    background-color: var(--wp--preset--color--tertiary);
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--tertiary);
    opacity: 1;
}
.jure-nav-arrow.jure-nav-prev svg {
    transform: rotate(180deg);
}
.jure-nav-arrows .jure-nav-arrow:hover:not(:disabled) {
    background-color: var(--wp--preset--color--tertiary);
    border: 1px solid var(--wp--preset--color--quaternary);
    opacity: 1;
}
.wp-block-query .jure-slider-dots {
    bottom: 0;
    left: 0;
    right: unset;
    padding-left: 0;
}
.jure-slider-dots .jure-slider-dot {
    background-color: var(--wp--preset--color--quaternary);
}
.jure-slider-dots .jure-slider-dot.is-active {
    background-color: var(--wp--preset--color--primary);
}

/**
 * Query Tabs
 */

.jure-query-tabs-nav > .wp-block-post-template {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
    cursor: pointer;
}

@media (min-width: 768px) {
    .jure-query-tabs-nav > .wp-block-post-template {
        flex-direction: row;
        text-align: center;
    }
    .jure-query-tabs--nav-item {
        flex: 1;
    }
    .jure-query-tabs--nav-item.jure-query-tabs--title-long {
        flex: 1.5;
    }
}

.jure-query-tabs-nav > .wp-block-post-template > .wp-block-post {
    margin-top: unset;
}

.jure-query-tabs--items > * {
    display: none;
    margin-top: 0;
}

.block-editor .jure-query-tabs--items :nth-child(1 of .wp-block-post) {
    display: block !important;
}

.jure-query-tabs-content .jure-query-tabs--items .active {
    display: block !important;
}

.jure-query-tabs--items {
    text-wrap: balance;
}

.jure-query-tabs--nav-items .active :is(h2, h3, h4, h5, h6),
.jure-query-tabs--nav-item:hover :is(h2, h3, h4, h5, h6) {
    color: var(--wp--preset--color--primary) !important;
}

.timeline-svg {
    stroke: var(--wp--preset--color--quaternary);
    fill: var(--wp--preset--color--white);
}
.jure-query-tabs--nav-items .active .timeline-svg,
.jure-query-tabs--nav-item:hover .timeline-svg {
    stroke: var(--wp--preset--color--primary);
    fill: var(--wp--preset--color--primary);
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    max-width: unset !important;
    margin-top: 0 !important;
    z-index: -1;
}

.custom-category-list {
    padding-left: 1em;
}
.custom-category-list li::marker {
    color: var(--wp--preset--color--primary);
}

/* Ensure the block hides any overflowing parts of the scaled video */
.wp-block-cover:has(.wp-block-cover__video-background) {
    /* position: relative; */
    /* overflow: hidden !important; */
}

/* Force the wrapper and iframe to fill out the background like object-fit: cover */
.wp-block-cover:has(.wp-block-cover__video-background) iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Dictates a rigid 16:9 ratio (9 / 16 = 0.5625) */
    min-height: 100%;
    min-width: 177.78vh; /* Scale based on viewport height (16 / 9 = 1.7778) */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Stops the background video from blocking click events */
    object-fit: cover; /* Fallback for modern standard containers */
}

@media (max-width: 767px) {
    .jure-list-h {
        --jure-list-spacing: 0.5em;
    }
    .jure--breakpoint--small--text--med {
        font-size: var(--wp--preset--font-size--medium) !important;
    }
    .jure--breakpoint--small--text--lg {
        font-size: var(--wp--preset--font-size--large) !important;
    }
    .jure--breakpoint--small--text--x-lg {
        font-size: var(--wp--preset--font-size--x-large) !important;
    }
    .jure--breakpoint--small--text--xx-lg {
        font-size: var(--wp--preset--font-size--xx-large) !important;
    }
    .jure--breakpoint--small--text--center {
        text-align: center;
    }
    .jure--breakpoint--small--col {
        flex-direction: column;
    }
    .jure--breakpoint--small--col-reverse {
        flex-direction: column-reverse;
    }
    .jure--breakpoint--small--justify-center {
        justify-content: center;
    }
    .wp-block-cover:has(.wp-block-cover__video-background) {
        min-height: 45vh !important;
    }
    .jure--breakpoint--small--w-100 {
        flex-basis: 100% !important;
    }
    .jure--breakpoint--small--text-wrap--balance {
        text-wrap: balance;
    }
    .jure-query-tabs--nav-item {
        display: flex;
    }

    .jure-query-tabs--nav-item div:last-child {
        padding: 0 !important;
        flex: 1;
        align-items: flex-start;
        justify-content: center;
        text-wrap: balance;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #facts-bar {
        justify-content: space-around;
    }
    #facts-bar > * {
        flex-basis: 30%;
    }
}
