/* Shared homepage footer — used on home + all frontend modules */

/* ========== Canton Footer Section ========== */
.canton-footer-section {
    background: #ffffff;
}

.canton-footer-main {
    padding: clamp(40px, 5vw, 64px) 18px clamp(36px, 4vw, 56px);
}

.canton-footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(140px, 0.85fr) minmax(180px, 0.95fr) minmax(180px, 0.95fr);
    gap: clamp(24px, 3vw, 48px);
}

.canton-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.canton-footer-logo img {
    height: 34px;
    width: auto;
    max-width: 134px;
    display: block;
}

.canton-footer-about {
    font-size: 14px;
    line-height: 1.65;
    color: #707070;
    max-width: 360px;
}

p.canton-footer-about {
    color: #707070;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
}

.canton-footer-heading {
    font-size: clamp(18px, 1.2vw, 20px);
    font-weight: 700;
    color: #1a4a7c;
    margin-bottom: 20px !important;
    line-height: 1.3;
}

.canton-footer-links {
    list-style: none;
}

.canton-footer-links li {
    margin-bottom: 10px;
}

.canton-footer-links li:last-child {
    margin-bottom: 0;
}

.canton-footer-links a {
    font-size: 14px;
    line-height: 1.5;
    color: #707070;
    text-decoration: none;
    transition: color 0.2s ease;
}

.canton-footer-links a:hover {
    color: #1a4a7c;
}

.canton-footer-contact {
    font-size: 14px;
    line-height: 1.5;
    color: #707070;
    padding-bottom: 10px;
}

.canton-footer-contact:last-of-type {
    margin-bottom: 10px;
}

.canton-footer-social {
    display: flex;
    gap: 20px;
}

.canton-footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.canton-footer-social-link:hover {
    background: #e2e8ef;
}

.canton-footer-social-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.canton-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.canton-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    max-width: 182px;
    width: 100%;
    text-align: center;
    transition: opacity 0.2s ease;
}

.canton-footer-btn:hover {
    opacity: 0.92;
}

.canton-footer-btn-red {
    background: #A8151A;
    border: 1px solid #640C0F;
}

.canton-footer-btn-blue {
    background: #1e4d7b;
}

.canton-footer-bottom {
    background: #0D2237;
    padding: 32px 18px;
}

.canton-footer-section .max-content {
    max-width: 182px;
    width: 100%;
}

.canton-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.canton-footer-col {
    margin-left: auto;
}

.canton-footer-copy {
    font-size: 13px;
    line-height: 1.5;
    color: #8899aa;
}

.canton-footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.canton-footer-legal a {
    font-size: 13px;
    line-height: 1.5;
    color: #8899aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.canton-footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 899px) {
    .canton-footer-col {
        margin-left: auto;
        width: 100%;
        max-width: unset;
    }

    .canton-footer-main {
        padding: 36px 16px 32px;
    }
.canton-footer-section .max-content {
    max-width: unset;
    width: 100%;
    margin-right: auto;
}
    .canton-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .canton-footer-about {
        max-width: 100%;
    }

    .canton-footer-heading {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .canton-footer-links li {
        margin-bottom: 0;
        border-bottom: 1px solid #e8edf2;
    }

    .canton-footer-links a {
        display: block;
        padding: 14px 0;
    }

    .canton-footer-contact:last-of-type {
        margin-bottom: 16px;
    }

    .canton-footer-actions {
        gap: 10px;
    }

    .canton-footer-btn {
        width: 100%;
    }

    .canton-footer-bottom {
        padding: 20px 16px;
    }

    .canton-footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .canton-footer-legal {
        justify-content: center;
        gap: 16px;
    }
}

@media only screen and (max-width: 599px) {
    .canton-footer-btn {
        width: 100%;
        max-width: unset;
    }
}