/*
 * Module: 09-footer-responsive.css
 *
 * Purpose: Footer presentation, footer social links, and remaining responsive overrides.
 *
 * Notes: Loads last to preserve the existing cascade for footer and responsive adjustments.
 * Source range from former theme.css: lines 2728-3002.
 */

.govgr-footer {
    background: var(--govgr-blue);
    margin-top: 0;
}

.govgr-footer-service-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 360px);
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.govgr-footer-kicker {
    color: rgba(255, 255, 255, 0.72) !important;
}

.govgr-footer-service-copy h2 {
    margin-bottom: 0.75rem !important;
    color: #ffffff !important;
    font-size: 1.7rem !important;
}

.govgr-footer-service-copy p {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.86) !important;
}

.govgr-footer-service-card {
    align-self: start;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
}

.govgr-footer-service-card__label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.govgr-footer-service-card a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.govgr-footer-service-card p {
    margin: 0.45rem 0 0 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
}

.govgr-footer-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 2rem;
}

.govgr-footer .govgr-footer-col h3,
.govgr-footer .govgr-footer-contact-list__label,
.govgr-footer .govgr-footer-social .govgr-footer-contact-list__label,
.govgr-footer .govgr-footer-service-card__label {
    color: rgba(255, 255, 255, 0.74) !important;
}

.govgr-footer .govgr-footer-col ul li a,
.govgr-footer .govgr-footer-contact-list a,
.govgr-footer .govgr-footer-col p,
.govgr-footer .govgr-footer-contact-list small {
    color: rgba(255, 255, 255, 0.86) !important;
}

.govgr-footer .govgr-footer-col ul li a:hover,
.govgr-footer .govgr-footer-contact-list a:hover {
    color: #ffffff !important;
}

.govgr-footer-col--contact {
    min-width: 0;
}

.govgr-footer-contact-list,
.govgr-footer-contact-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.govgr-footer-contact-list {
    display: grid;
    gap: 1rem;
}

.govgr-footer-contact-list__label {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.govgr-footer-contact-list a {
    display: inline-block;
}

.govgr-footer-contact-list small {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.45;
}

.govgr-footer-social {
    margin-top: 1.5rem;
}

.govgr-footer-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.govgr-footer-social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.govgr-footer-social-list a:hover,
.govgr-footer-social-list a:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff !important;
}

.govgr-eu-logos {
    margin-top: 1.5rem;
}

.govgr-eu-badge {
    background: rgba(255, 255, 255, 0.08);
}

.govgr-footer-bottom {
    padding: 0;
}

.govgr-footer__meta {
    margin-top: 0;
}

.govgr-footer-links a,
.govgr-footer__licence-description {
    color: rgba(255, 255, 255, 0.72) !important;
}

.govgr-footer-col ul li a:hover,
.govgr-footer-links a:hover {
    color: #ffffff !important;
}

#govgr-back-top {
    bottom: 1.5rem;
}

*:focus {
    outline-color: var(--govgr-focus);
}

@media (max-width: 960px) {
    .govgr-hero-grid,
    .govgr-glance-grid,
    .govgr-footer-service-strip,
    .govgr-newsletter-panel,
    .govgr-community-panel,
    .govgr-forum-grid,
    .govgr-filter-layout {
        grid-template-columns: 1fr;
    }

    .govgr-header__container {
        flex-direction: column;
        align-items: stretch !important;
    }

    .govgr-header__actions {
        justify-content: flex-start;
    }

    .govgr-footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .govgr-nav-bar__inner {
        flex-wrap: wrap;
    }

    .govgr-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .govgr-nav-list {
        width: 100%;
    }

    .govgr-footer-columns {
        grid-template-columns: 1fr;
    }

    .govgr-glance-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .govgr-width-container,
    .govgr-header__container,
    .govgr-footer__meta-item {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .govgr-hero,
    .govgr-services-section,
    .govgr-news-section,
    .govgr-page-layout {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .govgr-account-link {
        width: 100%;
    }

    .govgr-account-menu {
        width: 100%;
    }

    .govgr-account-menu__panel {
        left: 0;
        right: auto;
    }

    .govgr-account-menu__panel::before {
        left: 1rem;
        right: auto;
    }

    .govgr-language-switcher {
        width: max-content;
    }

    .govgr-header__account-group {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .govgr-header__logout {
        padding-left: 0;
        border-left: 0;
    }

    .govgr-cookie-btns {
        width: 100%;
        flex-wrap: wrap;
    }

    .govgr-cookie-btns .govgr-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    body .cmplz-cookiebanner .cmplz-header,
    body .cmplz-cookiebanner .cmplz-body,
    body .cmplz-cookiebanner .cmplz-links,
    body .cmplz-cookiebanner .cmplz-buttons,
    body .cmplz-cookiebanner .cmplz-documents {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}
