/* =========================================================
   SHADOBOOKS - INTEGRATED BUSINESS APPS
========================================================= */

.eco-section,
.sb-apps-section {
    --brand: #90331c;
    --brand-dark: #6f2414;
    --brand-light: #f7e8e3;
    --brand-soft: rgba(144, 51, 28, 0.08);

    --text: #211916;
    --text-soft: #756b67;

    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(144, 51, 28, 0.10);

    position: relative;
    padding: 90px 24px 90px;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(144, 51, 28, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 80%,
            rgba(218, 177, 158, 0.16),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #fffaf7 0%,
            #fdf4ef 48%,
            #f8eee9 100%
        );
}


/* =========================================================
   BACKGROUND
========================================================= */

.eco-bg {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(144, 51, 28, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(144, 51, 28, 0.035) 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    mask-image:
        radial-gradient(
            ellipse 70% 60% at 50% 45%,
            black 10%,
            transparent 78%
        );

    -webkit-mask-image:
        radial-gradient(
            ellipse 70% 60% at 50% 45%,
            black 10%,
            transparent 78%
        );

    pointer-events: none;
    z-index: -2;
}


/* =========================================================
   TOP GLOW
========================================================= */

.sb-apps-section::before {
    content: "";

    position: absolute;

    width: 720px;
    height: 720px;

    top: -430px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(144, 51, 28, 0.13) 0%,
            rgba(144, 51, 28, 0.045) 36%,
            transparent 72%
        );

    pointer-events: none;

    z-index: -1;
}


/* =========================================================
   HEADING
========================================================= */

.sb-apps-heading {
    position: relative;
    z-index: 5;

    max-width: 820px;

    margin: 0 auto 70px;

    text-align: center;
}


/* Badge */

.sb-apps-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 16px;

    margin-bottom: 22px;

    border: 1px solid rgba(144, 51, 28, 0.13);

    border-radius: 100px;

    background: rgba(255, 255, 255, 0.78);

    color: var(--brand);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .14em;
    text-transform: uppercase;

    box-shadow:
        0 8px 30px rgba(72, 35, 25, .06);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* Badge dot */

.sb-apps-badge-dot {
    position: relative;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--brand);
}


.sb-apps-badge-dot::after {
    content: "";

    position: absolute;

    inset: -4px;

    border-radius: 50%;

    background: rgba(144, 51, 28, .14);
}


/* =========================================================
   TITLE
========================================================= */

.sb-apps-title {
    margin: 0;

    /* font-family: "Sora", "Inter", sans-serif; */

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -0.045em;

    color: var(--text);
}

.sb-apps-title span {
    color: #90311c;
}


.sb-apps-title .accent {
    background:
        linear-gradient(
            100deg,
            #90331c 0%,
            #a9492d 48%,
            #c8795d 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.sb-apps-description {
    max-width: 630px;

    margin: 20px auto 0;

    color: var(--text-soft);

    font-size: 16.5px;

    line-height: 1.75;

    font-weight: 400;
}


/* =========================================================
   MAIN DIAGRAM
========================================================= */

.eco-diagram {
    position: relative;

    width: 100%;
    max-width: 1240px;

    /* min-height: 390px; */

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        150px
        minmax(0, 1fr);

    align-items: center;
}


/* =========================================================
   PANELS
========================================================= */

.eco-panel {
    position: relative;
    z-index: 3;

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.eco-panel.left {
    padding-right: 22px;
}


.eco-panel.right {
    padding-left: 22px;
}


.eco-panel.right .eco-row {
    flex-direction: row-reverse;
}


/* =========================================================
   ROW
========================================================= */

.eco-row {
    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    min-height: 88px;

    margin-bottom: 30px;
}


/* =========================================================
   APP CARDS
========================================================= */

.eco-cards {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 11px;

    flex: 1;
}


/* Card */

.eco-card {
    position: relative;

    width: 62px;
    height: 62px;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(250,248,247,.94)
        );

    border: 1px solid var(--card-border);

    box-shadow:
        0 2px 5px rgba(45, 25, 20, .035),
        0 14px 30px rgba(45, 25, 20, .055);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

    overflow: hidden;
}


/* Card shine */

.eco-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.8),
            transparent 48%
        );

    pointer-events: none;
}


/* Hover */

.eco-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(144, 51, 28, .22);

    box-shadow:
        0 6px 12px rgba(45,25,20,.05),
        0 20px 35px rgba(144,51,28,.12);
}


/* Icons */

.eco-card i {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;

    opacity: 0;

    transform:
        translateY(8px)
        scale(.88);

    transition:
        opacity .45s ease,
        transform .45s cubic-bezier(.2,.8,.2,1);
}


.eco-card i.is-active {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CATEGORY LABEL
========================================================= */

.eco-label {
    flex: 0 0 125px;

    width: 125px;

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--brand);

    font-size: 10px;

    font-weight: 800;

    line-height: 1.35;

    letter-spacing: .105em;

    text-transform: uppercase;
}


.eco-label-text {
    flex: 1;
}


/* Label dot */

.eco-dot {
    position: relative;

    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--brand);

    box-shadow:
        0 0 0 4px var(--brand-light);
}


.eco-dot::after {
    content: "";

    position: absolute;

    inset: -4px;

    border-radius: 50%;

    border: 1px solid rgba(144,51,28,.12);
}


/* Left */

.eco-panel.left .eco-label {
    flex-direction: row;

    justify-content: flex-start;

    text-align: left;
}


/* Right */

.eco-panel.right .eco-label {
    flex-direction: row;

    justify-content: flex-end;

    text-align: right;
}

.eco-panel.right .eco-label-text {
    order: 0;
}

.eco-panel.right .eco-dot {
    order: 1;
}


/* =========================================================
   CENTER
========================================================= */

.eco-center {
    position: relative;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 5;
}


/* SVG */

.eco-svg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;

    pointer-events: none;

    z-index: 1;
}


/* Connector */

.eco-svg path {
    fill: none;

    stroke:
        rgba(144, 51, 28, .16);

    stroke-width: 1.3;

    stroke-dasharray: 4 5;

    transition:
        stroke .3s ease;
}


/* Endpoint */

.eco-connector-dot {
    fill: var(--brand);

    opacity: .65;
}


/* =========================================================
   HUB
========================================================= */

.eco-hub-wrap {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    z-index: 10;
}


/* Glow */

.eco-hub-glow {
    position: absolute;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(144,51,28,.14),
            rgba(144,51,28,.04) 45%,
            transparent 70%
        );

    animation:
        ecoHubGlow 4s ease-in-out infinite;
}


@keyframes ecoHubGlow {

    0%,100% {
        transform: scale(.9);
        opacity: .55;
    }

    50% {
        transform: scale(1.08);
        opacity: .9;
    }
}


/* Hub */

.eco-hub {
    position: relative;

    width: 104px;
    height: 104px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbf8f7
        );

    border: 1px solid rgba(144,51,28,.15);

    box-shadow:
        0 4px 8px rgba(40,20,15,.04),
        0 25px 55px rgba(144,51,28,.15);

    z-index: 2;
}


.eco-hub::before {
    content: "";

    position: absolute;

    inset: 7px;

    border-radius: 22px;

    border: 1px solid
        rgba(144,51,28,.07);
}


/* Logo */

.eco-hub-logo {
    position: relative;

    z-index: 2;

    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.eco-hub-logo img {
    display: block;

    width: auto;
    height: 46px;

    max-width: 72px;

    object-fit: contain;
}


/* Hub label */

.eco-hub-label {
    margin-top: 13px;

    color: var(--brand);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .15em;

    white-space: nowrap;
}


/* =========================================================
   BOTTOM MESSAGE
========================================================= */

.sb-apps-footer {
    max-width: 1050px;

    margin: 45px auto 0;

    display: flex;

    align-items: center;

    gap: 20px;
}


.sb-apps-footer-line {
    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(144,51,28,.12),
            transparent
        );
}


.sb-apps-footer-content {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #897b76;

    font-size: 11px;

    font-weight: 500;

    white-space: nowrap;
}


.sb-apps-footer-icon {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--brand-light);

    color: var(--brand);

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .eco-diagram {
        grid-template-columns:
            minmax(0, 1fr)
            125px
            minmax(0, 1fr);
    }

    .eco-panel.left {
        padding-right: 10px;
    }

    .eco-panel.right {
        padding-left: 10px;
    }

    .eco-label {
        flex-basis: 105px;
        width: 105px;
    }

    .eco-card {
        width: 56px;
        height: 56px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 880px) {

    .eco-section,
    .sb-apps-section {
        padding:
            75px
            18px
            70px;
    }


    .sb-apps-heading {
        margin-bottom: 48px;
    }


    .sb-apps-title {
        font-size:
            clamp(30px, 7vw, 40px);
    }


    .sb-apps-description {
        max-width: 580px;

        font-size: 14px;
    }


    .eco-diagram {
        display: flex;

        flex-direction: column;

        gap: 28px;

        min-height: auto;
    }


    .eco-svg {
        display: none;
    }


    .eco-center {
        order: -1;

        width: 100%;

        height: 145px;

        margin-bottom: 5px;
    }


    .eco-hub {
        width: 96px;
        height: 96px;

        border-radius: 25px;
    }


    .eco-hub-label {
        margin-top: 11px;
    }


    .eco-panel {
        width: 100%;

        padding: 0 !important;

        gap: 8px;
    }


    .eco-panel.right .eco-row {
        flex-direction: row;
    }


    .eco-row {
        width: 100%;

        flex-wrap: wrap;

        min-height: auto;

        /* margin-bottom: 30px; */

        gap: 11px;
    }


    .eco-label {
        order: -1;

        flex: 0 0 100%;

        width: 100%;

        margin-bottom: 4px;

        justify-content: flex-start !important;

        text-align: left !important;

        flex-direction: row !important;
    }


    .eco-panel.right .eco-label-text {
        order: 1;
    }


    .eco-panel.right .eco-dot {
        order: 0;
    }


    .eco-cards {
        width: 100%;

        grid-template-columns:
            repeat(4, 1fr);

        gap: 9px;
    }


    .eco-card {
        width: 100%;
        height: 58px;

        border-radius: 15px;
    }


    .sb-apps-footer {
        margin-top: 30px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .eco-section,
    .sb-apps-section {
        padding:
            62px
            15px
            58px;
    }


    .sb-apps-heading {
        margin-bottom: 38px;
    }


    .sb-apps-badge {
        padding: 7px 12px;

        font-size: 9px;
    }


    .sb-apps-title {
        font-size: 28px;

        line-height: 1.2;
    }


    .sb-apps-description {
        margin-top: 14px;

        font-size: 13.5px;

        line-height: 1.7;
    }


    .eco-center {
        height: 130px;
    }


    .eco-hub {
        width: 86px;
        height: 86px;

        border-radius: 22px;
    }


    .eco-hub-logo img {
        height: 40px;

        max-width: 62px;
    }


    .eco-card {
        height: 52px;

        border-radius: 14px;
    }


    .eco-card i {
        font-size: 17px;
    }


    .eco-row {
        gap: 8px;

        /* margin-bottom: 12px; */
    }


    .eco-cards {
        gap: 7px;
    }


    .eco-label {
        font-size: 9px;

        letter-spacing: .09em;
    }


    .sb-apps-footer {
        margin-top: 25px;
    }


    .sb-apps-footer-line {
        display: none;
    }


    .sb-apps-footer-content {
        width: 100%;

        justify-content: center;

        text-align: center;

        white-space: normal;

        font-size: 10px;

        line-height: 1.5;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .eco-card,
    .eco-card i {
        transition: none;
    }

    .eco-hub-glow {
        animation: none;
    }

}