/* Footer component styles */
.remark-footer {
    background-color: var(--remark-color-white);
    color: var(--remark-color-text);
    /* Removed top padding per request */
    padding: 0 24px 40px;
    font-family: var(--remark-font-body);
}

.remark-footer__top {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: clamp(32px, 5vw, 60px);
    padding: 48px 0;
    border-top: 1px solid rgba(8, 23, 50, 0.08);
    border-bottom: 1px solid rgba(8, 23, 50, 0.08);
}

.remark-footer__brand {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.remark-footer__logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.remark-footer__brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--remark-color-primary);
}

.remark-footer__contacts {
    display: contents;
}

.remark-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.remark-footer__contact-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--remark-color-text);
}

.remark-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.975rem;
    color: var(--remark-color-text-muted);
}

.remark-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.remark-footer__contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--remark-color-primary);
    flex-shrink: 0;
}

.remark-footer__contact-icon svg {
    width: 30px;
    height: 30px;
    display: block;
}

.remark-footer__contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.remark-footer__contact-text {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 3px;
}

.remark-footer__contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-in-out-quart);
}

.remark-footer__contact-link:hover,
.remark-footer__contact-link:focus-visible {
    color: #00357A;
}

.remark-footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--remark-color-text-muted);
}

.remark-footer__copyright {
    margin: 0;
}

.remark-footer__social {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.remark-footer__social-link {
    width: 40px;
    height: 40px;
    color: var(--remark-color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: scale(1);
    transition-property: transform, color;
    transition-duration: 0.8s, 0.3s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1.6), var(--ease-in-out-quart);
}

.remark-footer__social-link:hover,
.remark-footer__social-link:focus-visible {
    transform: scale(1.2);
    transition-duration: 0.8s, 0.3s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1.6), var(--ease-in-out-quart);
    color: #00357A;
}

.remark-footer__social-icon svg {
    width: 30px;
    height: 30px;
    display: block;
    fill: currentColor;
}

.remark-footer__social-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.remark-footer__social-text {
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .remark-footer__top {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 720px) {
    .remark-footer {
        /* Mobile: update according to design match */
        padding: 0 20px 32px;
    }

    .remark-footer__top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .remark-footer__brand {
        justify-content: flex-start;
    }

    .remark-footer__contact {
        align-items: flex-start;
        text-align: left;
    }

    .remark-footer__contact-item {
        justify-content: flex-start;
    }

    .remark-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
}
