/* ========================================
   Footer foundation
======================================== */

.rt-footer {
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px));

    background-color: #111111;
    color: #ffffff;

    font-family: "Inter", Arial, sans-serif;
}

.rt-footer,
.rt-footer * {
    box-sizing: border-box;
}

.rt-footer__container {
    width: 100%;
    max-width: 1200px;

    margin-inline: auto;
    padding-inline: 16px;
}

/* ========================================
   Mobile layout
======================================== */

.rt-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 12px;
}

.rt-footer__brand {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;

    min-width: 0;
}

/* ========================================
   Wordmark
======================================== */

.rt-footer__wordmark {
    margin: 0;
    text-align: center;
}

.rt-footer__brand-name {
    display: block;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.04em;

    text-transform: uppercase;
    white-space: nowrap;
}

.rt-footer__tagline {
    display: block;
    margin-top: 2px;

    font-size: 0.4375rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.24em;

    text-transform: uppercase;
    white-space: nowrap;
}

/* ========================================
   Social icons
======================================== */

.rt-footer__socials {
    display: flex;
    align-items: center;
}

.rt-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 32px;
    height: 32px;

    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
}

.rt-footer__social svg {
    display: block;

    width: 18px;
    height: 18px;
}

/* ========================================
   Navigation columns
======================================== */

.rt-footer__column {
    min-width: 0;
}

.rt-footer__heading {
    margin: 0 0 8px;

    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.rt-footer__links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.rt-footer__link {
    display: inline-flex;
    align-items: center;

    max-width: 100%;
    min-height: 24px;
    padding-block: 2px;

    color: #c3bfb9;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;

    overflow-wrap: anywhere;
}

.rt-footer__link[aria-disabled="true"],
.rt-footer__social[aria-disabled="true"] {
    cursor: default;
}

.rt-footer__link:focus-visible,
.rt-footer__social:focus-visible {
    outline: 2px solid #c9a46a;
    outline-offset: 2px;
}

/* Apply hover feedback once real URLs are provided. */
@media (hover: hover) {
    .rt-footer__link[href]:hover {
        color: #ffffff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .rt-footer__social[href]:hover {
        color: #c9a46a;
    }
}

/* ========================================
   Copyright
======================================== */

.rt-footer__copyright {
    margin: 32px 0 0;

    /* Keep the text clear of the floating WhatsApp icon. */
    padding-inline: 64px;

    color: #b9b5ae;
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

/* ========================================
   Four-column reference layout
======================================== */

@media (min-width: 480px) {
    .rt-footer__grid {
        grid-template-columns:
            minmax(0, 1.5fr)
            repeat(3, minmax(0, 1fr));
    }

    .rt-footer__brand {
        grid-column: auto;

        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
    }
}

/* ========================================
   Tablet and desktop
======================================== */

@media (min-width: 768px) {
    .rt-footer {
        padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
    }

    .rt-footer__container {
        padding-inline: 24px;
    }

    .rt-footer__grid {
        gap: 24px;
    }

    .rt-footer__brand-name {
        font-size: 1.375rem;
    }

    .rt-footer__tagline {
        font-size: 0.5rem;
    }

    .rt-footer__heading {
        font-size: 0.8125rem;
    }
}