﻿
/* =========================================
   IRAN PLATINUM — LUXURY HEADER
   IVORY / NAVY / CHAMPAGNE / SILVER
   Compatible with existing header structure
========================================= */

:root {
    --ip-header-bg: #F7F6F2;
    --ip-header-navy: #263C49;
    --ip-header-gold: #C5A46D;
    --ip-header-teal: #55AAA5;
    --ip-header-border: #E3E5E2;
    --ip-header-text: #40535D;
}

/* HEADER BASE */

#header.header-default.header-style-2 {
    width: 100%;
    background: var(--ip-header-bg) !important;
    border-top: 3px solid var(--ip-header-gold);
    border-bottom: 1px solid var(--ip-header-border);
    box-shadow: 0 5px 22px rgba(38,60,73,.045);
    position: relative;
    z-index: 999;
    direction: rtl;
}

#header .main-header {
    width: 100%;
    background: var(--ip-header-bg) !important;
    border: 0 !important;
}

#header .main-header.line {
    border-bottom: 0 !important;
}

#header .container-full {
    max-width: 100%;
}

#header .wrapper-header {
    min-height: 88px;
    display: flex;
    align-items: center;
}

/* LOGO */

#header .logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 0;
}

#header .logo-header img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 65px;
    object-fit: contain;
}

#header .logo-header:hover {
    opacity: .88;
}

/* DESKTOP NAVIGATION */

#header .box-navigation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header .box-nav-ul {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0 !important;
    list-style: none;
    padding: 0;
    margin: 0;
    direction: rtl;
}

#header .box-nav-ul > li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88px;
    margin: 0;
    padding: 0 13px;
}

#header .box-nav-ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    color: var(--ip-header-navy) !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .25s ease;
}

/* GOLD UNDERLINE */

#header .box-nav-ul > li > a:after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 23px;
    width: 0;
    height: 2px;
    background: var(--ip-header-gold);
    transform: translateX(50%);
    transition: width .25s ease;
}

#header .box-nav-ul > li:hover > a,
#header .box-nav-ul > li.active > a,
#header .box-nav-ul > li.current-menu-item > a {
    color: #A17D42 !important;
}

#header .box-nav-ul > li:hover > a:after,
#header .box-nav-ul > li.active > a:after,
#header .box-nav-ul > li.current-menu-item > a:after {
    width: 24px;
}

/* DROPDOWN MENU */

#header .box-nav-ul li {
    position: relative;
}

#header .box-nav-ul .sub-menu,
#header .box-nav-ul .children {
    position: absolute;
    top: calc(100% - 5px);
    right: 0;
    min-width: 225px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid #E8E5DD;
    border-top: 2px solid var(--ip-header-gold);
    box-shadow: 0 15px 35px rgba(38,60,73,.10);
    border-radius: 0 0 7px 7px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 1000;
}

#header .box-nav-ul li:hover > .sub-menu,
#header .box-nav-ul li:hover > .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#header .box-nav-ul .sub-menu li,
#header .box-nav-ul .children li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#header .box-nav-ul .sub-menu li a,
#header .box-nav-ul .children li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 18px;
    color: var(--ip-header-text) !important;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.8;
    text-decoration: none;
    transition: all .2s ease;
}

#header .box-nav-ul .sub-menu li a:hover,
#header .box-nav-ul .children li a:hover {
    background: #F5F3ED;
    color: #A17D42 !important;
    padding-right: 23px;
}

/* SUBMENU INDICATOR */

#header .box-nav-ul > li.menu-item-has-children > a:before,
#header .box-nav-ul > li.has-children > a:before {
    content: "";
    width: 6px;
    height: 6px;
    border-left: 1px solid var(--ip-header-gold);
    border-bottom: 1px solid var(--ip-header-gold);
    transform: rotate(-45deg);
    margin-right: 8px;
    margin-top: -3px;
    flex-shrink: 0;
}

/* MOBILE MENU ICON */

#header .tf-lg-hidden > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border: 1px solid #DED8CA;
    border-radius: 5px;
    color: var(--ip-header-navy);
    background: #FFFFFF;
    transition: all .25s ease;
}

#header .tf-lg-hidden > a:hover {
    background: var(--ip-header-navy);
    border-color: var(--ip-header-navy);
    color: #FFFFFF;
}

#header .tf-lg-hidden svg {
    width: 23px;
    height: 17px;
    color: inherit;
}

/* MOBILE OFFCANVAS - IF PRESENT */

#mobileMenu {
    background: var(--ip-header-bg);
    color: var(--ip-header-navy);
    border-left: 1px solid var(--ip-header-border);
}

#mobileMenu .offcanvas-header {
    padding: 20px;
    border-bottom: 1px solid var(--ip-header-border);
}

#mobileMenu .offcanvas-title {
    color: var(--ip-header-navy);
    font-size: 16px;
    font-weight: 700;
}

#mobileMenu .box-nav-ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    width: 100%;
    padding: 12px 18px;
    margin: 0;
    list-style: none;
}

#mobileMenu .box-nav-ul > li {
    display: block;
    width: 100%;
    min-height: auto;
    padding: 0;
    border-bottom: 1px solid var(--ip-header-border);
}

#mobileMenu .box-nav-ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    color: var(--ip-header-navy) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

#mobileMenu .box-nav-ul > li > a:after {
    display: none;
}

#mobileMenu .box-nav-ul .sub-menu,
#mobileMenu .box-nav-ul .children {
    position: static;
    display: none;
    min-width: 100%;
    padding: 0 12px 10px;
    margin: 0;
    background: #F0F1ED;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

#mobileMenu .box-nav-ul li:hover > .sub-menu,
#mobileMenu .box-nav-ul li:hover > .children {
    display: block;
}

#mobileMenu .box-nav-ul .sub-menu li a,
#mobileMenu .box-nav-ul .children li a {
    display: block;
    padding: 10px;
    color: #52636B !important;
    font-size: 11px;
}

/* TABLET */

@@media (max-width: 1199px) {

    #header .box-nav-ul > li {
        padding: 0 8px;
    }

    #header .box-nav-ul > li > a {
        font-size: 11px;
    }

}

/* MOBILE HEADER */

@@media (max-width: 991px) {

    #header .wrapper-header {
        min-height: 72px;
    }

    #header .logo-header img {
        max-height: 54px;
    }

    #header .tf-lg-hidden {
        display: flex;
        align-items: center;
    }

}

/* SMALL MOBILE */

@@media (max-width: 575px) {

    #header .wrapper-header {
        min-height: 66px;
    }

    #header .logo-header img {
        max-height: 47px;
    }

    #header .tf-lg-hidden > a {
        width: 39px;
        height: 39px;
    }

}

/* ACCESSIBILITY */

#header a:focus-visible {
    outline: 2px solid var(--ip-header-teal);
    outline-offset: 4px;
}

@@media (prefers-reduced-motion: reduce) {

    #header *,
    #mobileMenu * {
        transition: none !important;
        animation: none !important;
    }

}
