/* =========================================
   FOOTER
========================================= */

footer {
    padding: 76px 0 28px;
    background: #171b15;
    color: var(--ivory, #f3efe3);
}

.foot-grid {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.4fr) minmax(140px, 0.65fr) minmax(230px, 1fr) minmax(220px, 0.9fr);
    gap: 48px;
    padding-bottom: 54px;
}

.foot-about p {
    max-width: 34ch;
    margin: 20px 0 0;
    color: rgba(243, 239, 227, 0.62);
    font-size: 0.88rem;
    line-height: 1.75;
}

/* Logo */

.foot-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.foot-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.foot-brand span {
    max-width: 190px;
    color: var(--ivory, #f3efe3);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

/* Footer columns */

.foot-col {
    min-width: 0;
}

.foot-col h5 {
    margin: 0 0 20px;
    color: var(--gold-soft, #d9bd7a);
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.foot-col>p {
    margin: 0 0 16px;
    color: rgba(243, 239, 227, 0.6);
    font-size: 0.84rem;
    line-height: 1.7;
}

.foot-col>a {
    display: block;
    width: fit-content;
    margin-top: 11px;
    color: rgba(243, 239, 227, 0.72);
    font-size: 0.84rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.foot-col>a:hover {
    color: var(--gold-soft, #d9bd7a);
    transform: translateX(3px);
}

/* =========================================
   SOCIAL MEDIA
========================================= */

.social-links {
    display: grid;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: rgba(243, 239, 227, 0.72);
    font-size: 0.84rem;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.social-links a:hover {
    color: var(--gold-soft, #d9bd7a);
    transform: translateX(4px);
}

.social-links svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links svg .social-dot {
    fill: currentColor;
    stroke: none;
}

.social-links a:last-child svg {
    fill: currentColor;
    stroke: none;
}

/* Footer bottom */

.foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 26px;
    border-top: 1px solid rgba(243, 239, 227, 0.12);
}

.foot-bottom span {
    color: rgba(243, 239, 227, 0.45);
    font-family: "Space Mono", monospace;
    font-size: 0.64rem;
    line-height: 1.6;
    letter-spacing: 0.025em;
}

.foot-contact-item {
    margin: 18px 0;
}

.foot-contact-label {
    display: block;
    margin-bottom: 7px;
    color: var(--gold-soft, #d9bd7a);
    font-family: "Space Mono", monospace;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.foot-contact-item address {
    margin: 0;
    color: rgba(243, 239, 227, 0.68);
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.7;
}

.foot-address-link {
    display: block;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.foot-address-link address {
    margin: 0;
    color: rgba(243, 239, 227, 0.68);
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.7;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.foot-address-link:hover address {
    color: var(--gold-soft, #d9bd7a);
    transform: translateX(3px);
}

.foot-address-link:focus-visible {
    outline: 2px solid var(--gold-soft, #d9bd7a);
    outline-offset: 5px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {
    .foot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 44px 54px;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 60px 0 24px;
    }

    .foot-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 40px;
    }

    .foot-about p {
        max-width: 46ch;
    }

    .foot-col h5 {
        margin-bottom: 16px;
    }

    .foot-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-top: 22px;
    }
}

@media (max-width: 380px) {
    .foot-brand img {
        width: 42px;
        height: 42px;
    }

    .foot-brand span {
        font-size: 0.92rem;
    }
}