/******************** back to top ********************/

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;

    width: 40px;
    height: 40px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: var(--text-pink);
    color: var(--white);

    cursor: pointer;

    box-shadow:
        rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
        rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.back-to-top:hover {
    background: var(--green-primary);
    transform: translateY(-4px);

    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/******************** footer ********************/

.site-footer {
    position: relative;

    background: linear-gradient(rgba(47, 107, 79, 0.92), rgba(47, 107, 79, 0.92)), url("../../public/img/footer.png");

    background-size: cover;
    background-position: center bottom;

    color: var(--white);

    overflow: hidden;
}

.footer-top,
.footer-main {
    background: transparent;
    padding: 24px 0px;
}

.footer-top {
    position: relative;
}

.footer-top p {
    font-size: 14px;
}

.footer-top::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: calc(100% - 80px);
    height: 1px;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
}

.footer-info-card {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-icon {
    width: 86px;
    height: 86px;

    flex-shrink: 0;

    background: rgba(0, 0, 0, 0.16);

    border: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 16px rgba(0, 0, 0, 0.12);

    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-info-card h5 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-info-card p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    margin: 0;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.footer-brand {
    text-align: -webkit-center;
}

.footer-brand img {
    width: 96px;
    margin-bottom: 22px;
}

.footer-brand p {
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 12px;
}

.footer-brand h2 {
    color: var(--white);
}

.footer-about h5 {
    color: var(--white);
    margin-bottom: 18px;
}

.footer-about h5::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    border-radius: var(--radius-pill);
    background: var(--text-pink);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.9;
}

.footer-map iframe {
    width: 100%;
    height: 175px;
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-md);

    filter: saturate(0.85) brightness(0.95);
}

.footer-statistics {
    width: 100%;
    max-width: 420px;

    padding: var(--gap-content-sm);
}

.footer-statistics h5 {
    margin-bottom: 22px;

    color: var(--white);
}

.footer-statistics h5::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    border-radius: var(--radius-pill);
    background: var(--text-pink);
}

.footer-stat-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: var(--gap-content-sm);
}

.footer-stat-item {
    padding: 10px 12px;

    border-radius: var(--radius-sm);

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.08);

    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.footer-stat-label {
    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    align-self: center;
}

.footer-stat-value {
    color: var(--white);

    font-size: 16px;
    font-weight: 600;
}

.footer-bottom {
    background: var(--green-dark);
}

.footer-bottom-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-bottom-inner p,
.footer-policy a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.footer-policy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.footer-policy a:hover {
    color: var(--text-pink);
}

.footer-divider {
    width: 1px;
    height: 18px;

    background: rgba(255, 255, 255, 0.25);
}

/******************** responsive ********************/

@media (max-width: 991px) {
    .site-footer {
        background-position: center bottom;
    }

    .footer-top,
    .footer-main {
        padding: 32px 0;
    }

    .footer-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 34px;
    }

    .footer-info-card {
        align-items: center;
    }

    .footer-info-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 520px;
        margin: 0 auto;
    }

    .footer-icon {
        width: 72px;
        height: 72px;
    }

    .footer-icon img {
        width: 40px;
        height: 40px;
    }

    .footer-info-card h5 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .footer-info-card p {
        font-size: 14px;
        line-height: 1.7;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        align-items: start;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    .footer-brand img {
        width: 88px;
        margin-bottom: 18px;
    }

    .footer-brand h2 {
        font-size: 30px;
    }

    .footer-about p {
        max-width: 720px;
    }

    .footer-map iframe {
        height: 260px;
        border-radius: 20px;
    }

    .footer-statistics {
        max-width: 100%;
    }

    .footer-bottom-inner {
        min-height: auto;
        padding: 22px 0;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
        gap: 14px;
    }

    .footer-policy {
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .footer-top,
    .footer-main {
        padding: 28px 0;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-info-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-info-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    .footer-icon {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
    }

    .footer-icon img {
        width: 30px;
        height: 30px;
    }

    .footer-info-card > div:last-child {
        flex: 1;
        min-width: 0;
    }

    .footer-info-card h5 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .footer-info-card p {
        font-size: 13px;
        line-height: 1.7;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand img {
        width: 82px;
        margin-bottom: 16px;
    }

    .footer-brand p {
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    .footer-brand h2 {
        font-size: 26px;
        line-height: 1.35;
    }

    .footer-map iframe {
        height: 220px;
        border-radius: 18px;
    }

    .footer-statistics {
        max-width: 100%;
        padding: 22px;
    }

    .footer-stat-grid {
        gap: 12px;
    }

    .footer-stat-item {
        padding: 12px;
    }

    .footer-stat-label {
        font-size: 12px;
    }

    .footer-stat-value {
        font-size: 15px;
    }

    .footer-bottom-inner p,
    .footer-policy a {
        font-size: 13px;
    }

    .footer-policy {
        gap: 8px 10px;
    }

    .footer-divider {
        height: 14px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 420px) {
    .container-fluid.px-5 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    .footer-policy {
        flex-direction: column;
        gap: 8px;
    }

    .footer-divider {
        display: none;
    }
}
