/* =========================================================
   HEADER
========================================================= */

:root {
    --header-red: #e30613;
    --header-text: #111111;
    --header-white: #ffffff;
    --header-border: #e5e5e5;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.header-container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding-left: 70px;
    padding-right: 70px;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    width: 100%;
    height: 81px;
    background-color: var(--header-red);
}

.top-bar .header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* =========================================================
   TOP BAR RIGHT
========================================================= */

.top-bar-right {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* =========================================================
   TOP SOCIAL ICONS
========================================================= */

.top-social {
    width: 58px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--header-white);
    text-decoration: none;

    font-size: 18px;

    transition: opacity 0.2s ease;
}

.top-social:hover {
    color: var(--header-white);
    opacity: 0.75;
}


/* =========================================================
   TOP BAR DIVIDER
========================================================= */

.top-divider {
    display: block;

    width: 1px;
    height: 33px;

    margin: 0 25px;

    background-color: rgba(255, 255, 255, 0.8);
}


/* =========================================================
   TOP BAR LINKS
========================================================= */

.top-link,
.translate-button {
    color: var(--header-white);

    font-size: 19px;
    font-weight: 400;

    text-decoration: none;
    white-space: nowrap;
}

.top-link {
    padding: 0 20px;

    transition: opacity 0.2s ease;
}

.top-link:hover {
    color: var(--header-white);
    opacity: 0.75;
}


/* =========================================================
   TRANSLATE BUTTON
========================================================= */

.translate-wrapper {
    position: relative;
}

.translate-button {
    border: none;
    background: transparent;

    padding: 0 18px;

    cursor: pointer;
    font-family: inherit;
}


/* =========================================================
   TRANSLATE DROPDOWN
========================================================= */

.translate-dropdown {
    position: absolute;

    top: calc(100% + 15px);
    right: 0;

    width: 160px;

    display: none;

    padding: 8px 0;

    background-color: var(--header-white);

    border: 1px solid #eeeeee;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    z-index: 9999;
}

.translate-wrapper:hover .translate-dropdown,
.translate-dropdown.active {
    display: block;
}

.translate-dropdown a {
    display: block;

    padding: 9px 16px;

    color: #222222;

    font-size: 14px;
    text-decoration: none;
}

.translate-dropdown a:hover {
    background-color: #f5f5f5;
    color: var(--header-red);
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-navigation {
    width: 100%;
    height: 119px;
    background-color: var(--header-white);
    border-bottom: 1px solid var(--header-border);
    position: relative;
    z-index: 9990;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.main-navigation .header-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Fixed navigation after scrolling */
.main-navigation.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 119px;
    z-index: 99999;
    background-color: var(--header-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Prevent page jump when navigation becomes fixed */
.site-header.nav-fixed {
    padding-bottom: 119px;
}



/* =========================================================
   HEADER LOGOS
========================================================= */

.header-logos {
    display: flex;
    align-items: center;

    gap: 28px;

    flex-shrink: 0;
}


/* =========================================================
   T-TRADING LOGO
========================================================= */

.site-logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}

.site-logo img {
    display: block;

    width: auto;
    max-width: 400px;
    max-height: 100px;

    object-fit: contain;
}


/* =========================================================
   ALABASH INDIA LOGO
========================================================= */

.partner-logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    padding-left: 25px;

    border-left: 1px solid #dddddd;

    text-decoration: none;
}

.partner-logo img {
    display: block;

    width: auto;
    max-width: 150px;
    max-height: 58px;

    object-fit: contain;
}


/* =========================================================
   MAIN MENU
========================================================= */

.main-menu {
    margin-left: auto;
}

.main-menu ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.main-menu > ul {
    display: flex;
    align-items: center;

    gap: 36px;
}


/* =========================================================
   MAIN MENU ITEMS
========================================================= */

.main-menu > ul > li {
    position: relative;
}

.main-menu > ul > li > a {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 15px 0;

    color: var(--header-text);

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 0.7px;

    white-space: nowrap;

    text-decoration: none;

    transition: color 0.2s ease;
}

.main-menu > ul > li > a:hover {
    color: var(--header-red);
}


/* =========================================================
   DROPDOWN ARROW
========================================================= */

.main-menu > ul > li > a i {
    margin-top: 2px;

    font-size: 11px;
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 5px);
    left: 0;

    min-width: 230px;

    display: block;

    padding: 10px 0;

    background-color: var(--header-white);

    border: 1px solid #eeeeee;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 9999;
}


/* =========================================================
   DESKTOP DROPDOWN SHOW
========================================================= */

.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   DROPDOWN ITEMS
========================================================= */

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;

    width: 100%;

    padding: 11px 20px;

    color: #222222;

    font-size: 15px;
    font-weight: 400;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--header-red);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.mobile-menu-button span {
    display: block;

    width: 25px;
    height: 2px;

    background-color: var(--header-text);

    transition: all 0.25s ease;
}


/* =========================================================
   MOBILE MENU BUTTON - ACTIVE
========================================================= */

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   PAGE CONTENT
========================================================= */

.page-content {
    width: 100%;
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media (max-width: 1500px) {

    .header-container {
        padding-left: 45px;
        padding-right: 45px;
    }

    .main-menu > ul {
        gap: 25px;
    }

    .main-menu > ul > li > a {
        font-size: 16px;
    }

    .site-logo img {
        max-width: 240px;
    }

    .partner-logo img {
        max-width: 135px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .header-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .header-logos {
        gap: 20px;
    }

    .main-menu > ul {
        gap: 18px;
    }

    .main-menu > ul > li > a {
        font-size: 14px;
        letter-spacing: 0.4px;
    }

    .site-logo img {
        max-width: 210px;
    }

    .partner-logo {
        padding-left: 18px;
    }

    .partner-logo img {
        max-width: 120px;
    }

}


/* =========================================================
   MOBILE - 991px
========================================================= */

@media (max-width: 991px) {

    .top-bar {
        height: 60px;
    }

    .header-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-navigation {
        height: 85px;
    }

    .main-navigation.sticky-active {
        height: 85px;
    }

    .site-header.nav-fixed {
        padding-bottom: 85px;
    }

    .main-navigation .header-container {
        height: 85px;
    }

    .mobile-menu-button {
        display: flex;
    }

    .main-menu {
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        margin-left: 0;
        display: none;
        background: #ffffff;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        z-index: 99998;
    }

    .main-menu.active {
        display: block;
    }

    .main-menu > ul {
        display: block;
    }

    .main-menu > ul > li {
        width: 100%;
        border-bottom: 1px solid #eeeeee;
    }

    .main-menu > ul > li > a {
        width: 100%;
        padding: 15px 25px;
        font-size: 15px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        display: none;
        padding: 0;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-dropdown.active > .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 12px 25px 12px 45px;
    }

    .has-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* =========================================================
   SMALL MOBILE - 576px
========================================================= */

@media (max-width: 576px) {

    .top-bar {
        height: 55px;
    }

    .main-navigation {
        height: 75px;
    }

    .main-navigation.sticky-active {
        height: 75px;
    }

    .site-header.nav-fixed {
        padding-bottom: 75px;
    }

    .main-navigation .header-container {
        height: 75px;
    }

    .main-menu {
        top: 75px;
    }
}