/*

Theme Name: Hello Elementor Child

Theme URI: https://github.com/elementor/hello-theme/

Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team

Author: Elementor Team

Author URI: https://elementor.com/

Template: hello-elementor

Version: 1.0.1

Text Domain: hello-elementor-child

License: GNU General Public License v3 or later.

License URI: https://www.gnu.org/licenses/gpl-3.0.html

*/

:root {
    --cbs-primary-color: #b46c54;
    /* Darker terracotta for small text on white (5.6:1 contrast) */
    --cbs-primary-dark: #9a5640;
}

/* Visually hidden, still read by screen readers */
.cbs-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------
   Header language switcher ([cbs_lang_toggle] shortcode)
   Segmented "EN | FR" control: current language is a white pill,
   other language(s) are links on a darkened track.
   Contrast (WCAG AA, 4.5:1 needed): white on track 5.8:1,
   dark terracotta on white 5.6:1. (White on plain #b46c54 is only 4.0:1.)
------------------------------------------------------------------ */
.cbs-lang-switch__list {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 2px;
    list-style: none;
    background-color: rgba(0, 0, 0, .2);
    border-radius: 30px;
}

.cbs-lang-switch__list li {
    margin: 0;
    padding: 0;
}

.cbs-lang-switch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 28px;
    padding: 2px 10px;
    border-radius: 30px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.cbs-lang-switch__item.is-current {
    color: var(--cbs-primary-dark);
    background-color: #fff;
    cursor: default;
}

a.cbs-lang-switch__item:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, .2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.cbs-lang-switch__item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .cbs-lang-switch__item {
        min-width: 44px;
        min-height: 32px;
    }
}
