/*
========================================================================
Theme Name: Appnic / Website2App - Modernized Stylesheet (Clean Edition)
Description: Pure Structural Overrides without Mobile Menu Interferences
========================================================================
*/

/* بارگذاری فونت زیبای وزیرمتن از سرورهای گوگل */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800&display=swap');

/* ==========================================================================
   1. CORE THEME STYLES & RESET
   ========================================================================== */
body {
    font-family: 'Vazirmatn', 'shabnam', Tahoma, sans-serif !important;
    font-size: 15px;
    color: #4b5563;
    background-color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.8;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    font-weight: 700;
    font-family: 'Vazirmatn', sans-serif !important;
    margin: 0 0 15px 0;
}

h1 { font-size: 32px; line-height: 1.5; }
h2 { font-size: 25px; line-height: 1.5; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

a, a:hover {
    text-decoration: none;
    display: inline-block;
    outline: none;
    transition: all 0.25s ease-in-out;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* فواصل قالب */
.space-45 { height: 45px; }
.space-60 { height: 60px; }
.space-30 { height: 30px; }
.space-20 { height: 20px; }
.space-80 { height: 80px; }
.mb-30 { margin-bottom: 30px; }
.section-padding { padding: 80px 0; }

/* ==========================================================================
   2. FIXED HEADER & NAVIGATION (فقط دسکتاپ - بدون هیچ کدی برای منوی موبایل)
   ========================================================================== */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 0;
    background: transparent;
    transition: all 0.4s ease;
}

.header-area.sticky {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    padding: 12px 0;
}

.main-menu {
    display: block;
    width: 100%;
}

.main-menu ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    display: inline-block !important;
    margin-left: 25px !important;
    margin-right: 0 !important;
}

.main-menu ul li a {
    color: #334155 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 4px !important;
    position: relative;
}

.header-area:not(.sticky) .main-menu ul li a {
    color: #ffffff !important; 
}

.main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2063EF;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-menu ul li a:hover::after,
.main-menu ul li.active a::after {
    width: 100%;
}

.main-menu ul li a:hover {
    color: #2063EF !important;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
a.custom_btn {
    background: linear-gradient(135deg, #2063EF 0%, #124ec7 100%) !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(32, 99, 239, 0.2);
    border: none !important;
    transform: none !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

a.custom_btn:hover {
    background: linear-gradient(135deg, #124ec7 0%, #0d3da1 100%) !important;
    box-shadow: 0 4px 20px rgba(32, 99, 239, 0.35);
    color: #ffffff !important;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    color: #334155;
    background: #ffffff;
    padding: 11px 20px;
    border-radius: 14px;
    width: 205px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    margin: 5px;
}

.app-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.app-btn-icon {
    font-size: 32px;
    margin-left: 12px;
    color: #2063ef;
}

/* ==========================================================================
   4. SERVICES & FUTURE AREA
   ========================================================================== */
.single-service {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 25px !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
    text-align: center;
    height: calc(100% - 30px);
    margin-bottom: 30px;
}

.single-service:hover {
    box-shadow: 0 12px 25px rgba(32, 99, 239, 0.05);
    border-color: #2063EF;
}

.single-service img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 20px;
}

.future-area {
    background: transparent;
    padding: 60px 0;
}

.single-future {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 35px 25px !important;
    margin-bottom: 30px !important;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.single-future a {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    width: 100%;
}

.single-future:hover {
    background: #ffffff !important;
    border-color: #2063ef !important;
    box-shadow: 0 12px 25px rgba(32, 99, 239, 0.05) !important;
}

.future-icon {
    background: rgba(32, 99, 239, 0.06);
    color: #2063ef;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 20px;
    flex-shrink: 0;
}

.future-content h4 {
    font-size: 18px;
    font-weight: 800;
    color: #2063ef !important;
    margin-bottom: 6px;
}

.future-content p {
    font-size: 14px;
    color: #4b5563 !important;
    margin: 0;
    line-height: 1.8;
}

/* ==========================================================================
   5. PRICING & PLAN BUTTONS
   ========================================================================== */
.single-pricing {
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.single-pricing:hover, .single-pricing.active {
    box-shadow: 0 15px 35px rgba(13, 44, 109, 0.05);
    border-color: #2063ef;
}

a.pricing_btn {
    display: block !important;
    width: 100%;
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

.single-pricing:hover a.pricing_btn,
.single-pricing.active a.pricing_btn {
    background: #2063EF !important;
    color: #ffffff !important;
    border-color: #2063EF !important;
    box-shadow: 0 4px 12px rgba(32, 99, 239, 0.25) !important;
}

/* ==========================================================================
   6. PREMIUM SCREENSHOTS AREA (اصلاح قطعی رنگ پس‌زمینه بخش نمونه کارها)
   ========================================================================== */
.screen-area, section.screen-area, div.screen-area {
    background-color: #f1f5f9 !important; /* پس‌زمینه خاکستری روشن ملایم متمایز کننده */
    background: #f1f5f9 !important;
    padding: 80px 0 !important;
    display: block !important;
    position: relative;
}

/* ایجاد فریم سفید جذاب به همراه سایه برای اسکرین‌شات‌ها */
.screens .owl-item img, 
.screen-slider .owl-item img,
.screen-area img {
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07) !important;
    border: 6px solid #ffffff !important;
    background: #ffffff !important;
}

/* ==========================================================================
   7. PREMIUM TESTIMONIAL AREA (اصلاح و زیباسازی تمیز بخش نظرات کاربران)
   ========================================================================== */
.testimonial-area, section.testimonial-area {
    background-color: #ffffff !important;
    background: #ffffff !important;
    padding: 80px 0 !important;
}

/* کادربندی تمیز برای هر کامنت */
.testimonials .single-testimonial, .single-testimonial {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02) !important;
    text-align: right !important;
    margin: 15px !important;
}

.single-testimonial p, .client-comment p {
    font-size: 14.5px !important;
    color: #4b5563 !important;
    line-height: 1.8 !important;
    font-style: normal !important;
    margin-bottom: 20px !important;
}

.client-info {
    display: flex !important;
    align-items: center !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 15px !important;
    margin-top: 15px;
}

.client-img img, .single-testimonial img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    margin-left: 12px !important;
    border: 2px solid #2063ef !important;
    object-fit: cover !important;
    box-shadow: none !important;
}

.client-name h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 3px 0 !important;
}

.client-name h5 {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* ==========================================================================
   8. PREMIUM BLOG & SIDEBAR
   ========================================================================== */
.single_blog {
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 40px;
}

.single_blog:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09) !important;
    border-color: #cbd5e1 !important;
}

.blog_thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog_content {
    padding: 35px 30px !important;
}

.blog_meta span {
    font-size: 13px;
    color: #64748b;
}

.blog_meta span i {
    margin-left: 6px;
    color: #2063ef;
}

.blog_content h3 a {
    color: #0f172a !important;
    font-size: 21px !important;
    font-weight: 800;
}

.blog_content h3 a:hover {
    color: #2063ef !important;
}

.sidebar_widget {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 35px;
}

.widget_title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.widget_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: #2063ef;
}

.sidebar_widget ul li a {
    color: #334155 !important;
    font-size: 14.5px;
}

.sidebar_widget ul li a:hover {
    color: #2063ef !important;
    padding-right: 8px;
}

/* ==========================================================================
   9. BEAUTIFIED FORMS & DROPDOWNS (اصلاح قطعی منوی آبشاری فرم‌ها به سفید خالص)
   ========================================================================== */
input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    min-height: 54px;
    color: #0f172a !important;
    font-size: 14.5px !important;
    margin-bottom: 20px;
    outline: none;
}

input:focus, textarea:focus {
    border-color: #2063ef !important;
    box-shadow: 0 0 0 4px rgba(32, 99, 239, 0.1) !important;
}

/* استایل‌دهی جامع، عریض و اجباری برای تمام تگ‌های select و درپ‌داون‌های فرم */
select, .form-control select, .form-group select, select.form-control {
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    background-color: #ffffff !important; /* فیکس کامل رنگ پس‌زمینه روی سفید خالص */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 16px center !important;
    background-size: 14px 14px !important;
    border: 1px solid #cbd5e1 !important; /* کادر محیطی واضح و یکدست */
    border-radius: 12px !important;
    padding: 0 18px 0 45px !important;
    color: #0f172a !important;
    font-size: 14.5px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    margin-bottom: 20px;
    opacity: 1 !important;
    visibility: visible !important;
}

select:focus {
    background-color: #ffffff !important;
    border-color: #2063ef !important;
    box-shadow: 0 0 0 4px rgba(32, 99, 239, 0.1) !important;
}

input[type="file"] {
    display: block;
    width: 100%;
    min-height: 58px;
    font-size: 14px;
    color: #4b5563;
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    margin-bottom: 25px;
}

input[type="file"]::file-selector-button {
    border: none !important;
    background: #2063ef !important;
    padding: 8px 18px !important;
    height: 36px;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    margin-left: 15px;
}

/* ==========================================================================
   10. FAQ ACCORDIONS
   ========================================================================== */
.accordion .card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion .card-header {
    background: #ffffff !important;
    border-bottom: none !important;
    padding: 16px 20px;
}

.accordion .btn-link {
    color: #0f172a !important;
    font-weight: 700;
    font-size: 15px;
    text-align: right;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   11. FOOTER & TOOLBAR
   ========================================================================== */
.footer-area {
    background: linear-gradient(180deg, #09152e 0%, #030a17 100%) !important;
    color: #94a3b8 !important;
    padding: 80px 0 40px 0 !important;
    border-top: 4px solid #2063EF;
}

.footer_logo h5, .single-footer h5 {
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer_logo h5::after, .single-footer h5::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: #2063EF;
    border-radius: 2px;
}

.wd-toolbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 65px;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px 20px 0 0;
    padding: 5px 10px;
}

.wd-toolbar .wd-toolbar-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #475569 !important;
}

.wd-toolbar .wd-toolbar-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-top: 3px;
}

.wd-toolbar .wd-toolbar-item:hover a,
.wd-toolbar .wd-toolbar-item.active a {
    color: #2063ef !important;
}

@media (min-width: 1025px) {
    .wd-toolbar { display: none !important; }
}

/* ==========================================================================
   12. GENERAL RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 991px) {
    .single-service, .single-pricing, .single_blog { margin-bottom: 25px; }
    .header-area { padding: 25px 0 !important; }
    .header-area.sticky { padding: 15px 0 !important; }
}
