@charset "utf-8";

.portal-footer {
    margin-top: 64px;
    background: var(--surface-dark);
    color: #e2e8f0;
}

.footer-services {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 36px 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.services-title h2 {
    font-size: 22px;
    font-weight: 780;
    color: #fff;
}
.services-title p {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 14px;
}

.service-doors {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.service-door {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--surface-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    min-width: 240px;
    transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.service-door:hover {
    border-color: #60a5fa;
    background: #1e2f52;
    transform: translateY(-2px);
}
.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.24);
    color: #93c5fd;
    flex: 0 0 auto;
}
.service-door strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.service-door small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: #94a3b8;
}
.door-arrow {
    margin-left: auto;
    color: #94a3b8;
}
.service-door:hover .door-arrow {
    color: #fff;
}

.footer-directory {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding: 40px 0;
}

.footer-identity .portal-wordmark {
    color: #fff;
}
.footer-identity > p {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.75;
    max-width: 34ch;
}

.footer-search {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 12px;
    border-radius: 10px;
    background: var(--surface-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 320px;
}
.footer-search .icon {
    color: #94a3b8;
    width: 16px;
    height: 16px;
}
.footer-search input {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 13.5px;
}
.footer-search input::placeholder {
    color: #94a3b8;
}
.footer-search input:focus {
    outline: none;
}
.footer-search button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
}
.footer-search button:hover {
    background: #3b82f6;
}
.footer-search button .icon {
    color: #fff;
}

.footer-group h2 {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.footer-group ul {
    list-style: none;
    display: grid;
    gap: 9px;
}
.footer-group a {
    color: #94a3b8;
    font-size: 13.5px;
    transition: color 0.16s var(--ease-out);
}
.footer-group a:hover {
    color: #fff;
}
.footer-sectors ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.footer-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 12.5px;
}
.footer-base nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-base nav a:hover {
    color: #fff;
}
.footer-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-weight: 600;
}
.footer-top:hover {
    color: #fff;
}
.footer-top span {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--surface-dark-2);
    display: grid;
    place-items: center;
}
.footer-top .icon {
    width: 14px;
    height: 14px;
}

@media (max-width: 960px) {
    .footer-services {
        grid-template-columns: 1fr;
    }
    .footer-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .portal-footer {
        margin-top: 48px;
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }
    .service-doors {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .service-door {
        min-width: 0;
    }
    .footer-directory {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-base {
        flex-direction: column;
        align-items: flex-start;
    }
}
