:root {
    --primary-blue: #003853;
    --primary-red: #d92525;
    --primary-orange: #f57c00;
    --accent-green: #10b981;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

    .main-nav a:hover, .main-nav a.active {
        color: var(--primary-red);
    }

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

.btn-green {
    background-color: var(--accent-green);
    color: white;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 20px 0 10px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.badge-license {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .badge-license .icon {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 20px 0 10px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services */
.services-section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-weight: 800;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Contact Cards Grid */
.contact-section {
    padding: 0 0 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.contact-card {
    border-radius: var(--radius);
    padding: 30px 20px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
}

.card-blue {
    background-color: var(--primary-blue);
}

.card-red {
    background-color: var(--primary-red);
}

.card-orange {
    background-color: var(--primary-orange);
}

.card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.phone-link {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 2px dashed rgba(255,255,255,0.3);
    padding-bottom: 5px;
    display: inline-block;
}

.btn-sub {
    background: var(--accent-green);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
}

/* Action Banner */
.action-banner {
    margin-top: 30px;
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.call-btn-large {
    color: var(--accent-green);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.banner-note {
    margin-top: 10px;
    color: #2563eb;
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }

        .main-nav.open {
            display: block;
        }

        .main-nav ul {
            flex-direction: column;
            align-items: center;
        }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-header .section-title {
        font-size: 1.5rem;
    }

    .feature-box {
        text-align: center;
    }

        .feature-box::before {
            top: 0;
            right: 0;
            width: 100%;
            height: 4px;
            transition: width 0.3s ease;
        }

        .feature-box:hover::before {
            height: 4px;
            width: 100%;
        }

    .ReklamPanelMojavez {
        position: fixed;
        left: 0;
        bottom: 0px;
        height: 70px;
        width: 90px;
        z-index: 9998;
        border-radius: 10px 10px 0 0;
        border: 1px solid #107896;
    }
    .samandehiImage {
        cursor: pointer;
        width: 64px;
    }
}
@media (min-width:768px) {
    .ReklamPanelMojavez {
        position: fixed;
        left: 20px;
        bottom: 0px;
        height: 80px;
        width: 110px;
        z-index: 9998;
        border-radius: 10px 10px 0 0;
    }
    .samandehiImage {
        cursor: pointer;
        width: 80px;
    }
}

.pulse-icon {
    display: inline-block;
    transform: rotate(270deg);
}

/* Main Services Description Section */
.main-services-section {
    padding: 70px 0;
    background-color: #ffffff;
}

.services-header {
    text-align: right;
    max-width: 800px;
    margin: 0 auto 50px;
}

    .services-header .sub-title {
        display: block;
        color: var(--accent-green);
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .services-header .section-title {
        color: var(--primary-blue);
        font-size: 1.8rem;
        font-weight: 800;
        margin-bottom: 20px;
        line-height: 1.4;
    }

.services-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 35px 25px;
    transition: all 0.3s ease;
    text-align: right;
    position: relative;
    overflow: hidden;
}

    .feature-box:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
        border-color: #cbd5e1;
    }

    .feature-box::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 0;
        background-color: var(--primary-red);
        transition: height 0.3s ease;
    }

    .feature-box:hover::before {
        height: 100%;
    }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background: #e0f2fe;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 12px;
}

.feature-box h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}


.footerCall {
    position: fixed;
    bottom: 0px;
    width: 230px;
    height: 60px;
    background: #48bfe3;
    z-index: 9999;
    text-align: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 10px;
    padding-top: 15px;
}

#dddd {
    width: 100px;
    height: 100px;
    background-color: #48bfe3;
    position: relative;
    animation-name: example;
    animation-duration: 2s;
    font-size: 13pt;
}

.colorWhite {
    color: #fff !important
}

/* About Section */
.about-section {
    padding: 20px 0;
    background-color: var(--bg-light);
}

.about-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border-right: 6px solid var(--accent-green);
}

.about-content .sub-title {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.about-content h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 10px 0 15px;
    font-weight: 800;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

    .highlight-item .check-icon {
        background: #d1fae5;
        color: #059669;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

/* Coverage Section (Tehran & Karaj) */
.coverage-section {
    padding: 10px 0;
    background: #ffffff;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.coverage-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 35px 30px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.3s ease;
}

    .coverage-card:hover {
        transform: translateY(-4px);
    }

.card-karaj {
    border-top: 5px solid var(--primary-blue);
}

.card-tehran {
    border-top: 5px solid var(--primary-red);
}

.coverage-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-karaj .coverage-badge {
    background: #e0f2fe;
    color: var(--primary-blue);
}

.card-tehran .coverage-badge {
    background: #fee2e2;
    color: var(--primary-red);
}

.coverage-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.coverage-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.98rem;
    margin-bottom: 20px;
}

.coverage-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .area-tags span {
        background: white;
        border: 1px solid #cbd5e1;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        color: var(--text-dark);
        font-weight: 600;
    }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .about-card {
        padding: 25px;
    }

    .about-content h2 {
        font-size: 1.4rem;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SEO Tags Styles
========================================= */
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    background-color: #f8f9fa;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

    .tag-link:hover {
        background-color: #198754; /* رنگ سبز بوت‌استرپ (bg-success) */
        color: #ffffff;
        border-color: #198754;
    }

/* =========================================
   Social Media Icons Styles
========================================= */
.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    overflow: hidden; /* ensure child images are clipped to the circle */
    padding: 0; /* remove extra inner spacing when using img */
}

/* If you put <img> inside the .social-icon, make it fill the container and keep circular shape */
.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop/cover to avoid distortion */
    display: block;
    border-radius: 50%;
}

    /* Hover effects for specific brands */
    .social-icon:hover.instagram {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: white;
        border-color: transparent;
    }

    .social-icon:hover.whatsapp {
        background-color: #25D366;
        color: white;
        border-color: #25D366;
    }

    .social-icon:hover.telegram {
        background-color: #0088cc;
        color: white;
        border-color: #0088cc;
    }

    .social-icon:hover.linkedin {
        background-color: #0077b5;
        color: white;
        border-color: #0077b5;
    }

/* =========================================
   FIX FOR BOTTOM FOOTER VISIBILITY
========================================= */
/* این کد باعث می‌شود اگر دکمه شناوری در پایین صفحه (مثل تماس یا واتس‌اپ) دارید، 
   نوشته‌های انتهای فوتر زیر آن پنهان نشوند و قابل خواندن باشند */
body {
    padding-bottom: 70px; /* این عدد را بر اساس ارتفاع دکمه‌های شناور خود تنظیم کنید */
}

/* اگر نمی‌خواهید به کل body پدینگ بدهید، می‌توانید مستقیماً به خود فوتر اعمال کنید: */
footer, .main-footer {
    padding-bottom: 40px;
    margin-bottom: 10px; /* ایجاد یک حاشیه امن در پایین‌ترین نقطه سایت */
}


/* =========================================
   Contact Us Page Enhancements
========================================= */
.contact-page-section {
    font-family: 'IRANSans', 'Vazir', Tahoma, sans-serif;
}

/* افکت هاور برای کارت‌های تماس */
.contact-info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

/* تنظیمات ریسپانسیو نقشه گوگل */
.map-container {
    position: relative;
    min-height: 100%;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ارتفاع نقشه در موبایل و تبلت */
@media (max-width: 991px) {
    .map-container {
        height: 400px !important;
        position: relative;
    }
    .map-container iframe {
        position: relative;
    }
}

.rotate270 {
  /* display: inline-block; */
  transform: rotate(270deg);
}

/* =========================================
   Media Gallery Styles (Photos & Videos)
========================================= */

/* شبکه‌بندی (Grid) منعطف برای تصاویر */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* شبکه‌بندی برای ویدئوها (کمی عریض‌تر) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* استایل پایه کارت‌های چندرسانه‌ای */
.media-card {
    background-color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
}

/* استایل مخصوص تصاویر */
.photo-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-card:hover img {
    transform: scale(1.08); /* افکت زوم ملایم */
}

/* پوشش متنی روی تصاویر در حالت هاور */
.photo-card .media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 56, 83, 0.9), transparent);
    color: white;
    padding: 30px 15px 15px;
    text-align: right;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-card:hover .media-overlay {
    transform: translateY(0);
}

.media-overlay span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* استایل مخصوص ویدئوها */
.video-card video {
    width: 100%;
    display: block;
    border-bottom: 4px solid var(--primary-red);
    background-color: #000;
}

.video-info {
    padding: 20px;
    text-align: right;
}

.video-info h4 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-card .media-overlay {
        transform: translateY(0); /* در موبایل متن همیشه مشخص باشد */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }
}