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

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

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

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

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

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

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

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

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IranSans/IRANSansX-UltraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
*,body,html{
  font-family: "IRANSansX" !important;
}

:root{
    --color-black : #000 ; 
    --color-white : #fff; 
    --color-blue-light : #4DA3F9;
    --color-blur-dark : #0D69C5 ; 
    --color-gray : #F0F3F7;
}

/* ===== HEADINGS RESPONSIVE ===== */
h1, .h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
}

h2, .h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
}

h3, .h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
}

h4, .h4 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 500;
    line-height: 1.3;
}

h5, .h5 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.35;
}

h6, .h6 {
    font-size: clamp(0.75rem, 1.6vw, 1rem);
    font-weight: 500;
    line-height: 1.4;
}

body{
    background-color: var(--color-gray);
}
* , body , html {
    padding: 0;
    margin: 0;
    text-decoration: none !important;
    font-family: IRANSans ,system-ui, -apple-system, sans-serif ;
    transition: ease-in-out 500ms;
}

header{
    z-index: 999;
    display: flex;
    width: calc(100%);
    justify-content: space-between;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    height: 70px;
    border-radius:  0 0 15px 15px;
    transform: translateX(-50%);
    box-shadow: 0px 5px 5px -4px rgba(255,255,255,0.6);
    a{
        margin-right: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--color-white) !important;
        img{
            width: 50px;
        }
    }
    button{
        margin-left: 1.5rem;
        display: flex;
        align-items: center;
        gap: .5rem;
        color: var(--color-white) !important;
        
    }
}
button{
    background-color: transparent;
    border: none;
    cursor: pointer;
}
#HeaderResponsive{
    z-index: 100000;
    position: fixed;
    top: -200vh;
    display: flex;
    background: linear-gradient(180deg, #2b6fab00 0%, rgb(27, 76, 136) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: space-between;
    width: 80%;
    min-width: 320px;
    left: 50%;
    padding: 4rem 0;
    transform: translateX(-50%);
    border-radius: 0 0 15px 15px;
    .experties{
        width: calc(30%);
        margin: 0 auto ;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 2rem;
        align-items: center;
        border-left: 1px solid var(--color-white);
        a{
            color: var(--color-white);
        }
    }
    .contact{
        width: 30%;
        display: flex;
        margin-left: auto;
        flex-direction: column;
        color: var(--color-white ) !important;
        .top{
            display: flex;
            flex-direction: column;
            align-items: end;
            margin: 2rem auto;
            width: 100%;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--color-white);
            a{
                color: var(--color-white);
            }
        }
        .map{
            position: relative;
            overflow: hidden;
            iframe{
                width: 100%;
                border-radius: 15px;
            }
            a{
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50% , -50%);
            }
        }

    }
}
#HeaderResponsive.active{
    top: 70px;
}
.hero-section{
    min-height: 40vh;
    /* background: #0D69C5;
    background: linear-gradient(270deg, rgba(13, 105, 197, 1) 0%, rgba(77, 163, 249, 1) 100%); */
    background-image: url('../companyPagePic/install.png');
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    .icons-container{
        width: calc(100% - 6rem);
        position: absolute;
        margin:0 auto;
        bottom: -40px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        left: 50%;
        transform: translateX(-50%);
        flex-wrap: wrap;
        gap: 1rem;
        .icon-box{
            width: 10%;
            /* padding: .5rem; */
            display: flex;
            justify-content: center;
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            background-color: var(--color-white);
            border-radius: 15px;
            cursor: pointer;
            box-shadow: 0px 5px 5px -4px rgba(0, 0, 0, 0.6);
            svg{
                width: 100%;
                height: 40px;
                fill: var(--color-black);
            }
        }
        .active , .icon-box:hover{
            scale: 1.05;
            background-color: var(--color-black);
            color: var(--color-white);
            font-weight: 900;
            svg{
                fill: var(--color-white);
            }
        }
    }
}

.menu-icon {
    stroke: var(--color-white);
    stroke-width: 8;
    stroke-linecap: round;
    transition: transform 0.3s ease;
}

.line {
    transition: 
    transform 0.3s ease,
    opacity 0.2s ease;
    transform-origin: center;
}

/* حالت ضربدر */
#menuBtn.active .top {
    transform: translateY(10px) rotate(45deg);
}

#menuBtn.active .middle {
    opacity: 0;
}

#menuBtn.active .bottom {
    transform: translateY(-20px) rotate(-45deg);
}

.gl-btn{
    background: linear-gradient(180deg, #2b6fab00 0%, rgba(255, 255, 255, 0.342) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--color-blur-dark);
    border-radius: 15px;
    padding: 8px 24px;
}
.bl-btn{
    background-color: var(--color-blue-light);
    color: var(--color-white);
    border-radius: 15px;
    padding: 8px 24px; 
    &:hover{
        scale: 1.1;
        background-color: var(--color-blur-dark);
    }
}

.product-info-box{
    width: calc(100% - 6rem);
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    .search-box{
        display: flex;
        align-items: center;
        gap: 5rem;
        .left{
            display: flex;
            align-items: center;
            gap: 1rem;
            div{
                display: flex;
                align-items: center;
                gap: .5rem;
                input{
                    width: 30px;
                    aspect-ratio: 1;
                    cursor: pointer;
                }
            }
            
        }
    }
}
.serial-search-box{
    width: calc(100% - 6rem);
    margin: 0 auto;
    border-radius: 15px;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    justify-content: center;
    input{
        width: 50%;
        border-radius: 5px;
        border: 1px solid var(--color-black);
        padding: 6px 0;
        text-indent: 8px;
        text-align: center;
        letter-spacing: 10px;
        &:focus{
            outline: none;
        }
    }
}
.fade-in{
    opacity: 1;
    display: flex;
    transition: ease-in-out 400ms !important;

}
.fade-out{
    display: none !important;
    opacity: 0;
    transition: ease-in-out 200ms !important;
}
.product-box{
    display: flex;
    justify-content: center;
    width: calc(100% - 6rem);
    margin: 2rem auto;
    align-items: center;
    min-height: 30vh;
    background-color: var(--color-white);
    border-radius: 15px;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 0;

}
/* بهبود ظاهر رادیو باتن‌های جستجو */
.product-info-box .search-box .left input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-blue-light);
    cursor: pointer;
}

.product-info-box .search-box .left h4 {
    margin: 0;
    font-weight: 500;
    color: #333;
}

/* استایل بهتر برای باکس جستجوی سریال */
.serial-search-box {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.serial-search-box input {
    font-family: Vazirmatn, monospace;
    font-size: 1.25rem;
    letter-spacing: 8px;
    direction: ltr;
    text-align: center;
}

.serial-search-box button {
    min-width: 120px;
}

/* وقتی فرم محصول نمایش داده می‌شود */
.serialSerachBox.fade-in ,   .product-box.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}
.serialSerachBox.fade-out ,  .product-box.fade-out {
    animation: fadeOutUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}
/* لیبل‌های فرم داخل product-box */
.customer-form-container .input-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.customer-form-container .form-input-custom,
.customer-form-container .form-select {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.customer-form-container .form-input-custom:focus,
.customer-form-container .form-select:focus {
    border-color: var(--color-blue-light);
    box-shadow: 0 0 0 0.2rem rgba(77, 163, 249, 0.25);
    outline: none;
}

/* آیکون‌های داخل ورودی‌ها */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.input-icon-wrapper input,
.input-icon-wrapper select {
    padding-right: 2.5rem !important;   /* برای جهت RTL - فاصله از راست */
}

/* textarea آدرس */
.address-input {
    resize: vertical;
    min-height: 110px;
}

/* هدر فرم اطلاعات مشتری */
.form-header {
    background: linear-gradient(90deg, #0d69c5, #4da3f9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    margin: -1px -1px 1.5rem -1px; /* کمی بیرون زدگی برای اتصال به باکس */
}

/* ریسپانسیو کوچک برای موبایل */

.button-conteiner{
    display: none;
}

/* ===== About Section ===== */

.about-section {
    margin: 2rem 0;
    padding: 80px 5%;
    background: #f9fafb;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 2rem auto;
}

/* ویدیو */
.about-video {
    flex: 1;
}

.about-video video {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* متن */
.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-content p {
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.about-content ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

.about-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #2563eb;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.about-btn:hover {
    background: #1e40af;
}
.footer {
    background: #1f2937; /* سرمه‌ای رسمی */
    color: #d1d5db;
    padding-top: 60px;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1 1 220px;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid #374151;
    padding-bottom: 8px;
}

.footer-col p {
    line-height: 1.9;
    color: #9ca3af;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #9ca3af;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.contact-info li {
    color: #9ca3af;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #111827;
    font-size: 13px;
    color: #9ca3af;
}

/* Responsive */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-col {
        text-align: right;
    }
}
/* ===== Responsive ===== */

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        margin-top: 30px;
    }
}
@media screen and (max-width:1025px) {
    
    header{
        a{
            img{
                display: none;
            }
        }
    }
    .hero-section{
        min-height: 60vh;
        background-size: cover;
        background-position: center;
    }
    .product-box-container{
        width: calc(100% - 2rem) !important;
        flex-direction: column;
        .product-box{
            width: calc(100%) !important;
        }
    }
    #HeaderResponsive{
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1rem 0;
        .experties{
            margin: 0;
            width: calc(50% - 2rem);
        }
        .experties:nth-child(1){
            padding-left: 1rem;
        }
        .experties:nth-child(2){
            border-left: none;
        }
        .contact{
            width: calc(100% - 2rem);
            margin: 0 auto;
        }
    }
    .icons-container{
        display: none !important;
    }
    .button-conteiner{
        display: flex;
        justify-content: center;
        gap: 1rem ;
        width: 100%;
        button{
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #000 !important;
            width: calc(15% - 2rem);
            height: 70px;
            margin-bottom: -1.5rem;
            padding: 10px 5px ;
            border-radius: 12px;

            svg{
                width: 105px;
                aspect-ratio: 1;
                fill: #000 !important;
            }
        }
        button.active , button:hover{
            background-color: rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(5px);
            padding: 5px 10px;
            border-radius: 12px;
            color: #020202 !important;
            svg{
                fill: #020202 !important;
            }
        }
    }
    .product-info-box , .product-box , .serial-search-box{
        width: calc(100% - 2rem);
        margin: 1rem auto;
    }
    .search-box{
        flex-wrap: wrap;
        flex-direction: column;
        gap: 1rem !important;
        .left{
            justify-content: center;
            flex-wrap: wrap;
            
        }
    }
    .serial-search-box{
        gap: .5rem !important;
        flex-direction: column;
        input{
            width: 90%;
        }
    }
}
