/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: rgba(20, 20, 20, 0.20);

    transition: background 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.header-container {
    max-width: 1400px;
    width: 100%;
    height: 80px;
    margin: 0 auto;
    padding: 0 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;
        

}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--white);
    text-decoration: none;
}



.logo span {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 4px;
    white-space: nowrap;
    
}



/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;

    margin-left: auto;
    margin-right: 35px;
    
}

.main-nav a {
    position: relative;

    color: var(--white);
    text-decoration: none;

    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.65;
}
/* BUTTON */

.header-btn {
    padding: 14px 24px;
    transform: translateX(20px);

    background: var(--brown-dark);
    color: var(--white);

    border: 1px solid var(--brown-dark);

    text-decoration: none;
    text-transform: uppercase;

    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.8px;

    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

/* მაუსის მიტანისას */
.header-btn:hover {
    background: rgba(235, 232, 228, 0.65);
    color: var(--brown-dark);
    border-color: var(--brown-dark);
    
}




/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;

    width: 44px;
    height: 44px;
    padding: 8px;

    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;

    background: var(--white);
    transition: 0.3s ease;
}


/* =========================
   MOBILE MENU OVERLAY
========================= */

.menu-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.35s ease,
                visibility 0.35s ease;

    z-index: 1998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================
   MOBILE SIDE MENU
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;

    width: min(85%, 380px);
    height: 100vh;
    height: 100dvh;

    padding: 30px 25px;
    box-sizing: border-box;

    background: #211b17;
    color: var(--white);

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    visibility: hidden;

    transition: transform 0.4s ease,
                visibility 0.4s ease;

    z-index: 1999;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}


/* =========================
   MOBILE MENU HEADER
========================= */

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-menu-header > span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--brown-light);
}

.menu-close {
    background: transparent;
    border: none;

    color: var(--white);
    font-size: 34px;
    line-height: 1;

    cursor: pointer;
}


/* =========================
   MOBILE NAVIGATION
========================= */

.mobile-nav {
    display: flex;
    flex-direction: column;

    margin-top: 25px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 5px;

    color: var(--white);
    text-decoration: none;

    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;

    border-bottom: 1px solid rgba(255,255,255,0.10);

    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--brown-light);
}

.mobile-nav a span {
    font-size: 25px;
    color: var(--brown-light);
}


/* =========================
   MOBILE CTA BUTTON
========================= */

.mobile-menu-cta {
    display: block;

    margin-top: auto;
    margin-bottom: 20px;

    padding: 19px 15px;

    background: var(--brown-light);
    color: #211b17;

    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;

    transition: background 0.3s ease;
}

.mobile-menu-cta:hover {
    background: var(--brown-medium);
}


/* =========================
   RESPONSIVE HEADER
   TABLET + MOBILE
========================= */

@media (max-width: 768px) {

    .site-header {
        width: 100%;
    }

    .header-container {
        width: 100%;
        max-width: 100%;
        height: 70px;

        padding: 0 20px;
        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* LOGO LEFT */

    .logo {
        margin: 0;
        gap: 9px;
        flex-shrink: 0;
        
    }


    .logo span {
        font-size: 19px;
        letter-spacing: 3px;
    }

    /* HIDE DESKTOP NAVIGATION */

    .main-nav {
        display: none;
    }

    .header-btn {
        display: none;
    }

    /* SHOW MOBILE MENU BUTTON */

    .menu-toggle {
        display: flex;
        margin-left: auto;
        flex-shrink: 0;
    }
}


/* =========================
   SMALL MOBILE SCREENS
========================= */

@media (max-width: 380px) {

    .header-container {
        padding: 0 15px;
    }

    .logo span {
        font-size: 17px;
        letter-spacing: 2px;
    }

    .mobile-menu {
        width: 88%;
        padding: 25px 20px;
    }

    .mobile-nav a {
        font-size: 16px;
        padding: 18px 5px;
    }
}

/* =========================
   DESKTOP LANGUAGE SWITCHER
========================= */

.desktop-language {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 30px;
    white-space: nowrap;
}

/* OVAL BUTTON */

.language-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 8px 16px;

    background: rgba(20, 20, 22, 0.25);
    border: 1px solid var(--muted-type);
    border-radius: 50px;

    color: var(--white);
    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.language-trigger:hover {
    background: rgba(255, 255, 255, 0.10);
}

/* GLOBE ICON */

.language-globe {
    width: 20px;
    height: 20px;

    color: var(--sand);
    flex-shrink: 0;
}

/* CURRENT LANGUAGE */

.language-current {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--sand);
}

/* =========================
   LANGUAGE DROPDOWN
========================= */

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    width: 100%;
    padding: 5px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 2px;

      background: rgba(20, 20, 22, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(183, 169, 155, 0.4);
    border-radius: 14px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 100;
}

/* OPEN DROPDOWN */

.desktop-language.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* LANGUAGE OPTIONS */

.language-dropdown .lang-btn {
    width: 100%;
    padding: 12px 10px;

    background: transparent;
    border: none;
    border-radius: 9px;

    color: #E8DED2;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;

    text-align: center;
    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.language-dropdown .lang-btn:hover,
.language-dropdown .lang-btn.active {
    background: rgba(183, 169, 155, 0.20);
    color: #E8DED2;
    font-weight: 600;
}

/* MOBILE */

@media (max-width: 768px) {
    .desktop-language {
        display: none;
    }
}
/* =========================
   MOBILE LANGUAGE SWITCHER
========================= */

.mobile-language {
    display: none;
}

@media (max-width: 768px) {

    /* Hide desktop languages */

    .desktop-language {
        display: none;
    }

    /* Mobile language section */

    .mobile-language {
        display: block;
        margin-top: 5px;
    }

    .language-label {
        display: block;
        margin-bottom: 12px;

        color: var(--brown-light);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 2px;
    }

    .language-options {
        display: flex;
        gap: 10px;
    }

    .language-options .lang-btn {
        flex: 1;
        padding: 14px 10px;

        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.12);

        color: var(--white);
        font-size: 13px;
        font-weight: 500;

        transition: background 0.3s ease,
                    color 0.3s ease;
    }

    .language-options .lang-btn.active {
        background: var(--brown-light);
        border-color: var(--brown-light);
        color: #211b17;
    }

    .language-options .lang-btn:hover {
        border-color: var(--brown-light);
    }

    /* Keep CTA above language selector */

    .mobile-menu-cta {
        margin-bottom: 20px;
    }
}

/* =========================
   TABLET RESPONSIVE HEADER
========================= */

@media (min-width: 769px) and (max-width: 1100px) {

    .header-container {
        width: 100%;
        max-width: 100%;
        padding: 0 30px;
        box-sizing: border-box;
    }

    /* Hide desktop navigation */

    .main-nav,
    .header-btn,
    .desktop-language {
        display: none;
    }

    /* Show hamburger menu */

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    /* Logo */

    .logo span {
        font-size: 22px;
        letter-spacing: 4px;
    }

    /* Mobile menu language options */

    .mobile-language {
        display: block;
        margin-top: 5px;
    }

    .language-label {
        display: block;
        margin-bottom: 12px;
        color: var(--brown-light);
        font-size: 11px;
        letter-spacing: 2px;
    }

    .language-options {
        display: flex;
        gap: 10px;
    }

    .language-options .lang-btn {
        flex: 1;
        padding: 14px 10px;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.12);
        color: var(--white);
    }

    .language-options .lang-btn.active {
        background: var(--brown-light);
        color: #211b17;
    }
}

/* Temporarily hide language switcher */
.desktop-language {
    display: none !important;
}

/* Temporarily hide language switcher */
.mobile-language {
    display: none !important;
}