/**
 * footer.css — the site footer (template-parts/footer.php).
 *
 * The five columns are widget areas (inc/widgets.php) filled with blocks under
 * Appearance > Widgets; these rules style the Group/Heading/List/Image and
 * Social Icons blocks placed inside them, plus the copyright bar.
 */

/* Footer layout: dark background, responsive column grid */
.rn27-footer {
    background: #e6f4f4;
    padding-top: 60px;
}

.rn27-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 24px 40px;
}

@media (min-width: 700px) {
    .rn27-footer__top {
            grid-template-columns: 1.2fr repeat(2, 1fr);
            padding-left: 40px;
            padding-right: 40px;
        }
}

@media (min-width: 1100px) {
    .rn27-footer__top {
            grid-template-columns: 1.2fr repeat(4, 1fr);
        }
}

/* Brand column and link columns (blocks inside the widget areas) */
.rn27-footer__brand img,
.rn27-footer__brand .wp-block-image img {
    max-height: 44px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.rn27-footer__brand p {
    font-size: 0.9rem;
    color: #3f5457;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 0 8px 0;
}

.rn27-footer__col .wp-block-heading,
.rn27-footer__brand .wp-block-heading {
    font-family: var(--font-headers) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: var(--brand-black) !important;
    margin: 0 0 16px 0 !important;
}

.rn27-footer__col ul:not(.wp-block-social-links) {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rn27-footer__col ul a {
    color: #3f5457 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.2s ease;
}

.rn27-footer__col ul a:hover {
    color: var(--brand-teal) !important;
}

.rn27-footer__placeholder {
    font-size: 0.85rem;
    color: #9aa5a8;
    font-style: italic;
    margin: 0;
    max-width: 220px;
}

/* Bottom bar: copyright and Privacy Policy link */
.rn27-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 700px) {
    .rn27-footer__bottom {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            padding-left: 40px;
            padding-right: 40px;
        }
}

/* Connect With Us: core Social Icons block */
.rn27-footer__col .wp-block-social-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rn27-footer__col .wp-block-social-links li {
    list-style: none !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden;
    box-sizing: border-box !important;
    transition: transform 0.2s ease;
}

.rn27-footer__col .wp-block-social-links li:hover {
    transform: scale(1.12);
}

.rn27-footer__col .wp-block-social-links li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.rn27-footer__col .wp-block-social-links li svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 auto !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}
