﻿/* ===============================
   تنظیمات کلی بدنه و فونت
   =============================== */

body {
    direction: ltr;
    margin: 0;
    padding: 0;
    
}


@font-face {
    font-family: 'shabnam';
    src: url('../fonts/shabnam.eot') format('embedded-opentype');
    src: url('../fonts/shabnam.ttf') format('truetype');
    src: url('../fonts/shabnam.woff') format('woff');
    src: url('../fonts/shabnam.woff2') format('woff2');
}


a, p, h1, h2, h3,span,div,ul,li {
    font-family: Shabnam
}
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.prdgrpbtn {
    border-color: #e7c27d;
    color: #2b4f5b;
    transition: background-color 0.2s ease;
    width:6.1rem
}

    .prdgrpbtn:hover {
        background-color: #e7c27d;
        color: #fff;
        border-color: #e7c27d;
    }

    .navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* سه خط تیره‌تر روی زمینه روشن */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23333' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}



.navfirst {
    background-color: #0a716d;
    color: #b88e44 !important
}

.navSec {
    background-color: #edf0f0;
    color: #ad8c2b !important;
    font-size: 1.25rem
}

.nvcol {
    color: #ad8c2b !important;
}


.navSec li.a {
    background-color: #2C3E4F;
    font-size: 1.25rem
}

.navSec a{
    color: #141313 !important
}
    .navSec a:hover {
        color: #DEDED1 !important
    }




.carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 0;
    vertical-align: bottom;
}



/* سرویس */
.fables-headerin {
    position: relative;
    width: 100%;
    height: 40vh; /* ارتفاع نسبی، در موبایل خودکار تنظیم می‌شود */
    background-image: url('sliderbanner/service.jpg');
    background-size: cover; /* تصویر کل فضا را پوشش می‌دهد */
    background-position: center; /* تصویر از مرکز کراپ می‌شود */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}


    .fables-headerin .container {
        position: relative;
        z-index: 2;
    }

.fables-page-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* تنظیمات بهتر برای موبایل */
@media (max-width: 768px) {
    .fables-headerin {
        height: 30vh;
        background-position: center top;
    }

    .fables-page-title {
        font-size: 1.4rem;
    }
}



/* تماس */
.fables-headerin-contact {
    position: relative;
    width: 100%;
    height: 40vh; /* ارتفاع نسبی، در موبایل خودکار تنظیم می‌شود */
    background-image: url('sliderbanner/contact.jpg');
    background-size: cover; /* تصویر کل فضا را پوشش می‌دهد */
    background-position: center; /* تصویر از مرکز کراپ می‌شود */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}


    .fables-headerin-contact .container {
        position: relative;
        z-index: 2;
    }

.fables-page-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* تنظیمات بهتر برای موبایل */
@media (max-width: 768px) {
    .fables-headerin {
        height: 30vh;
        background-position: center top;
    }

    .fables-page-title {
        font-size: 1.4rem;
    }
}



/* پروزه */
.fables-headerin-Project {
    position: relative;
    width: 100%;
    height: 40vh; /* ارتفاع نسبی، در موبایل خودکار تنظیم می‌شود */
    background-image: url('sliderbanner/project.jpg');
    background-size: cover; /* تصویر کل فضا را پوشش می‌دهد */
    background-position: center; /* تصویر از مرکز کراپ می‌شود */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}


    .fables-headerin-Project .container {
        position: relative;
        z-index: 2;
    }

.fables-page-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* تنظیمات بهتر برای موبایل */
@media (max-width: 768px) {
    .fables-headerin {
        height: 30vh;
        background-position: center top;
    }

    .fables-page-title {
        font-size: 1.4rem;
    }
}



/* پروژه‌ها - استایل حرفه‌ای و مدرن */
.card-header-custom {
    background: linear-gradient(90deg, #e7c27d 0%, #f9f5ee 100%);
    color: #2b4f5b;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
}

    .card-header-custom img {
        width: 60px;
        height: auto;
        margin-left: 1rem;
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
    }

    .card-header-custom h5 {
        font-family: 'Vazirmatn', sans-serif;
        font-weight: 700;
        font-size: 1.3rem;
    }


.product-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #dfe3e4;
}

    .product-card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

/* کارت داخلی هر پروژه */
.card img {
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.03);
}

.card-body {
    padding: 1rem;
    background-color: #ffffff;
}

.Titleh1 {
    font-size:1rem;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    color: #2b4f5b;
}

.card small {
    color: #6c757d;
}

/* دکمه جزئیات پروژه */
.btn-outline-dark {
    border-color: #e7c27d;
    color: #2b4f5b;
    transition: background-color 0.2s ease;
}

    .btn-outline-dark:hover {
        background-color: #e7c27d;
        color: #fff;
        border-color: #e7c27d;
    }



/* اصلاح transition در Bootstrap 5.1 */
.carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: none !important; /* جلوگیری از حرکت ناگهانی */
}

    .carousel.carousel-fade .carousel-item.active {
        opacity: 1;
        transform: none !important;
    }

.carousel.carousel-fade .carousel-item-next.carousel-item-start,
.carousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 0;
    transform: none !important;
}
.carousel.carousel-fade .carousel-item.active img {
    transform: scale(1);
    transition: transform 2.5s ease-in-out;
}

.carousel.carousel-fade .carousel-item img {
    transform: scale(1.05);
}
