/* BrandingBuddy footer: bold editorial invitation with precise utility content. */
footer.wp-block-template-part { margin-block-start: 0; }

.wp-block-group.bb-site-footer {
    position: relative;
    width: auto;
    max-width: none;
    margin-block-start: 0;
    margin-inline: calc(-1 * var(--bb-page-gutter));
    padding: clamp(48px, 4vw, 64px) var(--bb-page-gutter) var(--wp--preset--spacing--24);
    overflow: hidden;
    border-top: 0;
    background: linear-gradient(115deg, var(--wp--preset--color--ink) 62%, #1c1816 100%);
}

/* Oversized brand mark bleeding off the right edge, behind the footer content. */
.wp-block-group.bb-site-footer::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: -6%;
    height: min(135%, 560px);
    aspect-ratio: 1;
    background: var(--wp--preset--color--accent);
    opacity: .07;
    -webkit-mask: url("../images/hero-sparrow.png") center / contain no-repeat;
    mask: url("../images/hero-sparrow.png") center / contain no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
}
.bb-site-footer__inner { position: relative; z-index: 1; }
.bb-site-footer__inner > * { margin-block-end: 0; }
.bb-site-footer__inner > :first-child { margin-block-start: 0; }

.bb-site-footer__main {
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(420px, 1.3fr);
    column-gap: clamp(40px, 4vw, 72px);
    row-gap: var(--wp--preset--spacing--32);
    align-items: start;
}
.bb-site-footer__intro { grid-row: 1 / 3; }
.bb-site-footer__contact { grid-column: 2; grid-row: 1; }
.bb-site-footer__social { grid-column: 2; grid-row: 2; }

.bb-site-footer__intro,
.bb-site-footer__contact,
.bb-site-footer__social { margin: 0 !important; }

.bb-site-footer__intro > *,
.bb-site-footer__contact > *,
.bb-site-footer__social > *,
.bb-site-footer__contact-item > * { margin-block-end: 0; }

.bb-site-footer__intro > :first-child,
.bb-site-footer__contact > :first-child,
.bb-site-footer__social > :first-child,
.bb-site-footer__contact-item > :first-child { margin-block-start: 0; }

.bb-site-footer__title {
    max-width: none;
    margin: 0;
    color: var(--wp--preset--color--canvas);
}
.bb-site-footer__title em {
    display: inline;
    color: var(--wp--preset--color--accent);
    font-family: var(--wp--preset--font-family--cormorant-garamond);
    font-weight: inherit;
    line-height: inherit;
}

.bb-site-footer__lead {
    max-width: 35ch;
    margin: var(--wp--preset--spacing--20) 0 0;
    color: var(--wp--custom--color--black--200);
    font-size: var(--wp--preset--font-size--body);
    line-height: 1.5;
}
.bb-site-footer__cta { margin-block-start: var(--wp--preset--spacing--24); }
.bb-site-footer__cta .wp-block-button__link {
    background: var(--wp--preset--color--accent) !important;
    color: var(--wp--preset--color--ink) !important;
}
.bb-site-footer__cta .wp-block-button__link:hover { background: var(--wp--preset--color--canvas) !important; }

.bb-site-footer__contact h3,
.bb-site-footer__social h3 {
    margin-block-end: var(--wp--preset--spacing--20);
    color: var(--wp--preset--color--accent);
    font-size: var(--wp--preset--font-size--label);
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bb-site-footer__contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--wp--preset--spacing--20);
}
.bb-site-footer__contact-grid > .bb-site-footer__contact-item { margin: 0 !important; }
.bb-site-footer__contact-item {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 64px;
    padding-block: 10px;
}
.bb-site-footer__contact-item p { margin: 0; }
.bb-site-footer__contact-item p:last-child {
    color: var(--wp--custom--color--black--200);
    line-height: 1.45;
}
.bb-site-footer__contact-item strong {
    color: var(--wp--preset--color--canvas);
    font-size: var(--wp--preset--font-size--body);
}
.bb-site-footer.is-style-brand-dark .bb-site-footer__contact-item a {
    color: var(--wp--custom--color--black--200);
    text-decoration: none;
}
.bb-site-footer.is-style-brand-dark .bb-site-footer__contact-item a:hover { color: var(--wp--preset--color--accent); }
.bb-site-footer__text-link {
    display: inline-block;
    padding-block: 2px;
    transition: color .2s ease;
}

.bb-site-footer__social-list,
.bb-site-footer__legal {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--wp--custom--color--black--200);
}
.bb-site-footer__social-list { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--16); }
.bb-site-footer__social-list a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--wp--preset--color--white);
    border-radius: 50%;
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--ink) !important;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.bb-site-footer__social-list a i { font-size: 15px; }
.bb-site-footer__social-list a:hover,
.bb-site-footer__social-list a:focus-visible {
    background: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white) !important;
    transform: translateY(-2px);
}

.bb-site-footer__bottom {
    align-items: end;
    gap: var(--wp--preset--spacing--24);
    margin-block-start: clamp(40px, 4vw, 64px);
    padding-block-start: var(--wp--preset--spacing--20);
}
.bb-site-footer__bottom p {
    margin: 0;
    color: var(--wp--custom--color--black--200);
    font-size: 13px !important;
}
.bb-site-footer__legal {
    display: grid;
    grid-auto-flow: column;
    gap: var(--wp--preset--spacing--32);
    font-size: 12px;
    line-height: 1.6;
}
.bb-site-footer__legal a {
    color: var(--wp--preset--color--white) !important;
    text-decoration: none;
    transition: color .2s ease;
}
.bb-site-footer__legal a:hover { color: var(--wp--preset--color--accent) !important; }

@media (max-width: 1100px) {
    .bb-site-footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .wp-block-group.bb-site-footer {
        padding-block: var(--wp--preset--spacing--48) var(--wp--preset--spacing--24);
        padding-inline: var(--bb-page-gutter);
    }
    .bb-site-footer__main { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--40); }
    .bb-site-footer__intro,
    .bb-site-footer__contact,
    .bb-site-footer__social { grid-column: auto; grid-row: auto; }
    .bb-site-footer__contact-grid { grid-template-columns: 1fr; gap: 0; }
    .bb-site-footer__contact-item { min-height: 64px; }
    .wp-block-group.bb-site-footer__bottom {
        display: grid;
        justify-content: stretch;
        margin-block-start: var(--wp--preset--spacing--48);
        gap: var(--wp--preset--spacing--24);
    }
    .bb-site-footer__legal { grid-auto-flow: row; gap: var(--wp--preset--spacing--8); }
}

@media (prefers-reduced-motion: reduce) {
    .bb-site-footer__contact-item,
    .bb-site-footer__social-list li,
    .bb-site-footer__social-list a { transition: none; }
}
