/*
Theme Name:   moneyGauge Child Theme
Theme URI:    https://flexlinetheme.com/
Author:       Web4SL
Author URI:   https://websitesforseniorliving.com
Description:  A child theme for the Flexline theme. Generated by FlexLine Theme Extractor.
Template:     flexline
Version:      1.0.0
Text Domain:  moneygauge
*/

/* Custom CSS can go below this line. */
header.site-header.headroom--pinned.headroom--not-top {
    /* Set custom background color for sticky nav.
    background-color: #00000053;
    */
    backdrop-filter: blur(10px) saturate(70%);
    -webkit-backdrop-filter: blur(10px) saturate(70%);
}
header.site-header.headroom--pinned.headroom--not-top > div #header_container{
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
header.site-header.headroom--pinned.headroom--not-top .wp-block-site-logo img {
    max-height: 36px !important;
}

#home-toggle-group .wp-block-button.toggle-active a{
    background-color: var(--wp--preset--color--secondary) !important;
    overflow: hidden;
    box-shadow: var(--wp--preset--shadow--diffused) !important;
}
#roi-tabbed-content .wp-block-button.toggle-active a{
    color: var(--wp--preset--color--secondary) !important;
    font-weight: bold !important;
}
#roi-tabbed-content .wp-block-button a::before{
    display: none !important;
}

strong{
    font-weight: 800 !important;
}

/* Subtle reusable hover growth utility for blocks/cards/buttons. */
.grow-on-hover {
    transform-origin: center center;
    transition: transform 220ms ease, box-shadow 220ms ease;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .grow-on-hover:hover,
    .grow-on-hover:focus-within,
    .grow-on-hover:focus-visible {
        transform: translateY(-2px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .grow-on-hover {
        transition: none;
    }

    .grow-on-hover:hover,
    .grow-on-hover:focus-within,
    .grow-on-hover:focus-visible {
        transform: none;
    }
}

/* Gauge icon animation (supports both class spellings). */
.gauge-animation,
.gauge-annimation {
    --gauge-size: 130px;
    --gauge-start-rotation: -120deg;
    --gauge-end-rotation: 58deg;
    --gauge-bounce-overshoot: 3deg;
    --gauge-bounce-undershoot: -1.5deg;
    --gauge-pivot-x: 50%;
    --gauge-pivot-y: 57.4%;

    position: relative;
    display: grid;
    gap: 0;
    place-items: center;
    width: var(--gauge-size);
    height: var(--gauge-size);
    inline-size: var(--gauge-size);
    block-size: var(--gauge-size);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
}

.gauge-animation.is-layout-flex,
.gauge-annimation.is-layout-flex {
    display: grid !important;
}

.gauge-annimation .gauge-back,
.gauge-annimation .gauge-pointer,
.gauge-animation .gauge-back,
.gauge-animation .gauge-pointer {
    grid-area: 1 / 1;
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    inline-size: 100%;
    block-size: 100%;
}

.gauge-animation .gauge-back,
.gauge-annimation .gauge-back {
    z-index: 1;
}

.gauge-annimation .gauge-pointer,
.gauge-animation .gauge-pointer {
    z-index: 2;
    transform-origin: var(--gauge-pivot-x) var(--gauge-pivot-y);
    transform: rotate(var(--gauge-start-rotation));
    will-change: transform;
}

.gauge-annimation .gauge-pointer.is-at-max,
.gauge-animation .gauge-pointer.is-at-max {
    animation: gauge-pointer-idle-bounce 1.05s ease-in-out infinite;
}

.gauge-annimation .gauge-back img,
.gauge-annimation .gauge-pointer img,
.gauge-animation .gauge-back img,
.gauge-animation .gauge-pointer img {
    display: block;
    width: 100%;
    height: 100%;
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
}

.gauge-annimation .wp-block-image,
.gauge-animation .wp-block-image {
    max-width: none;
}

@keyframes gauge-pointer-idle-bounce {
    0% {
        transform: rotate(var(--gauge-end-rotation));
    }
    33% {
        transform: rotate(calc(var(--gauge-end-rotation) + var(--gauge-bounce-overshoot)));
    }
    66% {
        transform: rotate(calc(var(--gauge-end-rotation) + var(--gauge-bounce-undershoot)));
    }
    100% {
        transform: rotate(var(--gauge-end-rotation));
    }
}

@media (prefers-reduced-motion: reduce) {
    .gauge-annimation .gauge-pointer,
    .gauge-animation .gauge-pointer {
        animation: none;
    }

    .gauge-annimation .gauge-pointer.is-at-max,
    .gauge-animation .gauge-pointer.is-at-max {
        transform: rotate(var(--gauge-end-rotation));
    }
}
