/* ===== Base LTR Settings — English (Inter) ===== */
html { overflow-x: hidden; }
body {
    font-family: 'Inter', Arial, sans-serif !important;
    direction: ltr;
    text-align: left;
    color: #64748b;
    overflow-x: hidden;
    background: #071a35;
}

h1, h2, h3, h4, h5, h6,
p, a, span, div, li, ul, ol,
input, textarea, select, button, label, td, th {
    font-family: 'Inter', Arial, sans-serif !important;
}

/* ===== Top Header ===== */
.header-top {
    padding: 10px 0;
    background: #071a35;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 998;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-top.header-scrolled {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.header-top .d-md-flex { flex-direction: row; justify-content: flex-start; }
.header-top h6 {
    margin-left: 0 !important;
    margin-right: 1.5rem;
    color: #94a3b8 !important;
    font-size: 12px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
/* آدرس اجازه شکستن به دو خط را دارد */
.header-top h6:last-child {
    white-space: normal;
    line-height: 1.5;
    align-items: flex-start;
    max-width: 340px;
}
.header-top h6 span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.header-top h6 i { color: #60a5fa; font-size: 14px; line-height: 1; }

.header-top .social-links ul {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none !important;
}
.header-top .social-links ul li { display: inline-flex; margin: 0; }
.header-top .social-links ul li a {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all .25s;
}
.header-top .social-links ul li a:hover {
    background: #1a56db;
    color: #fff;
}

/* ===== Main Header ===== */
#header {
    padding: 0;
    position: fixed;
    left: 0; right: 0;
    top: 47px;
    z-index: 997;
    transition: all .4s;
    background: rgba(7,26,53,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

#header.header-scrolled {
    top: 0;
    background: rgba(7,26,53,.98);
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

#logo { padding: 14px 0; }
#logo img { max-height: 48px; }

#header .row.d-flex {
    justify-content: flex-start !important;
    gap: 2.5rem;
}

/* ===== Navigation ===== */
#nav-menu-container { margin: 0; }
#nav-menu-container ul.nav-menu > li { float: left; }
.nav-menu .menu-has-children > ul { left: 0; right: auto; }
.nav-menu .menu-has-children > ul li a { text-align: left; }

.nav-menu a {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 20px 14px !important;
    text-transform: none !important;
    transition: color .25s !important;
    letter-spacing: .3px;
}

.nav-menu a:hover,
.nav-menu li.menu-active > a { color: #60a5fa !important; }

.nav-menu ul {
    background: #0d2b55 !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 8px !important;
    padding: 8px !important;
    margin-top: 0 !important;
}

.nav-menu ul li a {
    color: #cbd5e1 !important;
    border-radius: 6px;
    padding: 8px 14px !important;
    font-size: 13px !important;
}

.nav-menu ul li a:hover { background: rgba(96,165,250,.12) !important; color: #60a5fa !important; }

/* ===== Footer ===== */
.footer-area {
    background: #071a35;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-widget ul { padding-left: 0; }
.footer-widget .single-widget-home ul li { text-align: left; }
.footer-widget .single-widget-home ul li a {
    color: #94a3b8 !important;
    font-size: 14px;
    transition: color .25s;
    display: inline-block;
    padding: 3px 0;
}
.footer-widget .single-widget-home ul li a:hover { color: #60a5fa !important; }
.footer-widget .single-widget-home ul li a::before {
    content: '→ ';
    font-size: 11px;
    opacity: .6;
}

.footer-area h3 {
    color: #fff !important;
    font-size: 15px !important;
    text-transform: none !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(26,86,219,.5);
    display: inline-block;
}

.footer-area p { color: #94a3b8; font-size: 14px; text-align: justify; }
.footer-area p i { color: #60a5fa; margin-right: 8px; }

.footer-area .social-icons ul {
    display: flex;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.footer-area .social-icons ul li a {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all .25s;
}

.footer-area .social-icons ul li a:hover {
    background: #1a56db;
    color: #fff !important;
}

.footer-copyright {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}

.footer-copyright span { color: #64748b; font-size: 13px; }

/* ===== Superfish arrow fix ===== */
.sf-arrows .sf-with-ul:after { content: none !important; }
.sf-arrows .sf-with-ul { padding-right: 14px !important; padding-left: 14px !important; }

@media (min-width: 768px) and (max-width: 991.98px) {
    #header { top: 0; }
    .header-top { position: relative; }
}
@media (max-width: 767.98px) {
    #header { top: 0; }
    .header-top { display: none; }
}

/* ===== Mobile Language Strip + Desktop Separator ===== */
.lang-strip-mobile { display: none; }
.lang-social-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.12);
    margin: 0 10px;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    #header .row.d-flex { flex-wrap: wrap; }

    .lang-strip-mobile {
        display: flex;
        width: 100%;
        order: 10;
        justify-content: center;
        align-items: center;
        gap: 4px;
        padding: 6px 0 9px;
        border-top: 1px solid rgba(255,255,255,.07);
    }
    .lang-strip-mobile a {
        color: #94a3b8;
        text-decoration: none !important;
        font-size: 12px;
        font-weight: 600;
        padding: 3px 12px;
        border-radius: 20px;
        transition: all .2s;
        white-space: nowrap;
    }
    .lang-strip-mobile a:hover { color: #fff; background: rgba(255,255,255,.08); }
    .lang-strip-mobile a.lang-active {
        color: #60a5fa;
        background: rgba(96,165,250,.1);
        border: 1px solid rgba(96,165,250,.22);
    }
    .lang-strip-mobile .lang-sep { color: #334155; font-size: 10px; user-select: none; }
    .hero-section,
    .services-hero-section,
    .about-hero-section,
    .contact-hero-section,
    .sov-hero-section { margin-top: 112px !important; }
}

/* ===== Language Switcher ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
}
.lang-switcher a {
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 5px;
    transition: all .2s;
    white-space: nowrap;
}
.lang-switcher a:hover {
    color: #fff;
    background: rgba(255,255,255,.09);
}
.lang-switcher a.lang-active {
    color: #60a5fa;
    background: rgba(96,165,250,.1);
    border: 1px solid rgba(96,165,250,.25);
}
.lang-switcher .lang-sep {
    color: #334155;
    font-size: 10px;
    user-select: none;
}

/* ===== Mobile nav toggle — stays on right (LTR default) ===== */
@media (max-width: 960px) {
    #mobile-nav .menu-has-children {
        position: relative;
        display: flex !important;
        align-items: center;
    }
    #mobile-nav .menu-has-children > a {
        flex: 1;
        padding-right: 36px !important;
    }
    #mobile-nav .menu-has-children > i.lnr {
        position: absolute !important;
        right: 8px !important;
        left: auto !important;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        padding: 6px 8px;
        color: #94a3b8;
        flex-shrink: 0;
        z-index: 1;
    }
}

/* ================================================================
   Mobile header — centered logo carve (matches Persian design)
   LTR adaptation: icons kept on the LEFT like the Persian version
   ================================================================ */
#logo .logo-mobile { display: none; }
.mobile-lang { display: none; }

@media (max-width: 960px) {
    #header { overflow: visible; border-bottom: none; background: #071a35; }
    #header.header-scrolled { box-shadow: none; background: #071a35; }
    #header .container > .row {
        position: relative;
        min-height: 60px;
        align-items: center;
        flex-wrap: nowrap;
    }

    #logo {
        position: absolute;
        left: 50%;
        top: -14px;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
        z-index: 6;
    }
    #logo .logo-desktop { display: none; }
    #logo a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 96px;
        height: 96px;
        background: #071a35;
        border: none;
        border-radius: 50%;
        box-shadow: none;
    }
    #logo .logo-mobile { display: block; max-height: 60px; width: auto; }

    /* LTR: نگه‌داشتن آیکون‌ها سمت چپ مثل نسخه فارسی */
    #header .header-actions {
        gap: 18px;
        margin-right: auto !important;
        margin-left: 24px !important;
    }

    .search-btn-toggle {
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: 28px; height: 40px;
        color: #60a5fa !important;
        transform: none !important;
    }
    .search-btn-toggle:hover { background: none !important; box-shadow: none !important; transform: none !important; }
    .search-btn-toggle[aria-expanded="true"] { background: none !important; color: #93c5fd !important; box-shadow: none !important; }
    .search-btn-toggle i { font-size: 23px; }

    #mobile-nav-toggle {
        right: 24px !important;
        left: auto !important;
        top: 16px !important;
        font-size: 24px !important;
    }
    #mobile-nav-toggle i { color: #60a5fa !important; }

    #mobile-nav {
        left: auto !important;
        right: -280px !important;
        padding-top: 58px !important;
    }
    body.mobile-nav-active #mobile-nav { left: auto !important; right: 0 !important; }
    #mobile-nav ul li a { text-align: left; }

    .lang-strip-mobile { display: none !important; }

    .mobile-lang { display: inline-block; position: relative; }
    .mobile-lang > summary {
        list-style: none;
        cursor: pointer;
        width: 28px; height: 40px;
        display: flex; align-items: center; justify-content: center;
        background: none;
        color: #60a5fa;
        font-size: 22px;
        transition: color .2s;
    }
    .mobile-lang > summary::-webkit-details-marker { display: none; }
    .mobile-lang[open] > summary { background: none; color: #93c5fd; }
    .mobile-lang-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 132px;
        background: #0b2444;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,.4);
        overflow: hidden;
        z-index: 1001;
    }
    .mobile-lang-menu a {
        display: block;
        padding: 11px 16px;
        color: #cbd5e1;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }
    .mobile-lang-menu a:last-child { border-bottom: none; }
    .mobile-lang-menu a.active { color: #60a5fa; background: rgba(96,165,250,.08); }
    .mobile-lang-menu a:hover { background: rgba(255,255,255,.06); }

    /* page top offset — equal to header height (60px) */
    .hero-section,
    .services-hero-section,
    .about-hero-section,
    .contact-hero-section,
    .sov-hero-section { margin-top: 60px !important; }
}
