/**
*
*	Name:			IRANSansX Fonts
*	Version:			3
*	Author:			Moslem Ebrahimi (moslemebrahimi.com)
*	Created on:		Apr 22, 2021
*	Updated on:		Jul 12, 2023
*	Website:			http://fontiran.com
*	Copyright:		Commercial/Proprietary Software
*
*	فونت ایران سنس X یک نرم افزار مالکیتی محسوب می شود. جهت آگاهی از قوانین استفاده از این فونت ها لطفا به وب سایت (فونت ایران دات کام) مراجعه نمایید
*	IRANSansX fonts are considered a proprietary software. To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com
*
**/

/* ============================================
   تعریف فونت ایران‌سنس X
   ============================================ */

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 100;
	src: url('/fonts/woff/IRANSansX-Thin.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-Thin.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 200;
	src: url('/fonts/woff/IRANSansX-UltraLight.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-UltraLight.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 300;
	src: url('/fonts/woff/IRANSansX-Light.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-Light.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 500;
	src: url('/fonts/woff/IRANSansX-Medium.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-Medium.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 600;
	src: url('/fonts/woff/IRANSansX-DemiBold.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-DemiBold.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 800;
	src: url('/fonts/woff/IRANSansX-ExtraBold.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-ExtraBold.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 900;
	src: url('/fonts/woff/IRANSansX-Black.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-Black.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 950;
	src: url('/fonts/woff/IRANSansX-ExtraBlack.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-ExtraBlack.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: 1000;
	src: url('/fonts/woff/IRANSansX-Heavy.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-Heavy.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: bold;
	src: url('/fonts/woff/IRANSansX-Bold.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-Bold.woff2') format('woff2');
}

@font-face {
	font-family: IRANSansX;
	font-style: normal;
	font-weight: normal;
	src: url('/fonts/woff/IRANSansX-Regular.woff') format('woff'),
		 url('/fonts/woff2/IRANSansX-Regular.woff2') format('woff2');
}


/* ============================================
   اعمال فونت و وزن‌ها
   ============================================ */

body {
    font-family: IRANSansX, Tahoma, Arial, sans-serif;
    font-weight: normal;
    font-feature-settings: "ss02" !important;
    -webkit-font-feature-settings: "ss02" !important;
    -moz-font-feature-settings: "ss02" !important;
    font-variant-numeric: ordinal !important;
}

/* تیتر اصلی (h1) */
h1, .h1 {
    font-weight: 900;  /* Black */
}

/* تیترهای سطح 2 */
h2, .h2 {
    font-weight: 800;  /* ExtraBold */
}

/* تیترهای سطح 3 و 4 */
h3, h4, .h3, .h4 {
    font-weight: 700;  /* Bold */
}

/* زیرتیترها */
h5, h6, .subtitle {
    font-weight: 600;  /* DemiBold */
}

/* متن اصلی */
p, .text-body, .normal-text {
    font-weight: normal;  /* Regular (400) */
}

/* متن‌های فرعی */
small, .small-text, .date, .meta {
    font-weight: 300;  /* Light */
}

/* فوتر و کپی‌رایت */
footer, .footer-text, .copyright {
    font-weight: 200;  /* UltraLight */
}

/* دکمه‌ها */
button, .btn {
    font-weight: 600;  /* DemiBold */
}

/* لینک منو */
.nav-link, .menu-item {
    font-weight: 500;  /* Medium */
}


/* ============================================
   راست‌چین کردن کل سایت
   ============================================ */

* {
    direction: rtl;
    text-align: right;
}

.ltr,
[dir="ltr"],
td.ltr,
td[dir="ltr"] {
    direction: ltr;
    text-align: left !important;
}

input, textarea, select {
    text-align: right;
}

input[type="tel"],input[dir="ltr"] {
    direction: ltr;
    text-align: left;
}


/* ============================================
   منوی اصلی (Navbar)
   ============================================ */


/* استایل لیست منو */
#mainNav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
}

#mainNav ul li {
    margin-left: 0;
    margin-right: 20px;
}

#mainNav ul li:first-child {
    margin-right: 0;
}


/* ============================================
   دکمه همبرگری و منوی موبایل
   ============================================ */

#menuToggle {
    display: block;
}

#mobileMenu {
    transition: transform 0.3s ease-in-out;
}


/* ============================================
   ریسپانسیو (Responsive)
   ============================================ */

@media (min-width: 769px) {
    #menuToggle {
        display: none !important;
    }

    .form-page {
        padding-top: 100px;
    }
}


/* ============================================
   فرم‌ها و فاصله از منو
   ============================================ */

.form-page {
    padding-top: 60px;
}


/* ============================================
   دکمه‌ها و کارت‌های مزایا (افکت‌ها)
   ============================================ */

.btn-hero {
    transition: all 0.3s ease;
}
.btn-hero:hover {
    transform: scale(1.05);
}

.benefit-card {
    transition: all 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


/* ============================================
  استایل‌های مودال
   ============================================ */

#consultantModal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#consultantModal.show {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

#consultantModal .bg-white {
    animation: modalIn 0.3s ease-out;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#consultantModal.show .bg-white {
    transform: scale(1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* ====== نرم‌کننده اسکرول کل صفحه ====== */
html {
    scroll-behavior: smooth;
}

.card {
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 2s ease;    transform-origin: center center;
    will-change: transform, opacity;
}

.card-stack {
    perspective: 1200px;
}


/* اسلایدهای قبلی (کمتر شلوغ) */
.card.prev {
    opacity: 0.7 !important;
    transform: scale(0.92) translateY(0px) !important;
    filter: blur(0.5px);
}

/* اسلاید فعلی (کامل و واضح) */
.card.active {
    opacity: 1 !important;
    transform: scale(1) translateY(0px) !important;
    filter: blur(0px);
}

/* اسلایدهای بعدی (کاملاً مشخص) */
.card.next {
    opacity: 1 !important;
    transform: scale(1) translateY(10px) !important;
}

/* محدود کردن عرض محتوای اسلایدها برای خوانایی بهتر */
.card .text-center {
    max-width: 85%;
    margin: 0 auto;
}



/* ====== افکت Parallax هنگام اسکرول ====== */
.card[data-speed="0.8"] {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card[data-speed="0.9"] {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card[data-speed="1.0"] {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}


.container-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
}
.item {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
}
@media (min-width: 1024px) {
    .item {
        width: 50%;
    }
    .item-2 {
        order: 1;
    }
    .item-1 {
        order: 2;
    }
}

/* چیدمان فوتر */

.custom-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.custom-footer .item-text {
    width: 100%;
    text-align: center;
}

.custom-footer .item-icons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ترتیب موبایل: آیکون‌ها بالا، متن پایین */
.custom-footer .item-text {
    order: 2;
}

.custom-footer .item-icons {
    order: 1;
}

/* دسکتاپ */
@media (min-width: 768px) {
    .custom-footer {
        flex-wrap: nowrap;
    }

    .custom-footer .item-text {
        width: 50%;
        text-align: right;
        order: 1;
    }

    .custom-footer .item-icons {
        width: 50%;
        justify-content: flex-end;
        order: 2;
    }
}



/* استپ 3 بوکینگ */
.consultant-card {
    position: relative;
    min-height: 170px;
}

.consultant-card.selected {
    border-color: #1a4a6e !important;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    box-shadow: 0 8px 25px rgba(26, 74, 110, 0.15);
    transform: scale(1.02);
}

.consultant-card.selected .absolute {
    border-color: #1a4a6e;
    background: #1a4a6e;
    box-shadow: 0 0 0 3px rgba(26, 74, 110, 0.2);
}

.consultant-card.selected .absolute svg {
    opacity: 1 !important;
}

.consultant-card {
border-color: #9ca3af !important; /* gray-400 */
}

.consultant-card:not(.selected):hover .absolute {
     border-color: #1a4a6e;
}

.consultant-card .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* بهینه‌سازی برای موبایل */
@media (max-width: 767px) {
    .consultant-card {
        min-height: 140px;
        padding: 14px !important;
    }

    .consultant-card .absolute {
        top: 10px;
        left: 10px;
        width: 22px;
        height: 22px;
    }

    .consultant-card .absolute svg {
        width: 14px;
        height: 14px;
    }

    /* فاصله بین کادرها در موبایل */
    .grid {
        gap: 12px !important;
    }
}



/* ====== دکمه‌های ساعت ====== */
.slot-btn {
    transition: all 0.2s ease;
    font-size: 11px;
    border-radius: 8px;
    border-width: 2px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-btn.selected-slot {
    border-color: #1a4a6e !important;
    background: #f0f7ff !important;
    color: #1a4a6e !important;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(26, 74, 110, 0.15);
}

.slot-btn:disabled,
.slot-btn.booked {
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.6;
}
