/* =============================================
   فایل اختصاصی منوی ناوبری و منوی موبایل
   شامل: هدر، منوهای دسکتاپ، دکمه همبرگر، پنل موبایل
   ============================================= */

/* ----- هدر و نوار ناوبری ----- */
.site-header {
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}
.site-header[data-bg-type="color"] {
    background-color: var(--nav-bg-color, #ffffff);
}
.site-header[data-bg-type="gradient"] {
    background: linear-gradient(135deg, var(--nav-grad-start, #667eea), var(--nav-grad-end, #764ba2));
}
.nav-glass {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.7) !important;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.nav-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    animation: slideDown 0.5s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}
.logo-center .site-branding {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.logo-left .site-branding { order: 1; text-align: left; }
.logo-left .nav-left { order: 2; }
.logo-left .nav-right { order: 3; }
.logo-right .site-branding { order: 3; text-align: right; }
.logo-right .nav-left { order: 1; }
.logo-right .nav-right { order: 2; }

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}
.nav-menu li {
    position: relative;
}
.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 0;
    display: inline-block;
}

/* استایل‌های مختلف منوی دسکتاپ */
.nav-style-default .nav-menu a { color: #333; }
.nav-style-default .nav-menu a:hover { color: #0a4b8a; }

.nav-style-modern .nav-menu a {
    color: #333;
    position: relative;
}
.nav-style-modern .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0a4b8a;
    transition: width 0.3s;
}
.nav-style-modern .nav-menu a:hover::after { width: 100%; }

.nav-style-rounded .nav-menu a {
    background: rgba(10,75,138,0.1);
    padding: 8px 18px;
    border-radius: 40px;
    color: #0a4b8a;
}
.nav-style-rounded .nav-menu a:hover {
    background: #0a4b8a;
    color: #fff;
}

.nav-style-minimal .nav-menu a {
    color: #555;
    letter-spacing: 1px;
    font-weight: 400;
}
.nav-style-minimal .nav-menu a:hover {
    color: #000;
    border-bottom: 1px solid #000;
}

.nav-style-gradient .nav-menu a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

/* ----- دکمه همبرگر (آیکون منوی موبایل) ----- */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.mobile-menu-icon-default {
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
    line-height: 1;
}
/* انیمیشن سه بعدی نوع 1 */
.menu-icon-3d .line {
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.menu-icon-3d .line1 { transform: translateY(0) rotate(0); }
.menu-icon-3d .line2 { opacity: 1; }
.menu-icon-3d .line3 { transform: translateY(0) rotate(0); }
.mobile-menu-toggle.active .menu-icon-3d .line1 {
    transform: translateY(21px) rotate(45deg);
}
.mobile-menu-toggle.active .menu-icon-3d .line2 {
    opacity: 0;
}
.mobile-menu-toggle.active .menu-icon-3d .line3 {
    transform: translateY(-21px) rotate(-45deg);
}
/* انیمیشن سه بعدی نوع 2 */
.menu-icon-3d-v2 .line {
    transform-origin: center;
    transition: transform 0.3s ease;
}
.mobile-menu-toggle.active .menu-icon-3d-v2 .line1 {
    transform: translateY(21px) scaleX(0.8);
}
.mobile-menu-toggle.active .menu-icon-3d-v2 .line2 {
    transform: scaleX(0);
}
.mobile-menu-toggle.active .menu-icon-3d-v2 .line3 {
    transform: translateY(-21px) scaleX(0.8);
}
/* انیمیشن متحرک */
.menu-icon-animated .circle-bg {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.5s;
}
.menu-icon-animated .cross {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s 0.2s;
}
.mobile-menu-toggle.active .menu-icon-animated .circle-bg {
    stroke-dashoffset: 0;
}
.mobile-menu-toggle.active .menu-icon-animated .cross {
    opacity: 1;
    transform: scale(1);
}

/* =============================================
   پنل منوی موبایل (Overlay)
   ============================================= */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-container {
    position: relative;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow-y: auto;
    padding: 80px 20px 30px;
    box-sizing: border-box;
    border-radius: 20px 0 0 20px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}
.mobile-nav-overlay.active .mobile-nav-container {
    transform: translateX(0);
}
.mobile-nav-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #eeeeee;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    color: #333;
    transition: all 0.2s;
}
.mobile-nav-close:hover {
    background: #0a4b8a;
    color: white;
    transform: rotate(90deg);
}
.mobile-nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 20px 20px 40px; /* کاهش padding-top از 80px به 20px */
    box-sizing: border-box;
}

/* =============================================
   رسپانسیو: نمایش/مخفی منوها در دسکتاپ و موبایل
   ============================================= */
@media (min-width: 993px) {
    /* دسکتاپ: منوی دسکتاپ نمایش داده شود، منوی موبایل و دکمه همبرگر مخفی */
    .nav-left, .nav-right {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .mobile-nav-overlay,
    .mobile-nav-overlay.active,
    #mobileNavOverlay,
    #mobileNavOverlay.active,
    .mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        pointer-events: none !important;
    }
}

@media (max-width: 992px) {
    /* موبایل: منوی دسکتاپ مخفی، دکمه همبرگر و پنل منو فعال */
    .nav-left, .nav-right {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block !important;
    }
    /* بقیه استایل‌های پنل از قبل تعریف شده‌اند */
}
/* لوگوی شناور روی اسلایدر */
.cut-slider, .hero-wrapper {
    position: relative;
}

.floating-logo {
    position: absolute;
    top: 30px;            /* فاصله از بالای اسلایدر – قابل تغییر */
    z-index: 20;          /* بالاتر از محتوای اسلایدر */
    max-width: 200px;
    background: rgba(0,0,0,0.4); /* پس‌زمینه نیمه‌شفاف (اختیاری) */
    padding: 8px 15px;
    border-radius: 15px;
    backdrop-filter: blur(4px);
}

.floating-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* موقعیت‌های مختلف لوگو */
.floating-logo-left {
    left: 20px;
    transform: none;
}
.floating-logo-center {
    left: 50%;
    transform: translateX(-50%);
}
.floating-logo-right {
    right: 20px;
    left: auto;
    transform: none;
}

/* در موبایل کمی کوچک‌تر */
@media (max-width: 768px) {
    .floating-logo {
        max-width: 130px;
        top: 5px;
        padding: 5px 10px;
    }
    .floating-logo-left { left: 10px; }
    .floating-logo-right { right: 10px; }
}
/* شکل‌های مختلف لوگوی شناور */
.floating-logo {
    position: absolute;
    top: 0px;
    z-index: 20;
    border-radius: 15px;
    backdrop-filter: blur(4px);
    max-width: 200px;
    transition: all 0.5s;
}
/* حالت موج‌دار (مانند اسلایدر) */
.floating-logo.wave-shape {
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 50% 100%, 0% 85%);
    top: 0px;
    backdrop-filter: blur(5px);
    border-radius: 1px;
    padding: 12px 20px;
}
/* حالت برش خورده (منحنی) */
.floating-logo.curve-shape {
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 85% 90%, 70% 85%, 50% 95%, 30% 85%, 15% 90%, 0% 75%);

}
/* حالت صاف پیش‌فرض */
.floating-logo.flat-shape {
    clip-path: none;
    border-radius: 12px;
}