/* ============================================
   وب سام — طراحی حرفه‌ای و سیستم طراحی یکپارچه
   ============================================ */

:root {
    --ws-primary: #2563eb;
    --ws-primary-dark: #1d4ed8;
    --ws-primary-light: #3b82f6;
    --ws-accent: #06b6d4;
    --ws-dark: #0f172a;
    --ws-dark-soft: #1e293b;
    --ws-text: #334155;
    --ws-text-muted: #64748b;
    --ws-border: #e2e8f0;
    --ws-bg: #f8fafc;
    --ws-white: #ffffff;
    --ws-gradient-start: #0f172a;
    --ws-gradient-mid: #1e3a5f;
    --ws-gradient-end: #2563eb;
    --ws-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ws-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --ws-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --ws-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --ws-radius: 0.5rem;
    --ws-radius-lg: 0.75rem;
    --ws-radius-xl: 1rem;
    --ws-transition: 0.2s ease;
}

/* پایه */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    color: var(--ws-text);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* نوار ناوبری حرفه‌ای */
.navbar-professional {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 0;
    transition: background var(--ws-transition), padding var(--ws-transition), box-shadow var(--ws-transition);
}

.navbar-professional .navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar-professional .navbar-brand i {
    color: var(--ws-accent);
    font-size: 1.4rem;
}

.navbar-professional .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--ws-radius);
    transition: color var(--ws-transition), background var(--ws-transition);
}

.navbar-professional .nav-link:hover {
    color: var(--ws-accent) !important;
    background: rgba(255, 255, 255, 0.06);
}

.navbar-professional .nav-link.active {
    color: var(--ws-accent) !important;
    background: rgba(6, 182, 212, 0.12);
}

.navbar-professional .btn-outline-light {
    border-width: 1.5px;
    font-weight: 600;
    padding: 0.4rem 1rem;
}

.navbar-professional .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.navbar-professional.navbar-scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-professional.navbar-scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* هیرو حرفه‌ای */
.hero-section {
    background: linear-gradient(145deg, var(--ws-gradient-start) 0%, var(--ws-gradient-mid) 45%, var(--ws-gradient-end) 100%);
    color: #fff;
    padding: 5.5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    opacity: 0.6;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 32em;
    font-weight: 400;
}

.hero-section .cta-btn {
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    border-radius: var(--ws-radius-lg);
    transition: transform var(--ws-transition), box-shadow var(--ws-transition);
}

.hero-section .btn-light {
    background: #fff;
    color: var(--ws-dark);
    border: none;
}

.hero-section .btn-light:hover {
    background: #f1f5f9;
    color: var(--ws-dark);
    transform: translateY(-1px);
    box-shadow: var(--ws-shadow-lg);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.hero-visual {
    font-size: clamp(5rem, 12vw, 8rem);
    opacity: 0.2;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* عنوان سکشن */
.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-head .section-title {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--ws-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section-head .section-subtitle {
    color: var(--ws-text-muted);
    font-size: 1.05rem;
    max-width: 28em;
    margin: 0 auto;
}

.section-head .section-line {
    width: 3rem;
    height: 4px;
    background: linear-gradient(90deg, var(--ws-primary), var(--ws-accent));
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* کارت خدمات */
.service-card {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    background: var(--ws-white);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ws-shadow-xl);
    border-color: transparent;
}

.service-card .card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--ws-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-accent) 100%);
    color: #fff;
    margin-bottom: 1rem;
}

.service-card .card-title {
    font-weight: 700;
    color: var(--ws-dark);
    font-size: 1.1rem;
}

.service-card .card-text {
    color: var(--ws-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* کارت محصول */
.product-card {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    background: var(--ws-white);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ws-shadow-xl);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-weight: 700;
    color: var(--ws-dark);
    font-size: 1.05rem;
}

.product-card .price-tag {
    font-weight: 700;
    color: var(--ws-primary);
    font-size: 1.05rem;
}

/* تیم */
.team-card {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow-sm);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--ws-white);
    padding: 1.5rem;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ws-shadow-xl);
}

.team-card .avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-accent) 100%);
    color: #fff;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* سکشن پس‌زمینه */
.section-alt {
    background: var(--ws-bg);
}

/* دکمه‌های CTA */
.cta-btn {
    padding: 0.6rem 1.5rem;
    border-radius: var(--ws-radius-lg);
    font-weight: 600;
    transition: transform var(--ws-transition), box-shadow var(--ws-transition);
}

.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--ws-shadow);
}

/* فرم‌ها */
.form-control, .form-select {
    border-radius: var(--ws-radius);
    border-color: var(--ws-border);
    padding: 0.6rem 0.85rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-primary-dark) 100%);
    border: none;
    font-weight: 600;
    border-radius: var(--ws-radius-lg);
    padding: 0.6rem 1.25rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--ws-primary-light) 0%, var(--ws-primary) 100%);
    border: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* سبد خرید */
.cart-item {
    border-bottom: 1px solid var(--ws-border);
    padding: 1.25rem 0;
    transition: background var(--ws-transition);
}

.cart-item:hover {
    background: var(--ws-bg);
}

/* کارت رزرو و چکاوت */
.reservation-card, .checkout-card {
    border-radius: var(--ws-radius-lg);
    box-shadow: var(--ws-shadow);
    border: 1px solid var(--ws-border);
    background: var(--ws-white);
}

/* صفحه محصول */
.product-image-main {
    border-radius: var(--ws-radius-lg);
    max-height: 400px;
    object-fit: cover;
    width: 100%;
    box-shadow: var(--ws-shadow-lg);
}

/* آمار / باکس‌های عددی */
.stat-box {
    background: var(--ws-white);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: transform var(--ws-transition), box-shadow var(--ws-transition);
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--ws-shadow);
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ws-primary);
    letter-spacing: -0.02em;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--ws-text-muted);
    margin-top: 0.25rem;
}

/* فوتر حرفه‌ای */
footer.site-footer {
    background: var(--ws-dark) !important;
    color: #e2e8f0;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer.site-footer h5, footer.site-footer h6 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

footer.site-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--ws-transition);
}

footer.site-footer a:hover {
    color: var(--ws-accent) !important;
}

footer.site-footer .footer-brand i {
    color: var(--ws-accent);
}

footer.site-footer hr {
    border-color: rgba(255, 255, 255, 0.08);
}

/* آلرت */
.alert {
    border-radius: var(--ws-radius-lg);
    border: 1px solid transparent;
}

/* صفحه لاگین/ثبت‌نام */
.card.auth-card {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-xl);
    box-shadow: var(--ws-shadow-lg);
}

/* انیمیشن ظاهر ملایم */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو */
/* فاصله‌گذاری سکشن‌ها */
@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 4.5rem;
    }
    .hero-section h1 {
        font-size: 1.65rem;
    }
}

/* فاصله‌گذاری سکشن در دسکتاپ */
@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-professional .navbar-brand {
        font-size: 1.1rem;
    }
}
