/*
Theme Name: Behavior & Heatmap theme
Author: WPMissionControl
Description: A modern Full Site Editing theme with glassmorphism buttons and custom colors.
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: behavior-heatmap-theme
Tags: full-site-editing, block-patterns, custom-colors, glassmorphism
*/
html,
body {
    min-height: 100%;
}

body {
    margin-bottom: 0;
}

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.wp-site-blocks > main,
.wp-site-blocks > .site-main {
    flex: 1 0 auto;
}

.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:last-child {
    flex-shrink: 0;
    margin-block-start: 50px;
    margin-block-end: 0;
}

.wp-site-blocks > footer.wp-block-template-part > :last-child,
.wp-site-blocks > .wp-block-template-part:last-child > :last-child {
    margin-block-end: 0;
}

.wp-block-navigation-item__content {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: white !important;
    background-color: rgb(175, 150, 247);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    line-height: 1.4;
    min-width: 100px;
    white-space: nowrap;
}

.wp-block-navigation-item__content:hover {
    background-color: #fba724;
}

:root {
    --wpmc-header-story-height: 100px;
    --wpmc-header-bg: #fff;
    --wpmc-header-divider-color: rgba(31, 31, 31, 0.08);
    --wpmc-header-mobile-bottom-gap: 16px;
    --wpmc-header-sticky-top: 0px;
    --wpmc-header-z-index: 49;
    --wpmc-heading-top-space: clamp(1rem, 3vw, 3rem);
}

.wpmc-spb-root--header {
    display: flex;
    flex-direction: column;
    height: var(--wpmc-header-story-height);
    justify-content: center;
    max-height: var(--wpmc-header-story-height);
    min-height: 0 !important;
    overflow: hidden;
}

.wpmc-spb-root--header > .wpmc-spb-scene {
    flex: 0 0 auto;
    width: 100%;
}

.site-header:has(.wpmc-spb-root--header),
.wp-site-blocks > header:has(.wpmc-spb-root--header),
.wp-block-template-part:has(.wpmc-spb-root--header) {
    background: var(--wpmc-header-bg);
    height: var(--wpmc-header-story-height);
    min-height: var(--wpmc-header-story-height);
    position: sticky;
    top: var(--wpmc-header-sticky-top);
    width: 100%;
    z-index: var(--wpmc-header-z-index);
}

header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:first-child {
    background: var(--wpmc-header-bg);
    position: sticky;
    top: var(--wpmc-header-sticky-top);
    width: 100%;
    z-index: var(--wpmc-header-z-index);
}

body.admin-bar {
    --wpmc-header-sticky-top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --wpmc-header-sticky-top: 46px;
    }
}

body.wpmc-bg-layer-active .wp-site-blocks > header.wp-block-template-part:has(.wpmc-spb-root--header),
body.wpmc-bg-layer-active .wp-site-blocks > .wp-block-template-part:first-child:has(.wpmc-spb-root--header) {
    background: var(--wpmc-header-bg);
    position: sticky;
    top: var(--wpmc-header-sticky-top);
    z-index: var(--wpmc-header-z-index);
}

.site-header:has(.wpmc-spb-root--header)::after,
.wp-site-blocks > header:has(.wpmc-spb-root--header)::after,
.wp-block-template-part:has(.wpmc-spb-root--header)::after,
header.wp-block-template-part::after,
.wp-site-blocks > .wp-block-template-part:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 1px;
    background: var(--wpmc-header-divider-color);
    pointer-events: none;
}

body h1,
body h2,
body h4,
body h1.wp-block-post-title,
body h1.entry-title,
body h2.wp-block-heading,
body h4.wp-block-heading,
body.single .wp-block-post-title,
body.page .wp-block-post-title {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    --wpmc-orange-deep: #f05a18;
    --wpmc-orange: #ff7a1f;
    --wpmc-pink: #f75f95;
    color: #ff7a1f !important;
    background: linear-gradient(90deg, var(--wpmc-orange-deep) 0%, var(--wpmc-orange) 42%, var(--wpmc-pink) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow-wrap: normal !important;
    text-wrap: balance;
    word-break: normal !important;
    hyphens: none;
}

body h1,
body h1.wp-block-post-title,
body h1.entry-title,
body.single .wp-block-post-title,
body.page .wp-block-post-title {
    --wpmc-heading-base-size: 2.5rem;
    font-size: var(--wpmc-heading-base-size) !important;
    margin-top: var(--wpmc-heading-top-space);
    margin-bottom: 1.35rem;
}

body h2,
body h2.wp-block-heading {
    --wpmc-heading-base-size: 1.875rem;
    font-size: var(--wpmc-heading-base-size) !important;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

body h4,
body h4.wp-block-heading {
    --wpmc-heading-base-size: 0.875rem;
    background: none;
    color: #ffb13d !important;
    font-size: var(--wpmc-heading-base-size) !important;
    -webkit-text-fill-color: currentColor;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

body h4 a,
body h4.wp-block-heading a {
    color: inherit;
    font-family: inherit !important;
    -webkit-text-fill-color: currentColor;
}

body h2::before,
body h2.wp-block-heading::before {
    content: none !important;
    display: none !important;
}

body h2::after,
body h2.wp-block-heading::after {
    content: none !important;
    display: none !important;
}

body h1::before,
body h1::after,
body h1.wp-block-post-title::before,
body h1.wp-block-post-title::after,
body h1.entry-title::before,
body h1.entry-title::after,
body.single .wp-block-post-title::before,
body.single .wp-block-post-title::after,
body.page .wp-block-post-title::before,
body.page .wp-block-post-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 10px;
    background: linear-gradient(
        90deg,
        var(--wpmc-orange-deep),
        var(--wpmc-orange),
        var(--wpmc-pink)
    );
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10' viewBox='0 0 28 10'%3E%3Cpath d='M0 5 Q7 -1 14 5 T28 5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left center / 28px 10px repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10' viewBox='0 0 28 10'%3E%3Cpath d='M0 5 Q7 -1 14 5 T28 5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left center / 28px 10px repeat-x;
}

body h1::before,
body h1.wp-block-post-title::before,
body h1.entry-title::before,
body.single .wp-block-post-title::before,
body.page .wp-block-post-title::before {
    content: none !important;
    display: none !important;
}

body h1::after,
body h1.wp-block-post-title::after,
body h1.entry-title::after,
body.single .wp-block-post-title::after,
body.page .wp-block-post-title::after {
    content: none !important;
    display: none !important;
}

body h1 a,
body h1.wp-block-post-title a,
body h1.entry-title a,
body.single .wp-block-post-title a,
body.page .wp-block-post-title a {
    color: inherit;
    -webkit-text-fill-color: inherit;
    text-decoration-color: rgba(247, 95, 149, 0.35);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

body.home h1,
body.home h1.wp-block-post-title,
body.home h1.entry-title,
body.home main h1,
body.home main.site-main h1:first-of-type,
body.front-page h1,
body.front-page h1.wp-block-post-title,
body.front-page h1.entry-title,
body.front-page main h1,
body.front-page main.site-main h1:first-of-type {
    --wpmc-heading-base-size: 0.95rem;
    background: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    color: #6f7280 !important;
    font-family: var(--wp--preset--font-family--system-font);
    font-size: var(--wpmc-heading-base-size) !important;
    font-weight: 600;
    height: 1px !important;
    inline-size: 1px !important;
    letter-spacing: 0;
    line-height: 1.35;
    left: 0;
    margin: -1px !important;
    max-width: 1px;
    opacity: 0;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none;
    position: absolute !important;
    top: 0;
    transform: none;
    text-transform: none;
    white-space: nowrap;
    width: 1px !important;
    z-index: 0;
    -webkit-text-fill-color: currentColor;
}

body.home h1 .wpmc-hero-letter img,
body.home h1.wp-block-post-title .wpmc-hero-letter img,
body.home h1.entry-title .wpmc-hero-letter img,
body.home main h1 .wpmc-hero-letter img,
body.home main.site-main h1:first-of-type .wpmc-hero-letter img,
body.front-page h1 .wpmc-hero-letter img,
body.front-page h1.wp-block-post-title .wpmc-hero-letter img,
body.front-page h1.entry-title .wpmc-hero-letter img,
body.front-page main h1 .wpmc-hero-letter img,
body.front-page main.site-main h1:first-of-type .wpmc-hero-letter img {
    filter: grayscale(1) contrast(1.04);
}

@media (min-width: 641px) and (max-width: 1024px) {
    body h1,
    body h1.wp-block-post-title,
    body h1.entry-title,
    body.single .wp-block-post-title,
    body.page .wp-block-post-title {
        margin-top: var(--wpmc-heading-top-space);
    }
}

.wpmc-heading-word {
    display: inline;
    white-space: nowrap;
}

.wpmc-hero-letter {
    display: inline-block;
    height: 1em;
    margin: 0 0.03em;
    min-width: 0.82em;
    overflow: visible;
    position: relative;
    transform: translateY(calc(var(--wpmc-letter-lift, 0em) * -1));
    transform-origin: center;
    vertical-align: -0.05em;
}

.wpmc-letter-text {
    color: transparent;
    display: inline-block;
    user-select: text;
    -webkit-text-fill-color: transparent;
}

.wpmc-hero-letter img {
    display: block;
    height: 1.42em;
    left: 50%;
    max-width: 1.55em;
    object-fit: contain;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    width: auto;
}

@media (max-width: 640px) {
    :root {
        --wpmc-header-story-height: 86px;
    }

    .site-header:has(.wpmc-spb-root--header),
    .wp-site-blocks > header:has(.wpmc-spb-root--header),
    .wp-block-template-part:has(.wpmc-spb-root--header),
    header.wp-block-template-part,
    .wp-site-blocks > .wp-block-template-part:first-child {
        margin-block-end: var(--wpmc-header-mobile-bottom-gap);
    }

    body h1,
    body h1.wp-block-post-title,
    body h1.entry-title,
    body.single .wp-block-post-title,
    body.page .wp-block-post-title {
        --wpmc-heading-base-size: 1.39rem;
        margin-top: var(--wpmc-heading-top-space);
        margin-bottom: 1rem;
    }

    body h2,
    body h2.wp-block-heading {
        --wpmc-heading-base-size: 1.09rem;
        margin-top: 1.15rem;
    }

    body h4,
    body h4.wp-block-heading {
        --wpmc-heading-base-size: 0.68rem;
        margin-top: 1rem;
    }
}
