/* Black-filled social links in header and footer.
   Keep the WordPress native Social Icons blocks editable and their SVG masks intact. */
.sm-site-header .sm-native-socials.sm-header-socials .wp-social-link a,
.sm-native-socials.sm-footer-socials .wp-social-link a,
body.sm-inner-page .sm-site-header .sm-native-socials.sm-header-socials .wp-social-link a {
    background: var(--wp--preset--color--ink, #071015) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgb(0 21 31 / 12%);
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* White SVG masks on black circles. */
.sm-site-header .sm-native-socials.sm-header-socials .wp-social-link a::before,
.sm-native-socials.sm-footer-socials .wp-social-link a::before,
body.sm-inner-page .sm-site-header .sm-native-socials.sm-header-socials .wp-social-link a::before {
    background-color: var(--wp--preset--color--white, #f5f8fa) !important;
}

/* A light hover circle with a readable deep-teal icon. */
.sm-site-header .sm-native-socials.sm-header-socials .wp-social-link a:is(:hover, :focus-visible),
.sm-native-socials.sm-footer-socials .wp-social-link a:is(:hover, :focus-visible),
body.sm-inner-page .sm-site-header .sm-native-socials.sm-header-socials .wp-social-link a:is(:hover, :focus-visible) {
    background: #fff !important;
    box-shadow: 0 0 0 2px rgb(0 140 128 / 32%);
    transform: translateY(-1px);
}
.sm-site-header .sm-native-socials.sm-header-socials .wp-social-link a:is(:hover, :focus-visible)::before,
.sm-native-socials.sm-footer-socials .wp-social-link a:is(:hover, :focus-visible)::before,
body.sm-inner-page .sm-site-header .sm-native-socials.sm-header-socials .wp-social-link a:is(:hover, :focus-visible)::before {
    background-color: #008c80 !important;
}

@media (prefers-reduced-motion: reduce) {
    .sm-native-socials :is(.sm-service-vk, .sm-service-max, .sm-service-phone) a {
        transition: none;
    }
    .sm-native-socials :is(.sm-service-vk, .sm-service-max, .sm-service-phone) a:is(:hover, :focus-visible) {
        transform: none;
    }
}

/* Header social links share the utility button surface and icon ink. */
html body .sm-site-header .sm-header-actions .sm-native-socials.sm-header-socials .wp-social-link a {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    background: var(--sm-header-control-surface) !important;
    color: var(--sm-header-control-ink) !important;
    border: 1px solid var(--wp--preset--color--header-control-border) !important;
    box-shadow: 0 3px 12px rgb(0 16 27 / 14%);
}
html body .sm-site-header .sm-header-actions .sm-native-socials.sm-header-socials .wp-social-link a::before {
    background-color: var(--sm-header-control-ink) !important;
}
html body .sm-site-header .sm-header-actions .sm-native-socials.sm-header-socials .sm-service-vk { --sm-social-icon: url(/wp-content/themes/northern-mechanics/assets/icons/control-vk.svg); }
html body .sm-site-header .sm-header-actions .sm-native-socials.sm-header-socials .sm-service-max { --sm-social-icon: url(/wp-content/themes/northern-mechanics/assets/icons/control-max.svg); }
html body .sm-site-header .sm-header-actions .sm-native-socials.sm-header-socials .sm-service-phone { --sm-social-icon: url(/wp-content/themes/northern-mechanics/assets/icons/control-phone.svg); }
html body .sm-site-header .sm-header-actions .sm-native-socials.sm-header-socials .wp-social-link a:hover {
    background: var(--sm-header-control-accent) !important;
    border-color: var(--sm-header-control-accent) !important;
    box-shadow: 0 0 0 3px rgb(0 230 202 / 16%);
    transform: translateY(-1px);
}
html body .sm-site-header .sm-header-actions .sm-native-socials.sm-header-socials .wp-social-link a:is(:hover, :focus-visible)::before {
    background-color: var(--sm-header-control-ink) !important;
}
html body .sm-site-header .sm-header-actions .sm-native-socials.sm-header-socials .wp-social-link a:focus-visible {
    outline: 2px solid var(--sm-header-control-accent) !important;
    outline-offset: 3px;
}

/* Footer uses the same round utility buttons and glyph masks as the header. */
.sm-site-footer {
    --sm-header-control-surface: var(--wp--preset--color--header-control-surface);
    --sm-header-control-ink: var(--wp--preset--color--header-control-ink);
    --sm-header-control-accent: var(--wp--preset--color--header-control-accent);
}
.sm-site-footer .sm-native-socials.sm-footer-socials { align-items: center; }
.sm-site-footer .sm-native-socials.sm-footer-socials .wp-social-link {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    transform: none !important;
}
.sm-site-footer .sm-native-socials.sm-footer-socials .wp-social-link a {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    border: 1px solid var(--wp--preset--color--header-control-border) !important;
    border-radius: 50%;
    background: var(--sm-header-control-surface) !important;
    color: var(--sm-header-control-ink) !important;
    box-shadow: 0 3px 12px rgb(0 16 27 / 14%);
}
.sm-site-footer .sm-native-socials.sm-footer-socials .wp-social-link a::before {
    background-color: var(--sm-header-control-ink) !important;
}
.sm-site-footer .sm-native-socials.sm-footer-socials .sm-service-vk { --sm-social-icon: url(/wp-content/themes/northern-mechanics/assets/icons/control-vk.svg); }
.sm-site-footer .sm-native-socials.sm-footer-socials .sm-service-max { --sm-social-icon: url(/wp-content/themes/northern-mechanics/assets/icons/control-max.svg); }
.sm-site-footer .sm-native-socials.sm-footer-socials .sm-service-phone { --sm-social-icon: url(/wp-content/themes/northern-mechanics/assets/icons/control-phone.svg); }
.sm-site-footer .sm-native-socials.sm-footer-socials .wp-social-link a:hover {
    background: var(--sm-header-control-accent) !important;
    border-color: var(--sm-header-control-accent) !important;
    box-shadow: 0 0 0 3px rgb(0 230 202 / 16%);
    transform: translateY(-1px);
}
.sm-site-footer .sm-native-socials.sm-footer-socials .wp-social-link a:focus-visible {
    outline: 2px solid var(--sm-header-control-accent) !important;
    outline-offset: 3px;
}
