/* =====================================================
   SEITO GLOBAL STYLESHEET
   Typography, Branding, Floating Buttons & Translation
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');

/* =====================================================
   1. SEITO BRAND VARIABLES
===================================================== */

:root {
    /* Primary brand colours */
    --seito-primary: #3BBF93;
    --seito-primary-dark: #279C75;
    --seito-primary-light: #EAF8F2;

    /* PWA navigation colours */
    --seito-pwa-header: #E8F7F1;
    --seito-pwa-footer: #E8F7F1;
    --seito-pwa-nav-icon: #279C75;
    --seito-pwa-nav-active: #3BBF93;
    --seito-pwa-nav-border: #D5EDE3;

    /* Typography */
    --seito-ink: #182B27;
    --seito-muted: #6B7C76;

    /* Surfaces and borders */
    --seito-surface: #F3F7F5;
    --seito-border: #E3EBE7;
    --seito-white: #FFFFFF;
}

/* =====================================================
   2. GLOBAL TYPOGRAPHY
===================================================== */

html,
body {
    font-family: 'Jost', sans-serif;
    color: var(--seito-ink);
}

body {
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: 'Jost', sans-serif;
}

/* =====================================================
   3. SEITO BUTTONS
===================================================== */

.btn-seito {
    background: var(--seito-primary);
    color: #fff;
    border: 0;
    transition: all .25s ease;
}

.btn-seito:hover {
    background: var(--seito-primary-dark);
    color: #fff;
}

/* =====================================================
   4. FLOATING WHATSAPP BUTTON
===================================================== */

.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 25px;
    right: 25px;

    background: #25D366;
    color: #ffffff !important;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
    text-decoration: none !important;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22);

    z-index: 9999;
    transition: all .25s ease;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: #ffffff !important;

    transform: scale(1.08);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* =====================================================
   5. GTRANSLATE FLOATING LANGUAGE WIDGET
===================================================== */

/* Main widget positioning */

#gt_float_wrapper {
    position: fixed !important;

    z-index: 100000 !important;

    bottom: 24px !important;
    left: 24px !important;
    right: auto !important;

    font-family: 'Jost', sans-serif !important;
}

/* Widget container */

.gt_float_switcher {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    font-family: 'Jost', sans-serif !important;
}

/* =====================================================
   6. COMPACT LANGUAGE BUTTON
   Display flag + dropdown caret only
===================================================== */

.gt_float_switcher .gt-selected {
    background: var(--seito-primary) !important;

    border: 1px solid var(--seito-primary) !important;
    border-radius: 12px !important;

    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15) !important;

    transition: all .25s ease !important;
}

.gt_float_switcher .gt-selected:hover {
    background: var(--seito-primary-dark) !important;
    border-color: var(--seito-primary-dark) !important;

    transform: translateY(-2px);
}

/* Current language button */

.gt_float_switcher .gt-selected .gt-current-lang {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;

    min-width: 48px !important;

    padding: 10px 13px !important;

    color: var(--seito-white) !important;
    font-size: 13px !important;
}

/* Hide language code and name */

.gt_float_switcher .gt-selected .gt-lang-code {
    display: none !important;
}

/* Hide other language text inside the closed selector,
   while preserving the flag and dropdown arrow */

.gt_float_switcher .gt-selected .gt-current-lang > span:not(.gt_float_switcher-arrow) {
    display: none !important;
}

/* Selected language flag */

.gt_float_switcher .gt-selected .gt-current-lang img {
    display: inline-block !important;

    width: 24px !important;
    height: auto !important;

    max-width: 24px !important;

    margin: 0 !important;

    border-radius: 3px !important;
}

/* Dropdown caret */

.gt_float_switcher .gt_float_switcher-arrow {
    display: inline-block !important;

    margin-left: 2px !important;

    border-top-color: var(--seito-ink) !important;
}

/* Fallback for alternate arrow class */

.gt_float_switcher .gt-arrow {
    border-top-color: var(--seito-ink) !important;
}

/* =====================================================
   7. LANGUAGE DROPDOWN
===================================================== */

.gt_float_switcher .gt_options {
    background: var(--seito-white) !important;

    border: 1px solid var(--seito-border) !important;
    border-radius: 12px !important;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14) !important;

    /* Independent scrolling */

    height: auto !important;
    max-height: calc(100vh - 130px) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: var(--seito-primary) #F1F5F2;

    margin-bottom: 8px !important;
}

/* Dropdown scrollbar */

.gt_float_switcher .gt_options::-webkit-scrollbar {
    width: 6px;
}

.gt_float_switcher .gt_options::-webkit-scrollbar-track {
    background: #F1F5F2;
    border-radius: 10px;
}

.gt_float_switcher .gt_options::-webkit-scrollbar-thumb {
    background: var(--seito-primary);
    border-radius: 10px;
}

.gt_float_switcher .gt_options::-webkit-scrollbar-thumb:hover {
    background: var(--seito-primary-dark);
}

/* Individual language options */

.gt_float_switcher .gt_options a {
    display: flex !important;

    align-items: center !important;

    padding: 9px 12px !important;

    color: var(--seito-ink) !important;

    font-family: 'Jost', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;

    line-height: 1.4 !important;

    white-space: nowrap !important;

    text-decoration: none !important;

    transition: background .2s ease, color .2s ease;
}

/* Dropdown flags */

.gt_float_switcher .gt_options img {
    width: 20px !important;
    height: auto !important;

    max-width: 20px !important;

    margin-right: 9px !important;

    border-radius: 2px !important;
}

/* Language hover */

.gt_float_switcher .gt_options a:hover {
    background: var(--seito-primary-light) !important;
    color: var(--seito-primary-dark) !important;
}

/* Selected language */

.gt_float_switcher .gt_options a.gt-current-lang {
    background: var(--seito-primary-light) !important;
    color: var(--seito-primary-dark) !important;
    font-weight: 700 !important;
}

/* =====================================================
   8. RESPONSIVE DESIGN
===================================================== */

/* Tablets and smaller screens */

@media (max-width: 768px) {

    .whatsapp-float {
        width: 54px;
        height: 54px;

        bottom: 20px;
        right: 18px;

        font-size: 29px;
    }

    #gt_float_wrapper {
        left: 16px !important;
        bottom: 18px !important;
    }

}

/* Mobile phones */

@media (max-width: 600px) {

    #gt_float_wrapper {
        left: 14px !important;
        bottom: 16px !important;
    }

    .gt_float_switcher .gt-selected .gt-current-lang {
        min-width: 44px !important;
        padding: 9px 11px !important;
    }

    .gt_float_switcher .gt-selected .gt-current-lang img {
        width: 22px !important;
    }

    .gt_float_switcher .gt_options {
        max-height: calc(100vh - 110px) !important;
    }

    .gt_float_switcher .gt_options a {
        padding: 8px 11px !important;
        font-size: 12px !important;
    }

}

/* =====================================================
   9. ACCESSIBILITY AND INTERACTION
===================================================== */

.gt_float_switcher a:focus-visible,
.gt_float_switcher button:focus-visible,
.whatsapp-float:focus-visible {
    outline: 3px solid rgba(59, 191, 147, .45);
    outline-offset: 3px;
}

/* =====================================================
   END OF SEITO GLOBAL STYLESHEET
===================================================== */

/* =====================================================
   GOOGLE TRANSLATE - WHITE DROPDOWN CARET
===================================================== */

/* Target the actual floating switcher arrow */
.gt_float_switcher .gt-selected .gt-current-lang
.gt_float_switcher-arrow {
    color: #ffffff !important;
    border-color: #ffffff !important;
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
}

/* Ensure arrow remains white on hover */
.gt_float_switcher .gt-selected .gt-current-lang:hover
.gt_float_switcher-arrow {
    color: #ffffff !important;
    border-color: #ffffff !important;
    filter: brightness(0) invert(1) !important;
}