/*
Theme Name: EasyGo Logistics Pro
Theme URI: https://chinpost.com
Author: EasyGo Development Team
Author URI: https://chinpost.com
Description: قالب فوق حرفه‌ای لجستیک بین‌المللی EasyGo — طراحی مدرن، سریع، امن و سازگار با SEO برای شرکت‌های کارگو و حمل‌ونقل
Version: 5.0.0
License: Proprietary
Text Domain: easygo
Requires PHP: 7.4
Requires at least: 6.0
Tags: logistics, cargo, rtl, responsive, one-page, custom-menu, featured-images, translation-ready
*/

/* ═══════════════════════════════════════════════════════════
   EasyGo Design System v5.0 — "Midnight Aurora"
   Typography: Outfit (Display) + Vazirmatn (RTL Body) + JetBrains Mono (Data)
   Palette: Deep Midnight → Electric Gold → Arctic White
   ═══════════════════════════════════════════════════════════ */

:root {
    /* — Core Brand Palette — */
    --eg-midnight: #06090F;
    --eg-navy: #0B1120;
    --eg-navy-light: #111B2E;
    --eg-navy-mid: #162240;
    --eg-slate: #1E293B;
    --eg-slate-light: #334155;

    --eg-gold: #E5B94E;
    --eg-gold-light: #F5D580;
    --eg-gold-deep: #C49B2A;
    --eg-gold-glow: rgba(229, 185, 78, 0.15);
    --eg-gold-subtle: rgba(229, 185, 78, 0.06);

    --eg-white: #F8FAFC;
    --eg-white-pure: #FFFFFF;
    --eg-gray-100: #F1F5F9;
    --eg-gray-200: #E2E8F0;
    --eg-gray-300: #CBD5E1;
    --eg-gray-400: #94A3B8;
    --eg-gray-500: #64748B;
    --eg-gray-600: #475569;

    --eg-emerald: #10B981;
    --eg-sky: #38BDF8;
    --eg-rose: #FB7185;
    --eg-violet: #A78BFA;

    /* — Typography Scale — */
    --font-display: 'Outfit', 'Vazirmatn', system-ui, sans-serif;
    --font-body: 'Vazirmatn', 'Outfit', Tahoma, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-hero: clamp(2.5rem, 6vw, 4.5rem);

    /* — Spacing — */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-section: clamp(60px, 10vw, 120px);

    /* — Surfaces & Effects — */
    --glass-bg: rgba(11, 17, 32, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 24px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.2);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.3);
    --shadow-gold: 0 8px 30px rgba(229, 185, 78, 0.25);
    --shadow-glow: 0 0 40px rgba(229, 185, 78, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    /* — Motion Curves — */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1280px;
    --header-h: 80px;
    --header-h-scroll: 64px;
}

/* ═══════════════════════════════════════════════════════════
   1. GLOBAL RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--eg-white);
    color: var(--eg-slate);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; transition: all 0.35s var(--ease-smooth); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }

::selection { background: var(--eg-gold); color: var(--eg-midnight); }

/* ═══════════════════════════════════════════════════════════
   2. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */
.eg-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }
.eg-section { padding: var(--space-section) 0; position: relative; overflow: hidden; }
.eg-text-center { text-align: center; }
.eg-flex { display: flex; }
.eg-grid { display: grid; }
.eg-hidden { display: none !important; }

/* Section Headers */
.eg-section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--eg-gold-glow);
    border: 1px solid rgba(229, 185, 78, 0.2);
    color: var(--eg-gold);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.eg-section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--eg-navy);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
}

.eg-section-desc {
    font-size: var(--text-lg);
    color: var(--eg-gray-500);
    max-width: 640px;
    line-height: 1.8;
}

/* Dark section variants */
.eg-dark .eg-section-title { color: var(--eg-white); }
.eg-dark .eg-section-desc { color: var(--eg-gray-400); }

/* ═══════════════════════════════════════════════════════════
   3. BUTTONS
   ═══════════════════════════════════════════════════════════ */
.eg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: var(--text-sm);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.eg-btn::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s var(--ease-out-expo);
    transform: skewX(-25deg);
}

.eg-btn:hover::before { left: 150%; }

.eg-btn-gold {
    background: var(--eg-gold);
    color: var(--eg-midnight);
    box-shadow: var(--shadow-gold);
}
.eg-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(229,185,78,0.4);
    background: var(--eg-gold-light);
}

.eg-btn-dark {
    background: var(--eg-navy);
    color: var(--eg-white);
    border: 1px solid var(--glass-border);
}
.eg-btn-dark:hover {
    transform: translateY(-3px);
    background: var(--eg-navy-light);
    border-color: var(--eg-gold);
}

.eg-btn-ghost {
    background: transparent;
    color: var(--eg-white);
    border: 2px solid rgba(255,255,255,0.15);
}
.eg-btn-ghost:hover {
    border-color: var(--eg-gold);
    background: rgba(229,185,78,0.08);
    transform: translateY(-2px);
}

.eg-btn-block { width: 100%; justify-content: center; }
.eg-btn-lg { padding: 18px 40px; font-size: var(--text-base); border-radius: var(--radius-lg); }
.eg-btn-sm { padding: 10px 22px; font-size: var(--text-xs); }

/* Pulse CTA animation */
.eg-btn-pulse { animation: eg-pulse 2.5s infinite; }
@keyframes eg-pulse {
    0% { box-shadow: var(--shadow-gold); }
    50% { box-shadow: var(--shadow-gold), 0 0 0 12px rgba(229,185,78,0); }
    100% { box-shadow: var(--shadow-gold); }
}

/* ═══════════════════════════════════════════════════════════
   4. CARDS
   ═══════════════════════════════════════════════════════════ */
.eg-card {
    background: var(--eg-white-pure);
    border: 1px solid var(--eg-gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.5s var(--ease-spring);
}
.eg-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--eg-gold);
}

.eg-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

/* ═══════════════════════════════════════════════════════════
   5. ANIMATIONS (Scroll Reveal System)
   ═══════════════════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(40px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(-40px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="scale"].revealed { transform: scale(1); }

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════
   6. RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .eg-section { padding: clamp(40px, 8vw, 80px) 0; }
    .eg-section-title { font-size: var(--text-3xl); }
    .eg-container { padding: 0 var(--space-md); }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
        --header-h-scroll: 56px;
    }
    .eg-section-title { font-size: var(--text-2xl); }
    .eg-section-desc { font-size: var(--text-base); }
    .eg-btn-lg { padding: 15px 30px; font-size: var(--text-sm); }
}
