/* Facebook and Instagram in the main menu with their official icons (owner, 17.11.2026). Markup: Barami_Nav_Walker
   and barami_social_icon() in functions.php. */

/* Desktop header row: the two icons only, side by side. */
#header-nav .barami-menu-social {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
#header-nav .barami-menu-social__link {
    display: inline-flex;
    line-height: 0;
    opacity: .9;
    transition: opacity .3s ease, transform .3s ease;
}
#header-nav .barami-menu-social__link:hover,
#header-nav .barami-menu-social__link:focus-visible { opacity: 1; transform: translateY(-1px); }
#header-nav .barami-social-icon { width: 20px; height: 20px; display: block; }
/* The white header blackens its SVGs (filter: brightness(0)) for the dark logo; the official colours stay. */
header .barami-social-icon,
header .barami-flag-icon,
#mobile-menu .barami-social-icon,
#mobile-menu .barami-flag-icon { filter: none !important; }

/* Language switch as a round flag (owner, 17.11.2026). Same size and spacing as the social icons. */
.barami-menu-flag { display: inline-flex; align-items: center; line-height: 0; }
.barami-flag-icon { display: block; width: 22px; height: 22px; border-radius: 50%; }
#header-nav .barami-menu-flag { opacity: .95; transition: opacity .3s ease, transform .3s ease; }
/* Symmetric: the flag sits as close to the social icons as they sit to each other (14 px, not the 40 px row gap). */
#header-nav .barami-menu-social + .barami-menu-flag { margin-inline-start: -26px; }
#header-nav .barami-menu-flag:hover,
#header-nav .barami-menu-flag:focus-visible { opacity: 1; transform: translateY(-1px); }
#mobile-menu .barami-mobile-menu > li.barami-menu-flag-item > a.barami-menu-flag { display: flex; padding-top: 15px; padding-bottom: 15px; }
#mobile-menu .barami-menu-flag-item .barami-flag-icon { width: 24px; height: 24px; }

/* Phone menu: icon next to the word. */
#mobile-menu .barami-mobile-menu > li.barami-menu-social-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
}
#mobile-menu .barami-menu-social-item .barami-social-icon { width: 22px; height: 22px; flex: none; display: block; }
