/* Extracted from index.php so the browser can cache it. */
:root {
            --av-green: #16a34a;
            --av-green-dark: #166534;
            --av-orange: #f97316;
            --av-ease: cubic-bezier(.22, 1, .36, 1);
        }

        /* ---------- Scroll progress bar ---------- */
        .av-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000; pointer-events: none; }
        .av-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
            background: linear-gradient(90deg, var(--av-green), var(--av-orange)); }

        /* ---------- Scroll reveal (only hides when JS is running) ---------- */
        .av-js [data-reveal] {
            opacity: 0;
            transform: translate3d(0, 34px, 0);
            transition: opacity .9s var(--av-ease), transform .9s var(--av-ease);
            transition-delay: var(--d, 0ms);
            will-change: opacity, transform;
        }
        .av-js [data-reveal="left"]  { transform: translate3d(-44px, 0, 0); }
        .av-js [data-reveal="right"] { transform: translate3d(44px, 0, 0); }
        .av-js [data-reveal="zoom"]  { transform: scale(.88); }
        .av-js [data-reveal].is-in   { opacity: 1; transform: none; }

        /* ---------- Hero ---------- */
        .av-hero { position: relative; overflow: hidden; }
        .av-hero .container { z-index: 1; }
        .av-orbs span {
            position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none;
            animation: avDrift 18s ease-in-out infinite alternate;
        }
        .av-orbs span:nth-child(1) { width: 380px; height: 380px; background: #bbf7d0; top: -120px; left: -100px; }
        .av-orbs span:nth-child(2) { width: 300px; height: 300px; background: #fed7aa; bottom: -120px; right: 8%; animation-duration: 22s; }
        .av-orbs span:nth-child(3) { width: 220px; height: 220px; background: #dcfce7; top: 35%; left: 45%; animation-duration: 26s; }
        @keyframes avDrift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, 30px) scale(1.12); } }

        /* Title: words rise in one after another */
        .av-js [data-split-words] av-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
        .av-js [data-split-words] av-wi {
            display: inline-block; transform: translateY(110%); opacity: 0;
            transition: transform .9s var(--av-ease), opacity .9s var(--av-ease);
            transition-delay: var(--d, 0ms);
        }
        .av-js [data-split-words].is-in av-wi { transform: none; opacity: 1; }

        /* Highlighted words: soft moving green-orange shine */
        .av-gradient-text,
        .av-gradient-text av-wi {
            background: linear-gradient(90deg, var(--av-green) 0%, var(--av-orange) 45%, var(--av-green) 90%);
            background-size: 250% 100%;
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent; color: transparent;
            animation: avShine 6s linear infinite;
        }
        @keyframes avShine { to { background-position: -250% 0; } }

        .av-badge-glow { animation: avGlow 2.8s ease-in-out infinite; }
        @keyframes avGlow {
            0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
            50%      { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
        }
        .av-spin-slow { display: inline-block; animation: avSpin 12s linear infinite; }
        @keyframes avSpin { to { transform: rotate(360deg); } }

        .av-hero-card { transition: box-shadow .5s var(--av-ease); }
        .av-hero-card:hover { box-shadow: 0 30px 60px rgba(22, 101, 52, .22) !important; }
        .av-kenburns img { animation: avKen 16s ease-in-out infinite alternate; transform-origin: 60% 40%; }
        @keyframes avKen { from { transform: scale(1); } to { transform: scale(1.12); } }

        .av-stat { transition: transform .4s var(--av-ease); }
        .av-stat:hover { transform: translateY(-4px); }

        /* ---------- Section headings ---------- */
        .av-title-bar {
            display: block; width: 64px; height: 4px; margin: -6px auto 18px; border-radius: 4px;
            background: linear-gradient(90deg, var(--av-green), var(--av-orange));
            transform: scaleX(0); transition: transform 1s var(--av-ease) .35s;
        }
        .av-head.is-in .av-title-bar, html:not(.av-js) .av-title-bar { transform: scaleX(1); }

        /* ---------- Cards ---------- */
        .av-card {
            position: relative; overflow: hidden;
            transition: transform .5s var(--av-ease), box-shadow .5s var(--av-ease), border-color .5s var(--av-ease);
        }
        .av-card::before {
            content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; z-index: 3;
            background: linear-gradient(90deg, var(--av-green), var(--av-orange));
            transform: scaleX(0); transform-origin: left; transition: transform .6s var(--av-ease);
        }
        .av-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(22, 101, 52, .16); border-color: rgba(22, 163, 74, .35); }
        .av-card:hover::before { transform: scaleX(1); }

        .av-zoom img { transition: transform 1.1s var(--av-ease), filter .6s var(--av-ease); }
        .av-card:hover .av-zoom img { transform: scale(1.08); filter: saturate(1.08); }
        .av-zoom::after {
            content: ""; position: absolute; inset: 0; pointer-events: none;
            background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .28));
            opacity: 0; transition: opacity .5s var(--av-ease);
        }
        .av-card:hover .av-zoom::after { opacity: 1; }
        .av-chip { z-index: 2; transition: transform .45s var(--av-ease); }
        .av-card:hover .av-chip { transform: translateY(2px) scale(1.05); }
        .av-card-title { transition: color .35s ease; }
        .av-card:hover .av-card-title { color: var(--av-green); }

        /* Why-choose icons */
        .av-icon {
            width: 76px; height: 76px; margin-left: auto; margin-right: auto; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; font-size: 2rem;
            background: rgba(22, 163, 74, .1); position: relative;
            transition: transform .6s var(--av-ease), background .5s ease, box-shadow .5s ease;
        }
        .av-icon-orange { background: rgba(249, 115, 22, .12); }
        .av-icon::after {
            content: ""; position: absolute; inset: -6px; border-radius: 50%;
            border: 2px dashed rgba(22, 163, 74, .35); opacity: 0; transition: opacity .5s ease;
            animation: avSpin 10s linear infinite;
        }
        .av-icon-orange::after { border-color: rgba(249, 115, 22, .4); }
        .av-why:hover .av-icon { transform: translateY(-4px) rotate(-8deg) scale(1.08); box-shadow: 0 12px 26px rgba(22, 163, 74, .2); }
        .av-why:hover .av-icon::after { opacity: 1; }
        .av-js [data-reveal] .av-icon { transform: scale(.6); }
        .av-js [data-reveal].is-in .av-icon { transform: scale(1); transition-delay: calc(var(--d, 0ms) + 250ms); }
        .av-js [data-reveal].is-in .av-why:hover .av-icon { transform: translateY(-4px) rotate(-8deg) scale(1.08); transition-delay: 0ms; }

        /* Testimonials */
        .av-quote { position: absolute; top: 18px; right: 20px; font-size: 2.4rem; color: rgba(22, 163, 74, .12);
            transition: transform .6s var(--av-ease), color .5s ease; }
        .av-testimonial:hover .av-quote { transform: rotate(-10deg) scale(1.15); color: rgba(249, 115, 22, .25); }
        .av-js [data-reveal] .av-stars i { display: inline-block; opacity: 0; transform: scale(.3); }
        .av-js [data-reveal].is-in .av-stars i { animation: avPop .55s var(--av-ease) forwards; animation-delay: calc(var(--d, 0ms) + 350ms + var(--i) * 90ms); }
        @keyframes avPop { 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
        .av-avatar { transition: transform .5s var(--av-ease); }
        .av-testimonial:hover .av-avatar { transform: scale(1.08); }

        /* ---------- Buttons ---------- */
        .av-btn { position: relative; overflow: hidden; isolation: isolate;
            transition: transform .35s var(--av-ease), box-shadow .35s var(--av-ease), background-color .3s, color .3s; }
        .av-btn::after {
            content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: 1; pointer-events: none;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
            transform: skewX(-20deg);
        }
        .av-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, .14); }
        .av-btn:hover::after { animation: avSweep .9s var(--av-ease); }
        .av-btn:active { transform: translateY(-1px); }
        @keyframes avSweep { to { left: 130%; } }
        .av-arrow { transition: transform .35s var(--av-ease); }
        .av-btn:hover .av-arrow { transform: translateX(5px); }
        .av-btn:hover .av-cart { animation: avWiggle .6s ease; }
        @keyframes avWiggle { 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }

        /* ---------- FAQ ---------- */
        .av-faq .accordion-item {
            border-left: 3px solid transparent; transition: border-color .4s ease, box-shadow .4s ease, transform .4s var(--av-ease);
        }
        .av-faq .accordion-item:hover { transform: translateX(4px); box-shadow: 0 10px 24px rgba(22, 101, 52, .08); }
        .av-faq .accordion-item:has(.accordion-button:not(.collapsed)) { border-left-color: var(--av-orange); }
        .av-faq .accordion-button::after { transition: transform .45s var(--av-ease); }

        /* ---------- Phones: shorter moves ---------- */
        @media (max-width: 767.98px) {
            .av-js [data-reveal="left"], .av-js [data-reveal="right"] { transform: translate3d(0, 28px, 0); }
            .av-card:hover { transform: translateY(-4px); }
            .av-orbs span { filter: blur(45px); }
        }

        /* ---------- People who prefer less motion ---------- */
        @media (prefers-reduced-motion: reduce) {
            .av-js [data-reveal], .av-js [data-split-words] av-wi { opacity: 1 !important; transform: none !important; transition: none !important; }
            .av-orbs span, .av-kenburns img, .av-badge-glow, .av-spin-slow, .av-gradient-text, .av-gradient-text av-wi, .av-icon::after { animation: none !important; }
            .av-js [data-reveal] .av-stars i { opacity: 1; transform: none; animation: none !important; }
            .av-card, .av-btn, .av-zoom img { transition: none !important; }
            .av-progress { display: none; }
        }
