/* ============================================
   Layer2-City.css - استایل اختصاصی صفحه شهر
   پروژه: امداد خودرو دیاکو
   نسخه: 3.0.0
   مسیر: /L2/css/Layer2-City.css
   هدف: ظاهر متمایز، موبایل-فرست، تمرکز بر تماس فوری
   تغییرات:
   - حذف فوتر تصویری (مشکل ارتفاع)
   - افزودن فوتر ساده با ۶ دکمه
   ============================================ */

/* ============================================
   متغیرهای اختصاصی امداد خودرو
   ============================================ */
:root {
    --ek-color: var(--city-color, #d4a847);
    --ek-rgb: var(--city-rgb, 212, 168, 71);
    --ek-dark: #0f1a24;
    --ek-dark-2: #1a2a3a;
    --ek-danger: #dc2626;
    --ek-danger-dark: #991b1b;
    --ek-success: #16a34a;
    --ek-bg: #f4f6f8;
    --ek-card: #ffffff;
    --ek-text: #1a2a3a;
    --ek-text-muted: #5a6b7c;
    --ek-border: #e1e7ee;
    --ek-radius: 14px;
    --ek-shadow-sm: 0 2px 8px rgba(15, 26, 36, 0.06);
    --ek-shadow-md: 0 6px 20px rgba(15, 26, 36, 0.10);
    --ek-shadow-lg: 0 12px 32px rgba(15, 26, 36, 0.14);
}

/* ============================================
   OVERRIDE - پس‌زمینه و بدنه
   ============================================ */
body {
    background: var(--ek-bg);
}

.container {
    background: var(--ek-bg);
}

/* ============================================
   OVERRIDE - TopIcons
   ============================================ */
.TopIcons {
    background: var(--ek-dark);
    border-bottom: 2px solid var(--ek-color);
    box-shadow: var(--ek-shadow-md);
    padding: 0.5rem 1rem;
}

.TopIcons .brand-title {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 20px rgba(var(--ek-rgb), 0.4);
    animation: none !important;
    opacity: 1 !important;
    font-size: 1.1rem !important;
    font-weight: 700;
}

.TopIcons .brand-title::before,
.TopIcons .brand-title::after {
    display: none !important;
}

.TopIcons .icon-btn,
.TopIcons .menu-icon,
.TopIcons .settings-btn {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.TopIcons .icon-btn:hover,
.TopIcons .menu-icon:hover,
.TopIcons .settings-btn:hover {
    background: rgba(var(--ek-rgb), 0.25);
}

.TopIcons .icon-btn img,
.TopIcons .menu-icon img,
.TopIcons .settings-btn img {
    filter: brightness(0) invert(1);
}

/* ============================================
   OVERRIDE - Header (هدر تصویری شهر)
   ============================================ */
.header {
    min-height: 260px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f1a24;
}

.header-background {
    position: absolute;
    inset: 0;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    z-index: 0;
}

.header-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 26, 36, 0.4) 0%,
        rgba(15, 26, 36, 0.55) 50%,
        rgba(15, 26, 36, 0.85) 100%
    );
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 900px;
    width: 100%;
}

.header-content h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.header-content p {
    color: #f5d98a;
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* ============================================
   🔥 دکمه تماس فوری شناور (مهم‌ترین عنصر!)
   ============================================ */
.ek-call-cta {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--ek-danger) 0%, var(--ek-danger-dark) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    box-shadow:
        0 8px 24px rgba(220, 38, 38, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: ek-pulse 2.5s ease-in-out infinite;
}

.ek-call-cta:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow:
        0 12px 32px rgba(220, 38, 38, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e62929 0%, #b91c1c 100%);
}

.ek-call-cta:active {
    transform: translateX(-50%) translateY(-1px) scale(0.97);
}

.ek-call-cta .ek-call-icon {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-block;
    animation: ek-ring 2s ease-in-out infinite;
}

.ek-call-cta .ek-call-text {
    line-height: 1;
}

@keyframes ek-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45), 0 0 0 0 rgba(220, 38, 38, 0.7); }
    50%      { box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45), 0 0 0 16px rgba(220, 38, 38, 0); }
}

@keyframes ek-ring {
    0%, 100% { transform: rotate(0); }
    10%, 30%  { transform: rotate(-12deg); }
    20%, 40%  { transform: rotate(12deg); }
    50%       { transform: rotate(0); }
}

/* ============================================
   OVERRIDE - Sub-Nav (ناوبری شهری)
   ============================================ */
.sub-nav {
    background: var(--ek-dark-2);
    border-bottom: none;
    padding: 0.35rem 0.5rem;
    box-shadow: var(--ek-shadow-sm);
}

.sub-nav-list {
    gap: 0.35rem;
    justify-content: space-around;
}

.sub-nav-item {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    min-width: auto;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sub-nav-item.shop {
    background: rgba(220, 38, 38, 0.15) !important;
    color: #fca5a5 !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
}

.sub-nav-item.shop:hover {
    background: var(--ek-danger) !important;
    color: #ffffff !important;
    border-color: var(--ek-danger) !important;
    transform: translateY(-2px);
}

.sub-nav-item.history,
.sub-nav-item.nature,
.sub-nav-item.projects {
    background: rgba(var(--ek-rgb), 0.12) !important;
    color: var(--ek-color) !important;
    border-color: rgba(var(--ek-rgb), 0.3) !important;
}

.sub-nav-item.history:hover,
.sub-nav-item.nature:hover,
.sub-nav-item.projects:hover {
    background: var(--ek-color) !important;
    color: var(--ek-dark) !important;
    border-color: var(--ek-color) !important;
    transform: translateY(-2px);
}

.sub-nav-item.active {
    transform: none !important;
}

/* ============================================
   OVERRIDE - Main (محتوای اصلی)
   ============================================ */
.main {
    background: var(--ek-bg);
    padding: 1rem;
}

.page-content {
    gap: 1.25rem;
}

/* ===== Hero ===== */
.page-hero {
    background: var(--ek-card);
    padding: 1.5rem 1.25rem;
    border-radius: var(--ek-radius);
    box-shadow: var(--ek-shadow-sm);
    border-right: 5px solid var(--ek-color);
    margin: 0;
}

.page-hero-title {
    color: var(--ek-dark);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    padding-bottom: 0.65rem;
    text-shadow: none;
}

.page-hero-title::after {
    background: linear-gradient(90deg, var(--ek-color) 0%, transparent 100%);
    box-shadow: none;
    max-width: 180px;
    height: 3px;
}

.page-hero-subtitle {
    color: var(--ek-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.5rem 0 0.75rem;
}

.page-hero-body {
    color: var(--ek-text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

.page-toggle-btn {
    background: rgba(var(--ek-rgb), 0.08);
    color: var(--ek-dark);
    border-color: rgba(var(--ek-rgb), 0.4);
    font-size: 0.85rem;
}

.page-toggle-btn:hover {
    background: var(--ek-color);
    color: var(--ek-dark);
    border-color: var(--ek-color);
}

/* ============================================
   OVERRIDE - Icon Gallery (خدمات)
   ============================================ */
.icon-gallery-section {
    background: var(--ek-card);
    border-radius: var(--ek-radius);
    padding: 1.25rem 0.75rem 1rem;
    box-shadow: var(--ek-shadow-sm);
    margin: 0;
}

.icon-gallery-header {
    padding: 0 1rem 0.85rem;
}

.icon-gallery-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ek-dark);
    padding-bottom: 0.5rem;
}

.icon-gallery-title::after {
    background: linear-gradient(90deg, var(--ek-color) 0%, transparent 100%);
    height: 3px;
}

.icon-gallery-title-icon {
    font-size: 1.3rem;
}

.icon-gallery-scroll-wrapper {
    gap: 0.85rem;
    padding: 0.25rem 1rem 0.5rem;
}

.icon-gallery-item {
    width: 100px;
    padding: 0.5rem 0.4rem;
    border-radius: 12px;
    background: rgba(var(--ek-rgb), 0.05);
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
}

.icon-gallery-item:hover {
    background: rgba(var(--ek-rgb), 0.12);
    border-color: rgba(var(--ek-rgb), 0.4);
    transform: translateY(-4px);
    box-shadow: var(--ek-shadow-md);
}

.icon-gallery-image-box {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.icon-gallery-caption {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ek-dark);
    margin-top: 0.35rem;
}

.icon-gallery-item:hover .icon-gallery-caption {
    color: var(--ek-color);
}

/* ============================================
   OVERRIDE - Page List (لیست خدمات)
   ============================================ */
.page-list {
    background: var(--ek-card);
    border-right: 5px solid var(--ek-color);
    border-radius: var(--ek-radius);
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    box-shadow: var(--ek-shadow-sm);
    margin: 0;
}

.page-list-title {
    color: var(--ek-dark);
    font-size: 1.1rem;
    font-weight: 800;
    border-bottom: 2px dashed rgba(var(--ek-rgb), 0.4);
    padding-bottom: 0.65rem;
    margin: 0 0 1rem;
}

.page-list-item {
    padding: 0.55rem 1.6rem 0.55rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--ek-border);
}

.page-list-item:last-child {
    border-bottom: none;
}

.page-list-item::before {
    background: var(--ek-color);
    box-shadow: 0 0 0 3px rgba(var(--ek-rgb), 0.2);
}

.page-list-item-title {
    color: var(--ek-dark);
    font-weight: 800;
}

.page-list-item-text {
    color: var(--ek-text-muted);
}

/* ============================================
   OVERRIDE - Vid Gallery
   ============================================ */
.vid-gallery-section {
    background: var(--ek-card);
    border-radius: var(--ek-radius);
    padding: 0.75rem 0;
    box-shadow: var(--ek-shadow-sm);
    margin: 0;
}

.vid-gallery-card {
    background: #ffffff;
    border: 1px solid var(--ek-border);
    border-radius: 12px;
}

.vid-gallery-card:hover {
    border-color: var(--ek-color);
}

.vid-gallery-title {
    color: var(--ek-dark);
    font-weight: 700;
}

.vid-gallery-description {
    color: var(--ek-text-muted);
}

/* ============================================
   OVERRIDE - Page Main (بخش‌های محتوایی)
   ============================================ */
.page-main {
    background: var(--ek-card);
    padding: 1.25rem;
    border-radius: var(--ek-radius);
    box-shadow: var(--ek-shadow-sm);
    margin: 0;
}

.page-main-title {
    color: var(--ek-dark);
    font-size: 1.15rem;
    font-weight: 800;
    text-shadow: none;
    padding-right: 1rem;
}

.page-main-title::before {
    background: linear-gradient(180deg, var(--ek-color), rgba(var(--ek-rgb), 0.4));
    box-shadow: none;
    width: 4px;
}

.page-main-title::after {
    background: linear-gradient(90deg, var(--ek-color) 0%, transparent 100%);
}

.page-main-subtitle {
    color: var(--ek-color);
}

.page-main-body {
    color: var(--ek-text-muted);
    line-height: 1.9;
}

/* ============================================
   OVERRIDE - FAQ
   ============================================ */
.faq-section {
    background: var(--ek-card);
    padding: 1.25rem;
    border-radius: var(--ek-radius);
    box-shadow: var(--ek-shadow-sm);
    margin: 0;
}

.faq-section h2 {
    color: var(--ek-dark);
    font-size: 1.15rem;
    border-bottom: 3px solid var(--ek-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.faq-section details {
    background: #f9fafb;
    border: 1px solid var(--ek-border);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
}

.faq-section details[open] {
    background: #ffffff;
    border-color: var(--ek-color);
    box-shadow: var(--ek-shadow-sm);
}

.faq-section summary {
    color: var(--ek-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.faq-section summary::after {
    color: var(--ek-color);
}

.faq-section details p {
    color: var(--ek-text-muted);
    font-size: 0.9rem;
    line-height: 1.9;
    border-top: 1px dashed var(--ek-border);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

/* ============================================
   OVERRIDE - Aside (اطلاعات تماس)
   ============================================ */
.aside {
    background: var(--ek-dark);
    color: #ffffff;
    padding: 1.25rem;
    border-radius: var(--ek-radius);
    box-shadow: var(--ek-shadow-md);
    border-right: 5px solid var(--ek-color);
}

.aside h3 {
    color: var(--ek-color);
    font-size: 1.1rem;
    font-weight: 800;
    border-bottom: 2px solid rgba(var(--ek-rgb), 0.4);
    padding-bottom: 0.5rem;
    margin-bottom: 0.85rem;
}

.aside p {
    color: #d1d9e0;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0 0 0.5rem;
}

.aside strong {
    color: #ffffff;
}

.aside a {
    color: var(--ek-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    direction: ltr;
    display: inline-block;
}

.aside a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ============================================
   🔥 فوتر ساده صفحه شهر (بدون تصویر)
   ============================================ */
.ek-footer-simple {
    background: linear-gradient(135deg, #0f1a24 0%, #1a2a3a 100%);
    border-top: 4px solid var(--ek-color);
    border-radius: var(--ek-radius);
    padding: 1.5rem 1.25rem;
    margin: 1.25rem 0 0;
    box-shadow: var(--ek-shadow-md);
}

.ek-footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.ek-footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}

.ek-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ek-footer-link span[aria-hidden="true"] {
    font-size: 1.05rem;
    line-height: 1;
}

.ek-footer-link:hover {
    background: rgba(var(--ek-rgb), 0.2);
    border-color: var(--ek-color);
    color: var(--ek-color);
    transform: translateY(-2px);
}

.ek-footer-link-primary {
    background: linear-gradient(135deg, var(--ek-danger) 0%, var(--ek-danger-dark) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.ek-footer-link-primary:hover {
    background: linear-gradient(135deg, #e62929 0%, #b91c1c 100%);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* ============================================
   OVERRIDE - Footer ساده پایینی
   ============================================ */
.footer-simple {
    background: var(--ek-dark);
    border-top: 3px solid var(--ek-color);
}

/* ============================================
   OVERRIDE - MenuSidebar
   ============================================ */
.MenuSidebar .menu-content {
    background: rgba(15, 26, 36, 0.97);
}

.MenuSidebar li a {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.MenuSidebar li a:hover {
    background: rgba(var(--ek-rgb), 0.2);
    color: var(--ek-color);
}

.MenuSidebar .close-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   OVERRIDE - ScrollToTop
   ============================================ */
.scroll-to-top {
    background: var(--ek-dark);
    border-color: var(--ek-color);
    bottom: 5.5rem;
}

.scroll-to-top:hover {
    background: var(--ek-color);
}

/* ============================================
   OVERRIDE - About Page Box
   ============================================ */
.about-page-btn {
    background: linear-gradient(135deg, var(--ek-color), color-mix(in srgb, var(--ek-color) 70%, #000));
}

/* ============================================
   RESPONSIVE - موبایل
   ============================================ */
@media (max-width: 767px) {

    /* ===== TopIcons ===== */
    .TopIcons .brand-title {
        font-size: 0.95rem !important;
    }

    /* ===== Header ===== */
    .header {
        min-height: 200px;
    }

    .header-content {
        padding: 1.5rem 1rem;
    }

    .header-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.35rem;
    }

    .header-content p {
        font-size: 0.85rem;
    }

    /* ===== دکمه تماس فوری ===== */
    .ek-call-cta {
        bottom: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        border-width: 1.5px;
    }

    .ek-call-cta .ek-call-icon {
        font-size: 1.15rem;
    }

    /* ===== Sub-Nav ===== */
    .sub-nav {
        padding: 0.3rem 0.35rem;
    }

    .sub-nav-item {
        padding: 0.45rem 0.75rem;
        font-size: 0.72rem;
    }

    /* ===== Main ===== */
    .main {
        padding: 0.75rem;
    }

    .page-content {
        gap: 0.9rem;
    }

    /* ===== Hero ===== */
    .page-hero {
        padding: 1.1rem 1rem;
        border-right-width: 4px;
    }

    .page-hero-title {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .page-hero-body {
        font-size: 0.9rem;
    }

    /* ===== Icon Gallery ===== */
    .icon-gallery-section {
        padding: 1rem 0.5rem 0.85rem;
    }

    .icon-gallery-title {
        font-size: 0.95rem;
    }

    .icon-gallery-item {
        width: 88px;
    }

    .icon-gallery-image-box {
        width: 60px;
        height: 60px;
        padding: 6px;
    }

    .icon-gallery-caption {
        font-size: 0.72rem;
    }

    /* ===== Page List ===== */
    .page-list {
        padding: 1rem;
        border-right-width: 4px;
    }

    .page-list-item {
        font-size: 0.88rem;
        padding: 0.5rem 1.4rem 0.5rem 0;
    }

    /* ===== Page Main ===== */
    .page-main {
        padding: 1rem;
    }

    .page-main-title {
        font-size: 1rem;
    }

    /* ===== FAQ ===== */
    .faq-section {
        padding: 1rem;
    }

    .faq-section h2 {
        font-size: 1rem;
    }

    .faq-section summary {
        font-size: 0.88rem;
    }

    /* ===== Aside ===== */
    .aside {
        padding: 1rem;
        border-right-width: 4px;
    }

    /* ===== فوتر ساده صفحه شهر ===== */
    .ek-footer-simple {
        padding: 1.1rem 0.85rem;
        border-radius: 12px;
        margin: 1rem 0 0;
    }

    .ek-footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }

    .ek-footer-link {
        font-size: 0.78rem;
        padding: 0.6rem 0.5rem;
        gap: 0.35rem;
    }

    .ek-footer-link span[aria-hidden="true"] {
        font-size: 0.95rem;
    }

    /* ===== دکمه اسکرول به بالا ===== */
    .scroll-to-top {
        bottom: 4.5rem;
        right: 0.85rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* ============================================
   TABLET
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .ek-call-cta {
        bottom: 1.5rem;
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .header {
        min-height: 240px;
    }

    .header-content h1 {
        font-size: 1.7rem;
    }

    .header-content p {
        font-size: 0.95rem;
    }

    .icon-gallery-item {
        width: 105px;
    }

    .scroll-to-top {
        bottom: 6rem;
    }
}

/* ============================================
   DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .ek-call-cta {
        bottom: 2rem;
        padding: 1rem 2.25rem;
        font-size: 1.1rem;
    }

    .header {
        min-height: 280px;
    }

    .header-content h1 {
        font-size: 2.2rem;
    }

    .header-content p {
        font-size: 1.1rem;
    }
}

/* ============================================
   DESKTOP بزرگ
   ============================================ */
@media (min-width: 1200px) {
    .header {
        min-height: 300px;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .header-content p {
        font-size: 1.15rem;
    }
}

/* ============================================
   کاهش انیمیشن
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .ek-call-cta,
    .ek-call-cta .ek-call-icon {
        animation: none;
    }

    .ek-call-cta:hover,
    .sub-nav-item:hover,
    .icon-gallery-item:hover,
    .ek-footer-link:hover {
        transform: none;
    }
}