@import 'default-style.css';

@import 'dashboard-style.css';





/* ---------------- */


.tab-active span {
    display: block !important;
}

/* Apply the shared minimal organic visual language to public page sections. */
main>section {
    position: relative;
    isolation: isolate;
}

main>section>.container {
    position: relative;
    z-index: 2;
}

/* Use restrained alternating ambient color so long pages remain calm and consistent. */
main>section:nth-of-type(4n + 1):not(#home-hero):not(#customer-stories):not(.vaghta-organic-surface)::before,
main>section:nth-of-type(4n + 3):not(#home-hero):not(#customer-stories):not(.vaghta-organic-surface)::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: .62;
}

main>section:nth-of-type(4n + 1):not(#home-hero):not(#customer-stories):not(.vaghta-organic-surface)::before {
    background:
        radial-gradient(circle at 6% 18%, rgba(191, 232, 223, .32), transparent 22%),
        radial-gradient(circle at 96% 78%, rgba(254, 227, 178, .24), transparent 20%);
}

main>section:nth-of-type(4n + 3):not(#home-hero):not(#customer-stories):not(.vaghta-organic-surface)::before {
    background:
        radial-gradient(circle at 94% 82%, rgba(254, 227, 178, .3), transparent 24%),
        radial-gradient(circle at 4% 25%, rgba(191, 232, 223, .24), transparent 19%);
}

/* Use one balanced botanical system across every visible homepage section. */
body.home main>section.vaghta-has-botanical::after,
body.front-page main>section.vaghta-has-botanical::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background-image:
        url("img/decor-botanical-teal.svg"),
        url("img/decor-botanical-warm.svg"),
        url("img/decor-botanical-teal.svg"),
        url("img/decor-botanical-warm.svg");
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: left 24% top 12%, right 28% bottom 15%, left 58% bottom 8%, right 70% top 45%;
    background-size: 108px auto, 138px auto, 58px auto, 72px auto;
    opacity: .173;
}

/* Shift the accents per section so the long page does not feel patterned. */
body.home main>section.vaghta-has-botanical:nth-of-type(4n + 2)::after,
body.front-page main>section.vaghta-has-botanical:nth-of-type(4n + 2)::after {
    background-position: left 36% top 38%, right 54% bottom 32%, left 68% bottom 4%, right 23% top 8%;
}

body.home main>section.vaghta-has-botanical:nth-of-type(4n + 3)::after,
body.front-page main>section.vaghta-has-botanical:nth-of-type(4n + 3)::after {
    background-position: left 26% top 65%, right 72% bottom 58%, left 47% bottom 12%, right 58% top 22%;
}

body.home main>section.vaghta-has-botanical:nth-of-type(4n)::after,
body.front-page main>section.vaghta-has-botanical:nth-of-type(4n)::after {
    background-position: left 65% top 18%, right 28% bottom 14%, left 38% bottom 45%, right 71% top 55%;
}

/* Use the same complete SVG set on both sides with mirrored placement. */
.vaghta-organic-right-accent,
.vaghta-organic-left-accent {
    position: absolute;
    top: 8%;
    z-index: 1;
    display: block;
    width: 155px;
    height: 82%;
    min-height: 240px;
    max-height: 520px;
    pointer-events: none;
    background-image:
        url("img/decor-botanical-warm.svg"),
        url("img/decor-botanical-teal.svg"),
        radial-gradient(circle at 80% 30%, rgba(253, 227, 181, .32), transparent 38%);
    background-repeat: no-repeat;
    background-position: right top, right 24px bottom, center;
    background-size: 132px auto, 72px auto, 100% 100%;
    opacity: .294;
}

.vaghta-organic-right-accent {
    top: 14%;
    height: 70%;
    right: 10px;
}

.vaghta-organic-left-accent {
    top: 32%;
    height: 60%;
    left: 10px;
}

/* Scatter the independent layer vertically instead of repeating one fixed placement. */
body.home main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-right-accent,
body.home main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-left-accent,
body.front-page main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-right-accent,
body.front-page main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-left-accent {
    top: 20%;
    height: 68%;
    background-position: right center, right 35px top, center;
}

body.home main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-right-accent,
body.home main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-left-accent,
body.front-page main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-right-accent,
body.front-page main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-left-accent {
    top: auto;
    bottom: 2%;
    height: 72%;
    background-position: right bottom, right 20px top 18%, center;
}

/* Offset the two sides independently so botanical accents never mirror each other. */
body.home main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-right-accent,
body.front-page main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-right-accent {
    top: 6%;
    bottom: auto;
    height: 66%;
}

body.home main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-left-accent,
body.front-page main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-left-accent {
    top: auto;
    bottom: 8%;
    height: 56%;
}

body.home main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-right-accent,
body.front-page main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-right-accent {
    top: auto;
    bottom: 4%;
    height: 58%;
}

body.home main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-left-accent,
body.front-page main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-left-accent {
    top: 18%;
    bottom: auto;
    height: 70%;
}

@media (min-width: 1024px) {

    .vaghta-organic-right-accent,
    .vaghta-organic-left-accent {
        width: 235px;
        min-height: 330px;
        background-position: right top, right 58px bottom, center;
        background-size: 195px auto, 100px auto, 100% 100%;
        opacity: .32;
    }

    .vaghta-organic-right-accent {
        right: 18px;
    }

    .vaghta-organic-left-accent {
        left: 18px;
    }

    body.home main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-right-accent,
    body.home main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-left-accent,
    body.front-page main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-right-accent,
    body.front-page main>section.vaghta-has-botanical:nth-of-type(3n + 2)>.vaghta-organic-left-accent {
        background-position: right center, right 76px top, center;
    }

    body.home main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-right-accent,
    body.home main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-left-accent,
    body.front-page main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-right-accent,
    body.front-page main>section.vaghta-has-botanical:nth-of-type(3n)>.vaghta-organic-left-accent {
        background-position: right bottom, right 54px top 18%, center;
    }

}

/* Decorative section modifier used on key editorial areas across the theme. */
/* Keep the provider selector visually stable while only its results change. */
.vaghta-provider-tabs {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: calc(100% - 32px);
    max-width: 560px;
    margin: -160px auto 49px;
    padding: 6px;
    border: 1px solid #dbe7e4;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(15, 118, 110, .06);
}

/* Turn the neighborhood tabs into a dock that grows out of the results section. */
#neighborhood-providers,
#category-providers {
    position: relative;
    overflow: visible;
    border-top-color: transparent;
    padding-top: 100px;
}

#neighborhood-providers .vaghta-provider-tabs,
#category-providers .vaghta-provider-tabs {
    isolation: isolate;
    border-color: #d6e5e1;
    border-bottom: 0;
    background: transparent;
    box-shadow: 0 -12px 32px rgba(15, 118, 110, .07);
}

/* Leave the lower edge open so the section's own animated background continues through it. */
#neighborhood-providers .vaghta-provider-tabs::after,
#category-providers .vaghta-provider-tabs::after {
    content: none;
}

#neighborhood-providers .vaghta-provider-tab,
#category-providers .vaghta-provider-tab {
    z-index: 1;
}

#neighborhood-providers .vaghta-provider-tab.is-active,
#category-providers .vaghta-provider-tab.is-active {
    transform: none;
}

.vaghta-provider-tab {
    position: relative;
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.vaghta-provider-tab:hover {
    color: #0f766e;
    background: #f0fdfa;
}

/* Use a strong selected state without changing the surrounding section surface. */
.vaghta-provider-tab.is-active {
    border-color: #0f766e;
    border-radius: 16px;
    background: #0f766e;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 118, 110, .2);
    transform: translateY(-1px);
}

/* Gently pulse only the inactive tab so the alternative remains discoverable. */
.vaghta-provider-tab-attention {
    border-color: #99d5ca;
    color: #0f766e;
    animation: vaghta-provider-tab-pulse 2.4s ease-in-out infinite;
}

@keyframes vaghta-provider-tab-pulse {

    0%,
    100% {
        background-color: #fff;
        box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
    }

    50% {
        background-color: #dff8f2;
        box-shadow: 0 0 0 4px rgba(15, 118, 110, .08);
    }
}

/* Make a tab change feel responsive without shifting or recoloring the section. */
.vaghta-provider-panel-active {
    animation: vaghta-provider-panel-in .28s ease-out both;
}

@keyframes vaghta-provider-panel-in {
    from {
        opacity: .35;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 1024px) {
    .vaghta-provider-tabs {
        width: 560px;
        margin: -175px auto 49px;
    }

    #neighborhood-providers,
    #category-providers {
        padding-top: 116px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vaghta-provider-tab {
        transition: none;
    }

    .vaghta-provider-tab-attention {
        animation: none;
    }

    .vaghta-provider-panel-active {
        animation: none;
    }
}

.vaghta-organic-surface {
    overflow: hidden;
    background-color: #fffdfa;
    background-image:
        radial-gradient(circle at 0 20%, rgba(193, 232, 223, .36), transparent 25%),
        radial-gradient(circle at 100% 75%, rgba(253, 227, 181, .34), transparent 28%);
}

/* Match Swiper pagination to the organic teal visual system. */
#vaghta-customer-stories-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background: #9ddbd0;
    opacity: .55;
}

#vaghta-customer-stories-pagination .swiper-pagination-bullet-active {
    width: 10px;
    height: 10px;
    background: #0f766e;
    opacity: 1;
}

/* Animate selected content blocks instead of moving entire homepage sections. */
main>section.vaghta-scroll-ready .vaghta-reveal-item {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .45s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
    transition-delay: 0s;
    will-change: opacity, transform;
}

main>section.vaghta-scroll-ready.is-in-view .vaghta-reveal-item {
    opacity: 1;
    transform: none;
    transition-delay: var(--vaghta-reveal-delay, 0s);
    will-change: auto;
}

/* Respect system motion preferences and keep all content immediately available. */
@media (prefers-reduced-motion: reduce) {
    main>section.vaghta-scroll-ready .vaghta-reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}

/* Keep botanical artwork subtle and spacious on desktop layouts. */
@media (min-width: 1024px) {

    /* Increase visibility uniformly without restoring heavy lower-section artwork. */
    body.home main>section.vaghta-has-botanical::after,
    body.front-page main>section.vaghta-has-botanical::after {
        background-size: 155px auto, 145px auto, 78px auto, 72px auto;
        opacity: .2;
    }
}
