:root {
    --primary-blue: #007bff;
    --dark-blue: #0056b3;
    --green: #198754;
    --dark-green: #157347;
    --dark: #2c3e50;
    --gray: #6c757d;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    padding-top: 80px;
    background: #f5f7fa;
    transition: padding-top 0.3s ease;
}

/* هدر اصلی */
.main-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

/* نوار بالایی */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item i {
    color: var(--primary-blue);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* هدر اصلی */
.header-content {
    padding: 12px 0;
    transition: padding 0.3s ease;
}

/* لوگو */
.logo {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

/* منو دسکتاپ */
.main-nav.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
}

.nav-link.active {
    background: var(--primary-blue);
    color: white !important;
}

.nav-icon {
    font-size: 1.1rem;
}

/* دکمه‌ها */
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.phone-btn {
    background: linear-gradient(135deg, var(--green), var(--dark-green));
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
    color: white;
}

.reserve-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border: none;
    padding: 11px 25px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    color: white;
}

/* دکمه همبرگر موبایل */
.mobile-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--dark);
    padding: 5px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-toggle:hover {
    color: var(--primary-blue);
}

/* منوی موبایل */
#mobileMenu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    display: flex;
}

#mobileMenu.show {
    right: 0;
}

#mobileMenu ul {
    flex-direction: column;
    gap: 5px;
    width: 100%;
    list-style: none;
}

#mobileMenu .nav-link {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    justify-content: flex-start;
}

/* اورلی برای موبایل */
.mobile-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* استایل‌های دکمه‌های موبایل */
.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
}

.mobile-buttons .phone-btn,
.mobile-buttons .reserve-btn {
    text-align: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .top-bar {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav.desktop-nav {
        display: none !important;
    }
    
    .header-buttons {
        display: none;
    }
    
    /* وقتی منو باز است، دکمه X شود */
    .mobile-toggle.active i::before {
        content: "\F62A" !important; /* آیکون X در بوت استراپ */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }
    
    .logo {
        height: 45px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    #mobileMenu {
        top: 65px;
        height: calc(100vh - 65px);
    }
    
    .mobile-overlay {
        top: 65px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .logo {
        height: 40px;
    }
    
    #mobileMenu {
        top: 60px;
        height: calc(100vh - 60px);
        width: 250px;
    }
    
    .mobile-overlay {
        top: 60px;
    }
}

/* انیمیشن برای اسکرول هدر */
.main-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* برای صفحه‌های تاچ */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        background: transparent;
    }
    
    .nav-link:active {
        background: rgba(0, 123, 255, 0.1);
    }
}

.content-section {
    padding: 50px 0;
}