/* Front-page-only Spectra heading fixes. */

.uagb-ifb-title-wrap,
.uagb-ifb-title-wrap h1,
.uagb-ifb-title-wrap h2,
.uagb-ifb-title-wrap h3 {
    font-size: clamp(32px, 4vw, 72px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.uagb-block-52180088 .uagb-heading-text {
    font-size: 64px !important;
    line-height: 1.15 !important;
}

@media (max-width: 1024px) {
    .uagb-block-52180088 .uagb-heading-text {
        font-size: 48px !important;
    }
}

@media (max-width: 767px) {
    .uagb-block-52180088 .uagb-heading-text {
        font-size: 34px !important;
        line-height: 1.2 !important;
    }
}

/* Homepage hero continuity after leaving Astra. */
body.home .entry-content {
    background: #f7f4ea;
}

body.home .wp-block-uagb-container.uagb-block-0d23f057 {
    position: relative;
    isolation: isolate;
}

body.home .wp-block-uagb-container.uagb-block-0d23f057::before {
    background: var(--ast-global-color-7, #141004) !important;
}

body.home .wp-block-uagb-container.uagb-block-0d23f057 > .uagb-container-inner-blocks-wrap {
    position: relative;
    z-index: 1;
}

/* Keep the homepage hero content aligned with the global site container. */
body.home .wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-0d23f057
  > .uagb-container-inner-blocks-wrap {
    --inner-content-custom-width: min(100%, var(--sv-container-width)) !important;
    max-width: var(--inner-content-custom-width) !important;
}

/* Counter labels belong below their numbers at every breakpoint. */
body.home .cool-counter-wrapper {
    align-items: flex-start !important;
}

body.home .cool-counter-item {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    min-width: 180px !important;
}

body.home .cool-counter-number,
body.home .cool-counter-label {
    display: block;
    width: 100%;
    text-align: center;
}

@media (max-width: 767px) {
    body.home .cool-counter-item {
        min-width: 138px !important;
    }
}

/* Refreshed homepage hero message hierarchy. */
body.home .uagb-block-52180088 .sv-home-hero-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: #f2b23b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.home .uagb-block-52180088 .uagb-heading-text {
    max-width: 980px;
    text-wrap: balance;
}

body.home .uagb-block-52180088 .uagb-desc-text {
    max-width: 820px;
    margin-top: 18px;
    font-weight: 500;
    line-height: 1.55;
}

body.home .sv-home-hero-price-note {
    margin-top: 12px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

@media (max-width: 767px) {
    body.home .uagb-block-52180088 .sv-home-hero-eyebrow {
        margin-bottom: 9px;
        font-size: 11px;
        letter-spacing: .13em;
    }

    body.home .uagb-block-52180088 .uagb-desc-text {
        margin-top: 14px;
        line-height: 1.5;
    }

    body.home .sv-home-hero-price-note {
        margin-top: 10px;
        font-size: 13px;
    }
}


/* Tighter vertical breathing room around the refreshed hero copy. */
@media (min-width: 977px) {
    body.home .wp-block-uagb-container.uagb-block-0d23f057 {
        padding-top: 172px !important;
        padding-bottom: 96px !important;
    }
}

@media (min-width: 768px) and (max-width: 976px) {
    body.home .wp-block-uagb-container.uagb-block-0d23f057 {
        padding-top: 132px !important;
        padding-bottom: 66px !important;
    }
}

@media (max-width: 767px) {
    body.home .wp-block-uagb-container.uagb-block-0d23f057 {
        padding-top: 84px !important;
        padding-bottom: 48px !important;
    }
}

/* A tactile, smooth press reaction for the main hero CTA. */
body.home a.sv-home-hero-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(255, 106, 0, .27);
    transition:
        transform .16s cubic-bezier(.2, .8, .2, 1),
        box-shadow .16s ease,
        filter .16s ease !important;
    -webkit-tap-highlight-color: transparent;
}

body.home a.sv-home-hero-cta::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: -1;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .34s ease, opacity .34s ease;
    pointer-events: none;
}

body.home a.sv-home-hero-cta:hover,
body.home a.sv-home-hero-cta:focus-visible {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 106, 0, .32);
}

body.home a.sv-home-hero-cta:active {
    color: #fff !important;
    transform: translateY(2px) scale(.975);
    box-shadow: 0 4px 10px rgba(255, 106, 0, .22), inset 0 2px 4px rgba(0, 0, 0, .12);
    filter: brightness(.94);
}

body.home a.sv-home-hero-cta:active::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(15);
    transition-duration: .12s;
}

@media (prefers-reduced-motion: reduce) {
    body.home a.sv-home-hero-cta,
    body.home a.sv-home-hero-cta::after {
        transition: none !important;
    }
}
