/* Outer footer wrapper */
.bsw-footer.wp-block-group {
    background: #fff;
    padding-block: 3rem 60px !important;
    /*border-top: 1px solid rgba(140, 133, 123, 0.2);*/
}

/* Columns row */
.bsw-footer__columns.wp-block-columns {
    align-items: center !important;
    margin-block-end: 0 !important;
}

/* Venue columns */
.bsw-footer__venue.wp-block-column {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

/* Logo figure — shrink-wraps the image, centered */
.bsw-footer__logo.wp-block-image {
    display: flex !important;
    align-items: flex-end; /* bottom-align logos of differing heights */
    justify-content: center;
    min-height: 121px; /* tallest logo (Marshes) — keeps both addresses on one baseline */
    margin-inline: auto !important;
    margin-block-end: 26px !important;
}

/* Logo image — sized by its width/height HTML attributes (the SVGs have no
   intrinsic size: Figma exports them with width="100%"); max-width scales down */
.bsw-footer__logo img {
    display: block;
    height: auto;
    max-width: 100%;
}


/* Address text */
.bsw-footer__address {
    font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #373737 !important;
    margin-block: 0 !important;
}

/* Floral decoration column — centered, scale to fit */
.bsw-footer__floral.wp-block-column {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.bsw-footer__floral .wp-block-image {
    display: table !important;
    margin-inline: auto !important;
    margin-block: 0 !important;
}

.bsw-footer__floral img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Contact column */
.bsw-footer__contact.wp-block-column {
    padding-inline-start: 0.5rem;
}

/* Labels + values flex row */
.bsw-footer__contact-grid.wp-block-group {
    gap: 1.5rem !important;
    align-items: flex-start !important;
}

/* Label column */
.bsw-footer__contact-labels.wp-block-group {
    gap: 0 !important;
    flex-shrink: 0;
}

.bsw-footer__contact-label {
    font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
    font-size: 18px !important;
    line-height: 2.22 !important;
    color: #373737 !important;
    margin-block: 0 !important;
    white-space: nowrap;
}

/* Value column */
.bsw-footer__contact-values.wp-block-group {
    gap: 0 !important;
}

.bsw-footer__contact-value {
    font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
    font-size: 18px !important;
    line-height: 2.22 !important;
    color: #8e4e58 !important;
    margin-block: 0 !important;
    white-space: nowrap;
}

/* Linked email — inherits the value colour, dainty underline on hover */
.bsw-footer__contact-value a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.bsw-footer__contact-value a:hover {
    text-decoration-color: currentColor;
}

/* Social icons — custom SVG, mauve outline style */
.bsw-footer__social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-block: 0;
    padding-block-start: 0.3rem;
}

.bsw-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.bsw-footer__social-link svg {
    display: block;
    transition: opacity 0.2s;
}

.bsw-footer__social-link:hover svg {
    opacity: 0.6;
}

/* Copyright line */
.bsw-footer__copyright {
    font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
    font-size: 16px !important;
    color: #867B70 !important;
    line-height: 1.75 !important;
    margin-block: 0 !important;
    padding-block-start: 60px !important;
}

@media (max-width: 767px) {
    .bsw-footer.wp-block-group {
        padding-block: 0 55px !important;
    }

    /* Stack columns vertically — must use flex-direction:column so each fills full row width */
    .bsw-footer__columns.wp-block-columns.is-not-stacked-on-mobile {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
    }

    /* In column-flex mode, flex-basis controls height — reset to auto, use width for 100% row width */
    .bsw-footer__columns.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
        flex-basis: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-block-end: 2rem;
    }

    /* Reorder: HTML order is Brookstreet(1), Marshes(2), Floral(3), Contact(4)
       Mobile target: Brookstreet, Marshes, Contact, Floral */
    .bsw-footer__columns > .wp-block-column:nth-child(3) { order: 4; }
    .bsw-footer__columns > .wp-block-column:nth-child(4) { order: 3; }

    /* Contact: center the label/value pairs */
    .bsw-footer__contact.wp-block-column {
        padding-inline-start: 0;
        display: flex !important;
        justify-content: center;
    }

    /* Floral: tighten spacing — sits just above copyright, no border needed */
    .bsw-footer__floral.wp-block-column {
        padding-block: 0.5rem 0 !important;
    }

    /* Logos stack full-width on mobile — no need to reserve the tallest-logo height */
    .bsw-footer__logo.wp-block-image {
        min-height: 0;
    }

    .bsw-footer__copyright {
        padding-block-start: 1rem !important;
    }
}
