/* ============================================================
   شرکت تلفن کارگستر (TKG) — components.css
   المان‌های UI مجزا: هدر، ناوبری، دکمه‌ها، کارت‌ها،
   سوییچ تم، فوتر، فرم‌ها، جداول
   ============================================================ */

/* ============================================================
   ۱) هدر و ناوبری
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand img {
    height: 46px;
    width: auto;
}

/* لوگوی مناسب هر تم — در حالت تاریک لوگوی مثبت (روشن) */
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.brand .logo-dark { display: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    position: relative;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background-color var(--transition);
}

.nav-links a:hover {
    color: var(--brand-teal);
    background-color: var(--bg-muted);
}

.nav-links a.active {
    color: var(--brand-teal);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    right: 16px;
    left: 16px;
    height: 3px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* دکمه منوی همبرگری (موبایل) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   ۲) سوییچ تم (روشن / تاریک)
   ============================================================ */
.theme-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background-color: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--transition);
}

.theme-switch::before {
    content: "☀";
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    font-size: 13px;
    transition: opacity var(--transition);
}

.theme-switch::after {
    content: "☾";
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: 0.4;
    transition: opacity var(--transition);
}

.theme-switch .knob {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 24px;
    height: 24px;
    background: var(--gradient-brand);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

[data-theme="dark"] .theme-switch::before { opacity: 0.4; }
[data-theme="dark"] .theme-switch::after { opacity: 1; }
[data-theme="dark"] .theme-switch .knob {
    transform: translateX(-28px);
}

/* ============================================================
   ۳) دکمه‌ها
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
                background-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--gradient-brand);
    color: var(--text-on-brand);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    color: var(--text-on-brand);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 150, 149, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-teal);
    border-color: var(--brand-teal);
}

.btn-secondary:hover {
    background-color: var(--brand-teal);
    color: var(--text-on-brand);
    transform: translateY(-2px);
}

.btn-orange {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.3);
}

.btn-orange:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: var(--bg-muted);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background-color: var(--border-color);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============================================================
   ۴) کارت‌ها
   ============================================================ */
.card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-teal-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.97rem;
    margin-bottom: 0;
}

/* گرید عمومی کارت‌ها */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   ۵) بخش هیرو (صفحه نخست)
   ============================================================ */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--gradient-hero),
                radial-gradient(circle at 80% 20%, rgba(0, 150, 149, 0.4), transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(255, 102, 0, 0.25), transparent 45%),
                var(--brand-navy);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 680px;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--brand-aqua);
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero h1 {
    color: #fff;
    margin-bottom: 1.3rem;
}

.hero h1 .highlight {
    color: var(--brand-aqua);
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 3rem;
}

/* نوار آمار هیرو */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.hero-stat .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ============================================================
   ۶) بلوک شمارنده آمار
   ============================================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    text-align: center;
    padding: 32px 20px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform var(--transition);
}

.stat-box:hover { transform: translateY(-4px); }

.stat-box .num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--brand-teal);
    line-height: 1.1;
}

.stat-box .suffix {
    color: var(--brand-orange);
}

.stat-box .label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ============================================================
   ۷) لیست ویژگی‌ها (تگ)
   ============================================================ */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-muted);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 9px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.feature-tag:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
    transform: translateY(-2px);
}

.feature-tag::before {
    content: "✓";
    color: var(--brand-teal);
    font-weight: 800;
}

/* ============================================================
   ۸) نوار دسته‌بندی / عنوان دسته
   ============================================================ */
.category-bar {
    background: var(--gradient-brand);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-bar:first-child { margin-top: 0; }

/* ============================================================
   ۹) جداول مشخصات فنی
   ============================================================ */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
    padding: 13px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.spec-table thead th {
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
}

.spec-table tbody tr:nth-child(even) {
    background-color: var(--bg-muted);
}

.spec-table tbody tr:hover {
    background-color: rgba(0, 150, 149, 0.08);
}

.spec-table td:first-child {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================================
   ۱۰) تایل محصول (کارت محصول با تصویر)
   ============================================================ */
.product-tile {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-tile .product-img {
    background: linear-gradient(135deg, var(--bg-muted) 0%, var(--bg-secondary) 100%);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-tile .product-img .icon {
    font-size: 4rem;
    opacity: 0.85;
}

.product-tile .product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-tile .model-tag {
    display: inline-block;
    color: var(--brand-teal);
    background-color: rgba(0, 150, 149, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 10px;
}

.product-tile h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.product-tile p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    flex: 1;
}

/* ============================================================
   ۱۱) بخش فراخوان (CTA)
   ============================================================ */
.cta-band {
    background: var(--gradient-hero),
                radial-gradient(circle at 80% 20%, rgba(0, 150, 149, 0.5), transparent 50%),
                var(--brand-navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band h2 { color: #fff; }
.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* ============================================================
   ۱۲) فرم تماس
   ============================================================ */
.form-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 150, 149, 0.15);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================================
   ۱۳) کارت اطلاعات تماس
   ============================================================ */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition);
}

.contact-info-card:hover { border-color: var(--brand-teal); }

.contact-info-card .ico {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 150, 149, 0.12);
    color: var(--brand-teal);
    font-size: 1.3rem;
}

.contact-info-card .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.contact-info-card .value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.02rem;
}

.contact-info-card .value.ltr {
    direction: ltr;
    display: inline-block;
}

/* ============================================================
   ۱۴) فوتر
   ============================================================ */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: clamp(3rem, 5vw, 4.5rem) 0 0;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 3rem;
}

.footer-brand img {
    height: 56px;
    margin-bottom: 16px;
}

[data-theme="dark"] .footer-brand .logo-light { display: none; }
[data-theme="dark"] .footer-brand .logo-dark { display: block; }
.footer-brand .logo-dark { display: none; }

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.93rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--brand-teal);
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-contact-line .ico { color: var(--brand-teal); }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background-color: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--gradient-brand);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.88rem;
}

/* ============================================================
   ۱۵) مسیر راهنما (Breadcrumb)
   ============================================================ */
.breadcrumb {
    padding: 18px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-teal); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb .current { color: var(--brand-teal); font-weight: 600; }

/* ============================================================
   ۱۶) عنوان صفحه (Page Header)
   ============================================================ */
.page-hero {
    background: var(--gradient-hero),
                radial-gradient(circle at 85% 30%, rgba(0, 150, 149, 0.4), transparent 50%),
                var(--brand-navy);
    color: #fff;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    text-align: center;
    position: relative;
}

.page-hero h1 { color: #fff; margin-bottom: 0.8rem; }
.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.08rem;
}

/* ============================================================
   ۱۷) خط زمانی (تیمچارت تاریخچه)
   ============================================================ */
.timeline {
    position: relative;
    padding-right: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 8px;
    width: 3px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: "";
    position: absolute;
    right: -30px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-teal);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--brand-teal);
}

.timeline-item .year {
    color: var(--brand-orange);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.timeline-item h4 { margin-bottom: 8px; }

/* ============================================================
   ۱۸) انیمیشن ظاهر شدن هنگام اسکرول
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* پیام موفقیت فرم */
.form-success {
    display: none;
    background-color: rgba(0, 150, 149, 0.12);
    border: 1px solid var(--brand-teal);
    color: var(--brand-teal-dark);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
}

[data-theme="dark"] .form-success { color: var(--brand-teal-light); }

/* ============================================================
   ۱۹) چیدمان صفحه تماس با ما — متن خوش‌آمدگویی
   ============================================================ */
.contact-welcome {
    background: var(--gradient-hero),
                radial-gradient(circle at 80% 20%, rgba(0, 150, 149, 0.35), transparent 50%),
                var(--brand-navy);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    position: relative;
}

.contact-welcome::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.contact-welcome .container { position: relative; z-index: 2; }

.contact-welcome-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.05rem;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.92);
}

.contact-welcome-inner p { margin-bottom: 1.2rem; }
.contact-welcome-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   ۲۰) چیدمان اصلی صفحه تماس — کادر اطلاعات + فرم کنار هم
   ============================================================ */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

/* کادر سمت راست — اطلاعات کامل + نقشه پایین */
.contact-info-panel {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
}

.contact-panel-title {
    font-size: 1.25rem;
    color: var(--brand-teal);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--brand-teal);
}

/* هر ردیف اطلاعات (آیکون + متن) — زیر هم */
.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-row-ico {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 150, 149, 0.1);
    font-size: 1.2rem;
    margin-top: 2px;
}

.contact-row-body { flex: 1; }

.contact-row-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.contact-row-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.98rem;
}

.contact-row-value a {
    color: var(--text-primary);
    font-weight: 700;
}
.contact-row-value a:hover { color: var(--brand-teal); }

.phone-value {
    display: block;
    direction: ltr;
    text-align: right;
    line-height: 1.9;
}

/* خط جداکننده ردیف‌ها */
.contact-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* بخش نقشه — زیر کادر اطلاعات */
.contact-map-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

/* استایل دکمه مسیریابی (نسخه نجیب و جمع‌وجور) */
.section-map .btn-ghost {
    display: inline-block; /* تغییر از block به inline-block برای کوچک شدن عرض */
    width: auto; /* عرض دکمه فقط به اندازه متن داخلش باشه */
    
    /* کم کردن پدینگ: ۶ پیکسل بالا و پایین، ۱۶ پیکسل چپ و راست */
    padding: 6px 16px; 
    
    /* وسط‌چین کردن دکمه در زیر مپ */
    margin: 12px auto 0; 
    display: table; /* یک ترفند عالی برای وسط‌چین کردن المان‌های inline-block بدون دردسر */
    
    /* اندازه فونت کمی کوچک‌تر و ظریف‌تر */
    font-size: 0.85rem; 
    font-weight: 500;
    
    /* استایل‌های ظاهری (اختیاری - متناسب با تم شما) */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px; /* گردتر و ظریف‌تر شدن لبه‌ها */
    text-decoration: none;
    transition: all 0.2s ease;
}

/* افکت هاور دکمه */
.section-map .btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* کادر سمت چپ — فرم */
.contact-form-panel .form-card {
    box-shadow: var(--shadow-md);
}

/* ============================================================
   ۲۰) نقشه گوگل مپ
   ============================================================ */
.map-card { padding: 24px; }

.map-wrapper {
    width: 50%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    line-height: 0; /* حذف فضای خالی زیر iframe */
}

.map-wrapper iframe {
    display: block;
    filter: grayscale(0.15);
    transition: filter var(--transition);
}

[data-theme="dark"] .map-wrapper iframe {
    filter: invert(0.9) hue-rotate(170deg) brightness(0.9) contrast(0.9);
}

.map-card:hover .map-wrapper iframe {
    filter: grayscale(0);
}
/* ==========================================================================
   استایل اختصاصی بخش اطلاعات تماس (تراز ستونی و تمیز)
   ========================================================================== */

/* کادر اصلی اطلاعات */
.contact-info-panel {
    direction: rtl; 
    text-align: right;
    padding: 24px;
    background-color: #172232; 
    border-radius: 12px;
}

/* عنوان اصلی کادر */
.contact-panel-title {
    color: #00b4d8; 
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

/* المان ردیف (تراز کردن آیکون و محتوا کنار هم) */
.contact-row {
    display: flex;
    align-items: flex-start; 
    gap: 15px; 
    padding: 12px 0;
}

/* استایل آیکون‌ها */
.contact-row-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05); 
    border-radius: 8px;
    font-size: 1.2rem;
}

/* بدنه متن‌ها (نگهدارنده لیبل و مقادیر) */
.contact-row-body {
    display: flex;
    flex-direction: column; 
    gap: 6px; 
    flex: 1;
}

/* لیبل یا عنوان ردیف */
.contact-row-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6); 
    font-weight: 500;
}

/* مقادیر ردیف (آدرس، شماره‌ها، ایمیل) */
.contact-row-value {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.6;
}

/* استایل برای لینک‌ها داخل متن */
.contact-row-value a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-row-value a:hover {
    color: #00b4d8;
}

/* حل مشکل متون انگلیسی (ایمیل، وب‌سایت و شماره‌ها) */
.ltr, .phone-value {
    direction: ltr;
    text-align: right; 
    display: inline-block;
}

/* خطوط جداکننده ردیف‌ها */
.contact-divider {
    height: 1px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
    margin: 4px 0;
}
/* قرار گرفتن لیبل و تلفن در یک خط با فاصله ۵۰ پیکسلی */
.contact-row-body.inline-body {
    flex-direction: row;       /* چیدمان افقی به جای عمودی */
    align-items: center;       /* هم‌تراز شدن عمودی متن و شماره */
    gap: 50px;                 /* ایجاد دقیقاً ۵۰ پیکسل فاصله بین آن‌ها */
}

/* حذف مارجین یا پدینگ‌های اضافی احتمالی برای این حالت خاص */
.contact-row-body.inline-body .contact-row-label {
    margin: 0;
    white-space: nowrap;       /* جلوگیری از شکستن متن واحد فروش در مانیتورهای کوچک */
}
/* قرار گرفتن لیبل و تلفن در یک خط با فاصله ۵۰ پیکسلی */
.contact-row-body.inline-body {
    display: flex;
    flex-direction: row;       
    align-items: flex-start;       
    gap: 50px;                 
}

.contact-row-body.inline-body .contact-row-label {
    margin: 0;
    white-space: nowrap;       
}

/* کانتینر اصلی شماره‌های پشتیبانی */
.phone-group {
    display: flex;
    flex-direction: column;
    gap: 8px; /* فاصله عمودی بین خط اول و خط دوم شماره‌ها */
    align-items: flex-start;
}

/* خط دوم شماره‌ها: قرار گرفتن دو شماره کنار هم با فاصله */
.phone-row {
    display: flex;
    flex-direction: row;
    gap: 20px; /* فاصله بین دو شماره در خط دوم */
}

/* ==========================================================================
   ایده فوق شیشه‌ای (Glassmorphism) سازگار با هر دو تم لایت و دارک
   ========================================================================== */

.category-bar {
    display: inline-block !important; 
    width: auto !important; 
    min-width: 300px !important; 
    
    /* ۱. شاه‌کلید ترنسپرنت هوشمند: استفاده از رنگ متن قالب با شفافیت کم */
    background-color: currentColor !important;
    
    /* ۲. ایجاد یک لایه شیشه‌ای ظریف روی پس‌زمینه (۱۰ درصد غلظت رنگ تم) */
    opacity: 0.85 !important;
    filter: brightness(0.95);
    background: rgba(22, 190, 187, 0.22) !important; /* ترکیب ملایم فیروزه‌ای برای حالت شیشه‌ای */
    
    /* ۳. افکت بلور (مات‌کننده) برای عبور لوکس نور بک‌گراند از زیر نوار */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    
    /* رنگ متن نوارها در حالت دارک سفید و در لایت فیروزه‌ای ملایم بماند */
    color: inherit !important; 
    
    /* ۴. یک حاشیه بسیار ظریف و مویی برای حس لوکسِ شیشه‌ای */
    border: 1px solid rgba(22, 190, 187, 0.3) !important;
    
    /* پدینگ منظم و گرد شدن لبه‌ها متناسب با کارت‌ها */
    padding: 10px 24px !important; 
    border-radius: 8px !important; 
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-align: right !important; 
    
    margin-top: 35px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

/* کانتینر ترازبند */
.category-bar-container {
    text-align: right !important;
    width: 100% !important;
    display: block !important;
}

/* ==========================================================================
   بک‌گراند شطرنجی و مدرن هیرو تماس با ما (الگوبرداری از صفحه اول)
   ========================================================================== */
/* ==========================================================================
   نسخه نهایی و بی‌نقص هیرو تماس با ما (ادغام شطرنجی با کد اصلی قالب شما)
   ========================================================================== */

.custom-contact-hero {
    display: block !important;
    width: 100% !important;
    padding: 60px 0 !important; 
    text-align: center !important;
    box-sizing: border-box;
    position: relative !important;
    overflow: hidden !important;

    /* دقیقا همان خط کد ارسالی شما + ۲ خط اول برای ایجاد تار و پود شطرنجی */
    background: 
        linear-gradient(rgba(22, 190, 187, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 190, 187, 0.05) 1px, transparent 1px),
        var(--gradient-hero), 
        radial-gradient(circle at 80% 20%, rgba(0, 150, 149, 0.4), transparent 50%), 
        radial-gradient(circle at 10% 90%, rgba(255, 102, 0, 0.25), transparent 45%), 
        var(--brand-navy) !important;
    
    /* تنظیم ابعاد شطرنجی برای دو لایه اول و حالت تمام‌صفحه برای بقیه لایه‌های متغیر قالب */
    background-size: 45px 45px, 45px 45px, auto, auto, auto, auto !important;
}

/* کانتینر داخلی جهت اطمینان از قرارگیری متن‌ها در بالاترین لایه */
.hero-wide-wrapper {
    display: block !important;
    width: 90% !important;
    max-width: 1420px !important; 
    margin: 0 auto !important;
    box-sizing: border-box;
    position: relative !important;
    z-index: 2 !important;
}

/* استایل عنوان اصلی */
.custom-contact-hero h1 {
    display: block !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 auto 20px !important;
}

/* تنظیمات متن طولانی */
.custom-contact-hero .hero-lead-text {
    display: block !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.15rem !important;
    line-height: 2.2 !important; 
    text-align: justify !important; 
    text-align-last: center !important; 
    padding: 0 50px !important; 
    margin: 0 auto 20px !important;
    word-spacing: 2px !important; 
}

/* استایل پاراگراف آخر (کارشناسان فروش...) */
.custom-contact-hero .hero-sub-text {
    display: block !important;
    color: #16bebb !important; 
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin: 20px auto 0 !important;
}

/* بهینه‌سازی ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .custom-contact-hero {
        padding: 40px 0 !important;
        background-size: 30px 30px, 30px 30px, auto, auto, auto, auto !important; /* ریزتر شدن شبکه در موبایل */
    }
    .custom-contact-hero .hero-lead-text {
        padding: 0 15px !important;
        text-align: center !important;
        text-align-last: center !important;
        font-size: 1rem !important;
    }
    .custom-contact-hero h1 {
        font-size: 2rem !important;
    }
}