/* ============================================================
   NAVIGATION CSS
   ============================================================

   1. HEADER WRAPPER
   2. LOGO
   3. DESKTOP NAV
   4. DROPDOWNS
      - Standard
      - Multi-column
   5. CTA BUTTON
   6. MOBILE MENU BUTTON
   7. MOBILE NAV
   8. LANGUAGE SWITCHER

============================================================ */


/* ============================================================
   1. HEADER WRAPPER
============================================================ */

/* HEADER WITH MOVING TEXTURE */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 98px;

    background: linear-gradient(
    120deg,
    #2e1408 0%,
    #7a3a1c 30%,
    #c96a2e 50%,
    #7a3a1c 70%,
    #2e1408 100%
);

    background-size: 300% 300%;
    animation: headerFlow 18s ease infinite;

    border-bottom: 1px solid #551212;

    display: flex;
    align-items: center;

    z-index: 9999;
}

/* ANIMATION */

@keyframes headerFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header-inner {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ============================================================
   2. LOGO
============================================================ */

.site-header .logo img {
    width: 100%;
    max-width: 460px;
    margin-top: 64px;
    height: auto;
    display: block;

 
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {

    .site-header .logo img {
        max-width: 120px !important;
        margin-top: 40px;
    }

    .header-inner {
        justify-content: center;
    }

    .site-header .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

}
/* ============================================================
   3. DESKTOP NAV
============================================================ */

.desktop-nav {
    display: none;
}

@media (min-width: 1200px) {
    .desktop-nav {
        display: block;
        padding-right: 140px;
    }

    .desktop-nav ul {
        display: flex;
        align-items: center;
        gap: 28px;
        list-style: none;
    }
}

.desktop-nav ul li {
    position: relative;
    padding-top: 13px;
}

.desktop-nav ul li a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.2px;

    color: #fff;
    opacity: 0.9;

    padding: 5px 0;
    display: inline-block;

    transition: all 0.25s ease;
}

 

.desktop-nav ul li a:hover {
    opacity: 1;
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}
/* ============================================================
   4. DROPDOWNS
============================================================ */

/* Parent safety */
.desktop-nav li,
.has-dropdown {
    position: relative;
    margin-top: 10px;
}

/* ============================================================
   STANDARD DROPDOWN
============================================================ */

.has-dropdown .dropdown:not(.dropdown-multi) {
    position: absolute;
    top: 100%;
    left: 0;

    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    min-width: 240px;
    padding: 12px 0;

    background: var(--deep-black);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;

    box-shadow: 0 18px 35px rgba(0,0,0,0.28);

    transform: translateY(10px);
    z-index: 9999;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.has-dropdown:hover > .dropdown:not(.dropdown-multi) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Standard dropdown items */
.dropdown:not(.dropdown-multi) li {
    list-style: none;
}

.dropdown:not(.dropdown-multi) li a {
    display: block;
    padding: 10px 18px;

    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--chrome-white);

    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown:not(.dropdown-multi) li a:hover {
    background: var(--ember-orange);
    color: #000;
}

/* ============================================================
   MULTI-COLUMN DROPDOWN
============================================================ */

.has-dropdown .dropdown.dropdown-multi {
    position: absolute;
    top: 100%;
    left: 50%;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    min-width: 580px;
    padding: 20px;

    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;

    background: linear-gradient(
        120deg,
        #45210e,
        #5a2a14,
        #3b1c0c,
        #45210e
    );

    box-shadow: 0 20px 40px rgba(0,0,0,0.35);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(12px);

    z-index: 9999;

    transition:
        opacity 0.25s ease,
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.25s ease;
}

.has-dropdown:hover > .dropdown.dropdown-multi {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}

/* Column block */
.dropdown-column {
    display: flex;
    flex-direction: column;
}

/* Column title */
.dropdown-column h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: var(--ember-orange);
    margin-bottom: 10px;
}

/* Column links */
.dropdown-column a {
    display: block;

    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--chrome-white);

    padding: 6px 0;
    transition: color 0.2s ease;
}

.dropdown-column a:hover {
    color: var(--ember-orange);
}

/* ============================================================
   HOVER BUFFER
============================================================ */

.desktop-nav li.has-dropdown {
    padding-bottom: 10px;
}
/* ============================================================
   5. CTA BUTTON
============================================================ */

.desktop-nav .nav-cta a, .btn-primary {
    background: var(--ember-orange) !important;
    padding: 10px 18px;
    color: #FFF;
    border-radius: 8px;
    font-weight: 700;
    margin-top: -10px;
    transition: all 0.25s ease;
}

.desktop-nav .nav-cta a:hover, .btn-primary:hover {
    background: #D90000 !important;
    color: #fff;
}

/* ============================================================
   6. MOBILE MENU BUTTON
============================================================ */

.menu-btn {
    position: absolute;

    right: 20px;           /* 👈 move to right */
    top: 50%;
    transform: translateY(-50%);

    font-size: 28px;
    cursor: pointer;
    color: var(--chrome-white);

    z-index: 10000;
}

@media (min-width: 1200px) {
    .menu-btn {
        display: none;
    }
}

/* ============================================================
   7. MOBILE NAV
============================================================ */

.mobile-nav {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;

    background: linear-gradient(
    120deg,
    rgba(69, 33, 14, 0.88),
    rgba(90, 42, 20, 0.88),
    rgba(59, 28, 12, 0.88),
    rgba(69, 33, 14, 0.88)
);

backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 9998;
    
    padding: 90px 20px 30px;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ============================================================
   TOP LEVEL LIST
============================================================ */

.mobile-nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav > ul > li {
    margin-bottom: 10px;
}

/* ============================================================
   TOP LEVEL LINKS / DROPDOWN TRIGGERS
============================================================ */

.mobile-nav > ul > li > a,
.mobile-nav > ul > li.mobile-dropdown > span {
    display: block;

    padding: 14px 16px;

    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    color: var(--chrome-white);
    cursor: pointer;

    background: #7b6329;
    border-radius: 20px;

    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav > ul > li > a:hover,
.mobile-nav > ul > li.mobile-dropdown > span:hover {
    background: #687525;
    color: #fff;
}

/* ============================================================
   DROPDOWN WRAPPER
============================================================ */

.mobile-dropdown ul {
    display: none;
    list-style: none;

    margin: 8px 0 12px;
    padding: 0 10px;
}

.mobile-dropdown.open ul {
    display: block;
}

/* ============================================================
   DROPDOWN LINKS
============================================================ */

.mobile-dropdown ul li {
    margin-bottom: 6px;
}

.mobile-dropdown ul li a {
    display: block;

    padding: 12px 14px;

    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;

    color: #fff;

    background: rgba(255,255,255,0.08);
    border-radius: 16px;

    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-dropdown ul li a:hover {
    background: #687525;
    color: #fff;
}

/* ============================================================
   CTA BUTTON INSIDE MOBILE NAV
============================================================ */

.mobile-nav .btn.btn-primary,
.mobile-nav .open-enquiry.btn.btn-primary {
    display: block;
    width: 100%;

    padding: 14px 16px;
    margin-bottom: 10px;

    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    border-radius: 20px;
}

/* ============================================================
   MOBILE BRAND AREA (OPTIONAL)
============================================================ */

.mobile-nav-brand {
    text-align: center;
    margin-bottom: 20px;
}

.mobile-nav-brand img {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
}

/* ============================================================
   SCROLLBAR
============================================================ */

.mobile-nav::-webkit-scrollbar {
    width: 8px;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
}

/* ============================================================
   HIDE FLOATING CHAT BUTTONS WHEN MOBILE MENU IS OPEN
============================================================ */

body.mobile-menu-open .chat-buttons {
    opacity: 0;
    pointer-events: none;
}
/* ============================================================
   8. LANGUAGE SWITCHER
============================================================ */

.lang-switch {
    position: fixed;
    top: 34px;
    right: 12px;

    z-index: 10001;

    background: #5D7A40;
    border-radius: 8px;
    padding: 4px 8px;
    
}

.lang-switch select {
    border: none;
    color: var(--chrome-white);
    cursor: pointer;
    background: #5D7A40;
}


/* MOBILE POSITION FIX */

@media (max-width: 1200px) {

    .lang-switch {
    position: absolute;

    left: 12px;
    top: 27px;
    max-width: 70px;
    display: inline-block;   /* 👈 key fix */
    width: auto;             /* 👈 prevent stretch */

    background: #5D7A40;
    border-radius: 8px;
    padding: 4px 8px;

    z-index: 10001 !important;
    }
    
    .lang-switch select {
        width: auto;             /* 👈 stop full width */
        min-width: unset;

        border: none;
        background: #5D7A40;
        color: var(--chrome-white);

        cursor: pointer;
        
    }
    
    .lang-switch {
        white-space: nowrap;
    }    
    
}