/* استایل‌های مشترک همه صفحات — متغیرها + پایه + هدر + فوتر */

:root {
    --bg-body: #f3f6f9;
    --primary-dark: #0a1f44;
    --primary-royal: #1e3a8a;
    --accent-gold: #c5a059;
    --text-main: #1e293b;
    --text-muted: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --radius-xl: 40px;
    --radius-lg: 24px;

    --violet: #6C5CE7;
    --cyan: #00C2CB;
    --gold-deep: #a67f3d;
}

/* ===== پایه ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.9;
}

h1, h2, h3, h4, h5 {
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -0.03em;
}

p {
    font-weight: 300;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== نوار بالا ===== */
.th-nav-icon { color: var(--primary-dark) !important; }

.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.8);
    font-size: 12.5px;
    padding: 8px 0;
}
.top-bar .th-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.top-bar a.th-topbar-item {
    color: rgba(255,255,255,.82);
    transition: color .2s ease;
}
.top-bar a.th-topbar-item:hover { color: var(--accent-gold); }
.top-bar .th-topbar-ico {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px;
    color: #fff;
    flex-shrink: 0;
}
.top-bar a.text-white {
    color: rgba(255,255,255,.82) !important;
    transition: color .2s ease;
}
.top-bar a.text-white:hover { color: var(--accent-gold) !important; }
.top-bar a.bg-white.bg-opacity-10 {
    background: linear-gradient(135deg, var(--accent-gold), #dcc086) !important;
    color: var(--primary-dark) !important;
    font-weight: 700;
    transition: filter .2s ease;
}
.top-bar a.bg-white.bg-opacity-10:hover { filter: brightness(1.05); }

/* ===== ناوبار ===== */
.navbar {
    background: #fff;
    box-shadow: 0 6px 24px -14px rgba(10,31,68,.18);
    padding: 14px 0;
}

.navbar .nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 14.5px;
    padding: 8px 16px !important;
    position: relative;
}
.navbar .nav-link::after {
    content: "";
    position: absolute;
    right: 16px;
    left: 16px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    transform: scaleX(0);
    transition: transform .2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--primary-dark) !important; }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

/* دراپ‌داون خدمات */
.navbar .dropdown-menu.glass-card {
    border-radius: 14px;
    border: 1px solid rgba(10,31,68,.08) !important;
    box-shadow: 0 20px 40px -18px rgba(10,31,68,.28) !important;
    padding: 8px;
    width: 216px;
    left: auto !important;
    right: 0 !important;
}
.navbar .dropdown-menu.glass-card .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 10px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.6;
    transition: background .15s ease, color .15s ease;
}
.navbar .dropdown-menu.glass-card .dropdown-item:hover {
    background: #F5F3FF;
    color: var(--violet);
}
.th-drop-ico {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #F1EFE9;
    color: var(--gold-deep);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.th-drop-ico svg { width: 14px; height: 14px; }

/* آیکن سبد خرید */
.th-nav-icon.position-relative {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.th-nav-icon.position-relative:hover { background: #F5F3FF; }

.badge.bg-danger { background: #C1442D !important; }

/* ===== دکمه‌ها ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--gold-deep)) !important;
    border: none !important;
    color: #14213D !important;
    font-weight: 700;
    transition: filter .2s ease, transform .2s ease;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-outline-primary {
    border: 1.5px solid var(--primary-dark) !important;
    color: var(--primary-dark) !important;
    background: transparent !important;
    font-weight: 700;
}
.btn-outline-primary:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.btn-secondary {
    background: #eef1f6 !important;
    color: var(--primary-dark) !important;
    border: none !important;
    font-weight: 700;
}
.btn-secondary:hover { background: #e3e8f0 !important; }

.btn-danger {
    background: #C1442D !important;
    border: none !important;
    font-weight: 700;
}
.btn-danger:hover { filter: brightness(1.08); }

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 14px;
        border-top: 1px solid #EEF0F4;
        padding-top: 14px;
    }
    .navbar .dropdown-menu.glass-card {
        width: 100%;
        right: auto !important;
        box-shadow: none !important;
        border: 1px solid #EEF0F4 !important;
    }
}

/* ===== فوتر ===== */
footer#contact {
    background: linear-gradient(160deg, var(--primary-dark, #0a1f44), #0e2a54 60%, #0a1f44);
    position: relative;
    padding: 64px 0 0;
    overflow: hidden;
}

footer#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23FBF6EE' stroke-width='1.2'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Cpath d='M42 2 L42 82 M2 42 L82 42'/%3E%3Cpath d='M22 22 L62 62 M62 22 L22 62'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 84px 84px;
}

footer#contact .container { position: relative; z-index: 1; }

footer#contact .footer-logo {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
footer#contact .footer-logo span { color: var(--accent-gold, #c5a059); }

footer#contact h6, footer#contact .widget-title {
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px !important;
}
footer#contact h6::after, footer#contact .widget-title::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, var(--accent-gold, #c5a059), var(--violet, #6C5CE7));
    border-radius: 2px;
}

footer#contact ul.list-unstyled a {
    transition: color .2s ease, padding-right .2s ease;
}
footer#contact ul.list-unstyled a:hover {
    color: var(--accent-gold, #c5a059) !important;
    padding-right: 4px;
}

footer#contact .btn-outline-light {
    border-color: rgba(255,255,255,.25) !important;
    color: #fff;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
footer#contact .btn-outline-light:hover {
    background: linear-gradient(135deg, var(--accent-gold, #c5a059), var(--violet, #6C5CE7)) !important;
    border-color: transparent !important;
    transform: translateY(-3px);
}

/* خبرنامه */
footer#contact .input-group > :first-child {
    border-radius: 0 999px 999px 0 !important;
}
footer#contact .input-group > :last-child {
    border-radius: 999px 0 0 999px !important;
}
footer#contact .input-group .form-control {
    border-color: rgba(255,255,255,.2) !important;
    height: 48px;
    padding-right: 18px;
}
footer#contact .input-group .form-control::placeholder {
    color: rgba(255,255,255,.45);
}
footer#contact .input-group .form-control:focus {
    box-shadow: none !important;
    border-color: var(--cyan, #00C2CB) !important;
    background: rgba(255,255,255,.06) !important;
}
footer#contact .input-group .btn-warning {
    background: linear-gradient(135deg, var(--accent-gold, #c5a059), var(--violet, #6C5CE7)) !important;
    border: none !important;
    color: #fff !important;
    padding: 0 24px;
    transition: filter .2s ease;
}
footer#contact .input-group .btn-warning:hover { filter: brightness(1.06); }

/* نمادهای اعتماد */
footer#contact .widget-instagram { margin: 0; }
footer#contact .widget-body.rtl {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}
footer#contact .nemad-box {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90px;
    min-width: 84px;
    min-height: 84px;
    box-shadow: 0 14px 28px -16px rgba(0,0,0,.4);
    transition: transform .2s ease;
}
footer#contact .nemad-box:hover { transform: translateY(-3px); }
footer#contact .nemad-box img { max-width: 100%; max-height: 64px; }

footer#contact .border-top.border-secondary {
    border-color: rgba(255,255,255,.12) !important;
}
