/* ============================================================
   شرکت تلفن کارگستر (TKG) — main.css
   تعریف تم، تایپوگرافی و چیدمان کلی ساختاری
   ============================================================ */

/* ===== متغیرهای تم — حالت روشن (پیش‌فرض) ===== */
:root {
    /* رنگ‌های برند */
    --brand-teal: #009695;
    --brand-teal-dark: #006d6c;
    --brand-teal-light: #2cc4c3;
    --brand-orange: #ff6600;
    --brand-orange-dark: #e65c00;
    --brand-navy: #001f3f;
    --brand-aqua: #4ecdc4;

    /* رنگ‌های معنایی — حالت روشن (کاغذی/کرم، حس شرکتی تمیز) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-elevated: #ffffff;
    --bg-muted: #f1f5f9;
    --bg-overlay: rgba(0, 31, 63, 0.55);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-on-brand: #ffffff;

    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-brand: 0 8px 24px rgba(0, 150, 149, 0.25);

    --gradient-brand: linear-gradient(135deg, #009695 0%, #006d6c 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 31, 63, 0.92) 0%, rgba(0, 109, 108, 0.88) 100%);

    /* اندازه‌ها و شعاع‌ها */
    --container-max: 1240px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;

    --header-height: 80px;
    --transition: 0.3s ease;
}

/* ===== متغیرهای تم — حالت تاریک (مشکی اوبسیدین عمیق) ===== */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-elevated: #1e293b;
    --bg-muted: #243044;
    --bg-overlay: rgba(0, 0, 0, 0.75);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-on-brand: #ffffff;

    --border-color: #334155;
    --border-strong: #475569;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
    --shadow-brand: 0 8px 24px rgba(44, 196, 195, 0.3);

    --gradient-brand: linear-gradient(135deg, #009695 0%, #2cc4c3 100%);
    --gradient-hero: linear-gradient(135deg, rgba(2, 6, 23, 0.94) 0%, rgba(0, 109, 108, 0.8) 100%);
}

/* ===== ریست پایه ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Vazirmatn', 'IRANSans', 'Segoe UI', Tahoma, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.85;
    direction: rtl;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-teal);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--brand-teal-dark);
}

ul {
    list-style: none;
}

/* ===== تایپوگرافی ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.6rem, 2vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1rem;
}

/* ===== چیدمان کلی — کانتینر و بخش‌ها ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 20px;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-tight {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

/* بخش اصلی (مادر) */
.section-map {
    /* ریسپانسیو و کم: در موبایل 10px، در دسکتاپ حداکثر 20px */
    padding: clamp(10px, 2vw, 20px) 0; 
        width: 100%;
      
    /* مارجین ریسپانسیو و کم برای فاصله از المان بعدی */
    margin: 0 auto clamp(12px, 2.5vw, 24px); 
}

/* نوشته بالای نقشه */
.contact-map-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center; /* وسط‌چین کردن متن */
    margin-bottom: 20px; /* فاصله تا کانتینر نقشه */
}

/* ۱. کانتینر نقشه: وسط‌چین، عرض ۸۰٪ و پدینگ ۵ پیکسل */
.map-wrapper {
    width: 80%; /* عرض ۸۰ درصد */
    max-width: 1200px; /* برای اینکه در مانیتورهای خیلی بزرگ بیش از حد پهن نشود (اختیاری) */
    margin: 0 auto; /* وسط‌چین کردن خود کانتینر */
    padding: 5px; /* پدینگ ۵ پیکسلی خواسته شده */
    background-color: rgba(255, 255, 255, 0.1); /* یک پس‌زمینه کم‌رنگ برای اینکه پدینگ خودش را نشان دهد (قابل تغییر یا حذف) */
    border-radius: 8px; /* گرد کردن لبه‌های کانتینر (اختیاری) */
    box-sizing: border-box; /* برای محاسبه درست پدینگ و عرض */
}

/* ۲. تنظیم خود نقشه داخل کانتینر */
.map-wrapper iframe {
    width: 100%; /* پر کردن کل فضای داخل پدینگ */
    display: block;
    border-radius: 6px; /* گرد کردن لبه‌های خود نقشه (اختیاری) */
}

/* دکمه مسیریابی مپ */
.section-map .btn {
    display: block;
    width: 80%; /* هماهنگ شدن عرض دکمه با کانتینر نقشه */
    margin: 12px auto 0; /* وسط‌چین کردن دکمه */
    text-align: center;
}



.section--alt {
    background-color: var(--bg-secondary);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* عناوین بخش با خط تاکیدی */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.section-head .eyebrow {
    display: inline-block;
    color: var(--brand-teal);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.section-head h2 {
    margin-bottom: 1rem;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* خط جداکننده زیر عناوین */
.title-accent::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
}

/* روی هم قرار دادن آیکون لوگو در دکمه‌ها */
.ltr { direction: ltr; }

/* جلوگیری از جابجایی هنگام لود تم */
.no-anim * { transition: none !important; }
