/* ==========================================================
 * Reusable post blocks (patterns in /patterns)
 * Loaded on single posts and inside the block editor.
 * Fallbacks on the variables so it also looks right in the editor,
 * where navlive-base.css isn't loaded.
 * ======================================================== */

/* BOOK A DEMO CTA  (patterns/book-demo-cta.php) */
.demo-cta {
    background-image: url(../images/blog-footer.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
    margin-block: 3rem;
}

.demo-cta::before {
    content: "";
    display: block;
    width: 8.5rem;
    max-width: 100%;
    aspect-ratio: 404 / 61;
    margin: 0 auto 1.5rem;
    background: url(../images/logo/navlive-white.svg) center / contain no-repeat;
}

.demo-cta h2 {
    color: #fff;
    text-align: center;
    margin-top: 0;
    font-weight: 700 !important;
    font-size: clamp(1.75rem, 5vw, 2.05rem);
}

.demo-cta p {
    font-size: var(--fs-main, 1.25rem) !important;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

.demo-cta .wp-block-buttons {
    justify-content: center;
    margin-top: 1.5rem;
}

/* Reset the blog's .tl .book-navlive-demo styles on the button wrapper */
.demo-cta .book-navlive-demo {
    background-color: unset;
    border: none;
    margin-top: 0;
}

.demo-cta .wp-block-button__link {
    background-color: var(--black, rgba(3,21,48));
    color: #fff;
    padding: 1rem;
    border-radius: 100vw;
    text-align: center;
    text-decoration: none;
    border: none;  /* kill the blog's .tl-content-main a highlight underline */
    transition: background-color 0.2s ease-in-out;
}

.demo-cta .wp-block-button__link:hover {
    background-color: var(--black-08, rgba(3,21,48,0.8));
    border: none;
}

/* Font Awesome Light arrow-right (fa-light fa-arrow-right) */
.demo-cta .wp-block-button__link::after {
    content: "\f061";
    font-family: "Font Awesome 7 Pro";
    font-weight: 300;
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.demo-cta .wp-block-button__link:hover::after {
    transform: translateX(0.25rem);
}
