.country-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(13, 59, 46, 0.48);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.country-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-width: 158px;
    border: 0;
    padding: 0.38rem 0.5rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    outline: 0;
}

.country-name { flex: 1; text-align: left; }
.country-flag-image {
    display: block;
    width: 22px;
    height: 15px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.country-chevron {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid currentColor;
    pointer-events: none;
    transition: transform 0.2s ease;
}
.country-control.is-open .country-chevron { transform: rotate(180deg); }
.country-control.is-switching .country-toggle,
.country-control.is-switching .country-local-time { opacity: 0.62; }
.country-control.is-switching::after {
    content: "";
    position: absolute;
    right: 0.35rem;
    bottom: -0.28rem;
    width: 34px;
    height: 2px;
    background: #b98a44;
    animation: country-progress 0.65s ease-in-out infinite alternate;
}
@keyframes country-progress {
    from { transform: scaleX(0.3); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}
.country-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 80;
    display: grid;
    min-width: 190px;
    padding: 0.3rem;
    border: 1px solid rgba(185, 138, 68, 0.35);
    background: #fff9ef;
    color: #211b16;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.country-control.is-open .country-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.country-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    border: 0;
    padding: 0.55rem 0.65rem;
    background: transparent;
    color: #211b16;
    cursor: pointer;
    font: inherit;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}
.country-option:hover,
.country-option:focus-visible,
.country-option[aria-selected="true"] {
    background: rgba(185, 138, 68, 0.14);
    color: #0d3b2e;
    outline: 0;
}
.country-local-time {
    min-width: 3.2rem;
    padding-left: 0.5rem;
    border-left: 1px solid currentColor;
    margin-right: 0.5rem;
    letter-spacing: 0.08em;
    text-align: center;
}
.nav-scrolled .country-control { border-color: rgba(13, 59, 46, 0.3); background: #fff9ef; color: #0d3b2e; }
.legal-links { display: inline-flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; justify-content: center; line-height: 1; }
.legal-links a { font-size: 9px; letter-spacing: 0.12em; }

footer .legal-links { margin-top: 0.2rem; }
footer { padding-top: 2.5rem !important; padding-bottom: 1.25rem !important; }
footer p, footer span, footer a { color: #ffffff; }
footer h4 { color: #B98A44; }

/* Keep Google Translate functional without showing its banner or injected UI. */
html { margin-top: 0 !important; }
body { top: 0 !important; }
.goog-te-banner-frame, .goog-te-balloon-frame, iframe.skiptranslate, iframe[class*="VIpgJd"], .goog-te-gadget, #google_translate_element { display: none !important; }

@media (max-width: 639px) {
    /* Language selection is available on desktop only. */
    .country-control { display: none; }
}

@media (min-width: 768px) {
    .legal-links a { font-size: 10px; }
}

/* Use the mobile-style navigation on laptop and desktop screens. */
@media (min-width: 1024px) {
    nav .hidden.lg\:flex { display: none !important; }
    nav #menu-btn.lg\:hidden { display: flex !important; }
    nav #mobile-menu.lg\:hidden { display: flex !important; }
}

/* Language choices sit directly below the mobile navigation links. */
@media (max-width: 1023px) {
    #mobile-menu {
        /* Keep the drawer and its language controls above the floating WhatsApp CTA. */
        z-index: 110;
    }

    #mobile-menu .mobile-language-picker {
        flex: 0 0 auto;
        margin-top: 0 !important;
        padding: 0 1.5rem 5.5rem; /* Increased bottom padding to clear WhatsApp button */
        border-top: 1px solid rgba(185, 138, 68, 0.18);
    }

    #mobile-menu .mobile-language-heading {
        margin: 0 0 0.75rem;
        color: #0d3b2e;
        font-size: 0.64rem;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
    }

    #mobile-menu .mobile-language-options {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    #mobile-menu .mobile-language-option {
        appearance: none;
        cursor: pointer;
        border: 1px solid rgba(13, 59, 46, 0.22);
        border-radius: 999px;
        padding: 0.42rem 0.72rem;
        background: transparent;
        color: #0d3b2e;
        font-family: "Montserrat", sans-serif;
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.03em;
        line-height: 1.1;
    }

    #mobile-menu .mobile-language-option:hover,
    #mobile-menu .mobile-language-option:focus-visible {
        border-color: #b98a44;
        color: #0d3b2e;
        outline: 0;
    }

    #mobile-menu .mobile-language-option[aria-pressed="true"] {
        border-color: #b98a44;
        background: #b98a44;
        color: #fff;
        font-weight: 600;
    }

    #mobile-menu .mobile-language-option:active {
        transform: scale(0.97);
    }
}
