/* ==========================================================================
   Norizon Ecommerce — custom overrides + motion
   Load this AFTER the template stylesheet.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Rules moved out of inline <style> blocks in index.php
   -------------------------------------------------------------------------- */
.wpr-banner-area .banner-content-area .section-title .text {
    letter-spacing: 0 !important;
}

.wpr-brand-area .brand-wrapper img {
    height: 128px;
    width: auto;
    object-fit: contain;
}


/* --------------------------------------------------------------------------
   2. Visual parity for corrected heading tags
   (h2/h3 swapped to p/div where the element was never a real heading)
   -------------------------------------------------------------------------- */
.wpr-about-area .about-bottom-content .left-area li .text p.title,
.wpr-project-area .feature-project .bottom li p.h5,
.wpr-testimonials-area .author-area p.h6 {
    margin: 0;
}

.accordion-one .accordion-header {
    margin: 0;
}


/* --------------------------------------------------------------------------
   3. H1 now reads "We BUILD AMAZON BRANDS" — rebalance the two halves
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .wpr-banner-area .section-title .right-area .text {
        font-size: 0.86em;
    }
}


/* --------------------------------------------------------------------------
   4. Welcome animation — logo flies in, then lands in the banner logo slot
   -------------------------------------------------------------------------- */
#nz-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #030712;
    transition: background-color 0.55s ease, opacity 0.35s ease;
}

#nz-intro[hidden] {
    display: none;
}

#nz-intro.is-clearing {
    background-color: transparent;
}

#nz-intro.is-done {
    opacity: 0;
    pointer-events: none;
}

#nz-intro-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

/* Lock scroll and hide the destination logo while the intro is running */
body.nz-intro-active {
    overflow: hidden;
}

body.nz-intro-active .wpr-banner-area .mid-icon .inner img {
    visibility: hidden;
}


/* --------------------------------------------------------------------------
   5. Scroll companion — logo badge with a scroll-progress ring
   -------------------------------------------------------------------------- */
#nz-scroll-logo {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 64px;
    height: 64px;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px) scale(0.7);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1);
    pointer-events: none;
}

#nz-scroll-logo.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

#nz-scroll-logo .nz-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

#nz-scroll-logo .nz-ring circle {
    fill: none;
    stroke-width: 2;
}

#nz-scroll-logo .nz-ring .nz-ring-track {
    stroke: rgba(249, 250, 251, 0.18);
}

#nz-scroll-logo .nz-ring .nz-ring-bar {
    stroke: #98ff03;
    stroke-linecap: round;
}

#nz-scroll-logo img {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    will-change: transform;
}

#nz-scroll-logo:focus-visible {
    outline: 2px solid #98ff03;
    outline-offset: 4px;
    border-radius: 50%;
}

@media (max-width: 575px) {
    #nz-scroll-logo {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    #nz-scroll-logo img {
        width: 36px;
        height: 36px;
    }
}


/* --------------------------------------------------------------------------
   6. Accessibility floor
   -------------------------------------------------------------------------- */
.nz-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #98ff03;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    #nz-intro,
    #nz-intro-logo {
        transition: none !important;
        animation: none !important;
    }

    #nz-scroll-logo {
        transition: opacity 0.2s ease;
        transform: none;
    }

    #nz-scroll-logo img {
        transform: none !important;
    }
}
