/* ================================================================
   فایل: style.css - نسخه نهایی کاملاً پایدار
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #06182B;
    --secondary: #C9953D;
    --gold-light: #e8c97a;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --glass-bg: rgba(6, 24, 43, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 8px 30px rgba(6, 24, 43, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Tahoma", "Arial", sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
    direction: rtl;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 50px;
    position: relative;
}

.section-title span {
    color: var(--secondary);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 10px;
}

/* ================================================================
   هدر شیشه‌ای
   ================================================================ */
.glass-header {
    position: fixed;
    top: 20px;
    right: 0;
    left: 0;
    z-index: 1000;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(201, 169, 78, 0.3));
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
}

.main-nav ul li a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    transition: var(--transition);
    font-size: 14px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background: rgba(201, 169, 78, 0.2);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.phone-number {
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-number i {
    color: var(--secondary);
    font-size: 16px;
}

.phone-number:hover {
    color: var(--secondary);
}

.btn-gold {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(201, 169, 78, 0.35);
    display: inline-block;
    text-align: center;
}

.btn-gold:hover {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid var(--white);
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================================
   اسلایدر
   ================================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 24, 43, 0.3);
    z-index: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
    right: 20px;
}
.slider-btn.next {
    left: 20px;
}

/* ================================================================
   خدمات
   ================================================================ */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--secondary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(6, 24, 43, 0.12);
}

.service-card i {
    font-size: 42px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.service-more {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-more:hover {
    color: var(--primary);
    gap: 12px;
}

/* ================================================================
   سایدبار
   ================================================================ */
.sidebar-wrapper {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: rgba(6, 24, 43, 0.85);
    backdrop-filter: blur(16px);
    padding: 18px 14px;
    border-radius: 24px;
    border: 1px solid rgba(201, 169, 78, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 200px;
    transition: all 0.3s ease;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section h4 {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(201, 169, 78, 0.2);
    padding-bottom: 8px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.social-icons .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icons .social-icon:hover {
    transform: scale(1.15) translateX(-3px);
    box-shadow: 0 4px 15px rgba(201, 169, 78, 0.3);
}

.social-icons .social-icon.whatsapp:hover { background: #25D366; color: #fff; }
.social-icons .social-icon.instagram:hover { background: #E1306C; color: #fff; }
.social-icons .social-icon.telegram:hover { background: #0088cc; color: #fff; }
.social-icons .social-icon.rubika:hover { background: #6c3b8c; color: #fff; }
.social-icons .social-icon.bale:hover { background: #4CAF50; color: #fff; }
.social-icons .social-icon.lipo:hover { background: #ff6b6b; color: #fff; }

.promo-section {
    background: linear-gradient(145deg, rgba(201, 169, 78, 0.12), rgba(201, 169, 78, 0.04));
    border-radius: 16px;
    padding: 14px 12px;
    border: 1px solid rgba(201, 169, 78, 0.2);
}

.promo-box {
    text-align: center;
}

.promo-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.promo-box h4 {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.promo-box p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.promo-features span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.promo-features span i {
    color: var(--secondary);
    font-size: 12px;
}

.promo-btn {
    display: block;
    text-align: center;
    font-size: 12px;
    padding: 7px 12px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.promo-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: scale(1.02);
}

/* ================================================================
   مزایا
   ================================================================ */
.features-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(6, 24, 43, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(201, 169, 78, 0.08);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(6, 24, 43, 0.15);
    border-color: var(--secondary);
}

.feature-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.feature-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(6, 24, 43, 0.6), transparent);
}

.feature-content {
    padding: 20px 20px 25px;
    text-align: center;
    position: relative;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px auto 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(201, 169, 78, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05) rotate(-5deg);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-content h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 700;
}

.feature-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}




/* ================================================================
   فوتر
   ================================================================ */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 20px;
    border-top: 4px solid var(--secondary);
}

.footer-promo {
    text-align: center;
    padding: 30px 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.footer-promo .promo-text {
    font-size: 20px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2.4;
    letter-spacing: 1px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 18px;
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 10px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.85;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    transition: var(--transition);
    opacity: 0.85;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-right: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ================================================================
   دکمه برگشت
   ================================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(201, 169, 78, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-6px);
}

/* ================================================================
   دکمه سایدبار موبایل
   ================================================================ */
.sidebar-toggle-mobile {
    display: none;
    position: fixed;
    left: 15px;
    bottom: 80px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(201, 169, 78, 0.4);
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-mobile:hover {
    transform: scale(1.05);
    background: var(--white);
}

/* ================================================================
   ===== ریسپانسیو =====
   ================================================================ */

@media (max-width: 992px) {
    .glass-header {
        top: 15px;
        padding: 10px 18px;
        width: 94%;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-text h2 {
        font-size: 22px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .slider-btn.prev {
        right: 10px;
    }
    .slider-btn.next {
        left: 10px;
    }
    .sidebar-wrapper {
        width: 170px;
        padding: 14px 10px;
        left: 10px;
    }
    .social-icons .social-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .glass-header .container {
        flex-wrap: wrap;
    }
    .logo {
        flex: 1;
    }
    .logo-text {
        font-size: 18px;
    }
    .logo-img {
        height: 38px;
    }
    .menu-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        width: 100%;
        background: rgba(6, 24, 43, 0.98);
        backdrop-filter: blur(12px);
        border-radius: 16px;
        padding: 15px 0;
        margin-top: 12px;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li a {
        padding: 12px 20px;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 15px;
        white-space: normal;
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }
    .header-left {
        gap: 10px;
    }
    .phone-number {
        font-size: 12px;
    }
    .btn-gold {
        padding: 8px 18px;
        font-size: 12px;
    }
    .hero {
        height: 60vh;
        min-height: 320px;
    }
    .section-title {
        font-size: 26px;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .feature-card {
        padding: 0;
    }
    .feature-image {
        height: 120px;
    }
    .feature-content {
        padding: 15px 15px 20px;
    }
    .feature-icon {
        width: 50px;
        height: 50px;
        margin: -30px auto 12px;
    }
    .feature-icon i {
        font-size: 22px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-promo .promo-text {
        font-size: 17px;
        line-height: 2.2;
    }
    .sidebar-wrapper {
        display: none;
        width: 190px;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    .sidebar-wrapper.active {
        display: block !important;
    }
    .sidebar-toggle-mobile {
        display: flex !important;
    }
    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .slider-btn.prev {
        right: 8px;
    }
    .slider-btn.next {
        left: 8px;
    }
}

@media (max-width: 480px) {
    .glass-header {
        top: 10px;
        padding: 8px 14px;
        border-radius: 14px;
        width: 96%;
    }
    .logo-text {
        font-size: 15px;
    }
    .logo-img {
        height: 32px;
    }
    .btn-gold {
        padding: 6px 14px;
        font-size: 11px;
    }
    .phone-number {
        font-size: 11px;
    }
    .hero {
        height: 45vh;
        min-height: 250px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .feature-image {
        height: 100px;
    }
    .feature-content {
        padding: 12px 10px 15px;
    }
    .feature-icon {
        width: 40px;
        height: 40px;
        margin: -25px auto 10px;
    }
    .feature-icon i {
        font-size: 18px;
    }
    .feature-content h3 {
        font-size: 14px;
    }
    .feature-content p {
        font-size: 11px;
        line-height: 1.4;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    .section-title {
        font-size: 22px;
    }
    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
    .footer-promo .promo-text {
        font-size: 15px;
        line-height: 2;
    }
    .sidebar-wrapper {
        width: 170px;
        left: 5px;
        padding: 12px 10px;
    }
    .sidebar-toggle-mobile {
        width: 44px;
        height: 44px;
        font-size: 18px;
        left: 10px;
        bottom: 70px;
    }
    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    .slider-btn.prev {
        right: 5px;
    }
    .slider-btn.next {
        left: 5px;
    }
}