/* Menüü nupu stiil */
.mobiili-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    color: inherit;
    font-family: inherit;
    padding: 0;
    text-align: center;
    display: block;
    width: 100%;
}

.mobiili-menu-toggle .icon-open,
.mobiili-menu-toggle .icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobiili-menu-toggle.active .icon-open {
    display: none;
}

.mobiili-menu-toggle:not(.active) .icon-close {
    display: none !important;
}

.mobiili-menu-toggle.active .icon-close {
    display: flex;
}

/* Sticky menüü ülaosas */
.sticky-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-mobile-menu.show {
    display: block;
    transform: translateY(0);
}

.sticky-menu-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-menu-text {
    font-size: 18px;
    color: #15284b;
    font-weight: bold;
}

.sticky-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #15284b;
    padding: 8px 12px;
    border-radius: 4px;
    background: #f5f5f5;
}

.sticky-menu-button:hover {
    background: #e5e5e5;
}

/* Menüü sisu - TÄIELIKULT PEIDETUD ALGUSES */
.mobiili-menu-content {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
    transition: top 0s;
    -webkit-overflow-scrolling: touch;
}

/* Menüü AKTIIVNE - NÄHTAV */
.mobiili-menu-content.active {
    top: 0;
}

/* Sulgemise nupp paremas ülanurgas */
.mobiili-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    z-index: 1000000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo avanenud menüüs üleval */
.mobiili-menu-logo {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.menu-logo-large {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Keelenupu ala keskel - LIHTSUSTATUD */
.mobiili-menu-languages {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

/* Keelenupu linkide joondamine - MINIMAALNE */
.mobiili-menu-languages a {
    margin: 0 10px;
    padding: 8px 15px;
    display: inline-block;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.mobiili-menu-languages a:hover {
    background: #e9e9e9;
    color: #0073aa;
}

/* Menüü list - BULLETS EEMALDATUD */
.mobiili-menu-list {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
}

.mobiili-menu-list li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobiili-menu-list li:before {
    display: none !important;
    content: none !important;
}

.mobiili-menu-list a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #15284b;
    font-size: 18px;
    border-bottom: 1px solid #eee;
}

.mobiili-menu-list a:hover {
    background-color: #f5f5f5;
}

/* Kontaktide ala all */
.mobiili-menu-contacts {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.2; /* Kontrollib rea kõrgust */
}

/* PARANDATUD JOONDUS - FontAwesome ikoonid */
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; /* Fikseeritud laius */
    height: 20px; /* Fikseeritud kõrgus */
    font-size: 16px; /* Ikooni suurus */
    color: #15284b;
    font-family: FontAwesome !important;
    font-weight: 900 !important;
    line-height: 1; /* Eemaldab lisakõrguse */
    vertical-align: middle; /* Vertikaalne joondus */
}

/* FontAwesome ikoonid - peidame emoji teksti */
.contact-icon {
    font-size: 0; /* Peida emoji tekst */
    text-indent: -9999px; /* Peida tekst täielikult */
    overflow: hidden;
}

.contact-icon:before {
    font-size: 16px; /* FontAwesome ikooni suurus */
    text-indent: 0; /* Taasta FontAwesome ikoon */
    line-height: 1;
    display: block;
}

/* FontAwesome ikoonide content */
.contact-item:nth-child(1) .contact-icon:before {
    content: "\f095"; /* FontAwesome telefoni ikoon */
}

.contact-item:nth-child(2) .contact-icon:before {
    content: "\f0e0"; /* FontAwesome e-maili ikoon */
}

/* Teksti joondus */
.contact-item a {
    color: #15284b;
    text-decoration: none;
    line-height: 1.2; /* Sama rea kõrgus nagu ikoonil */
    vertical-align: middle; /* Vertikaalne joondus */
    display: inline-flex;
    align-items: center;
}

.contact-item a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Body lukustamine kui menüü lahti */
body.mobiili-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* TÄIENDAV - pane menüü konteiner ära peitmiseks */
.mobiili-menu {
    position: relative;
}

/* Responsiivne disain */
@media (max-width: 768px) {
    .mobiili-menu-content {
        padding: 15px;
    }

    .menu-logo-large {
        height: 50px;
    }

    .mobiili-menu-languages a {
        margin: 0 5px;
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Mobiilis menüü linkide stiil */
    .mobiili-menu-list a {
        font-size: 18px;
        color: #15284b;
    }

    /* Mobiilis kontaktide stiil */
    .contact-item {
        font-size: 18px;
    }

    .contact-item a {
        color: #15284b;
    }

    .contact-icon {
        color: #15284b;
    }
}
