@font-face {
    font-family: "arial";
    src: url("../fonts/arial.ttf") format('ttf');
    font-weight: 400;
}

@font-face {
    font-family: "dana-regular";
    src: url("../fonts/Dana-Regular.woff") format("woff");
}

@font-face {
    font-family: "dana-thin";
    src: url("../fonts/Dana-Thin.woff") format("woff");
}

@font-face {
    font-family: "peyda-regular";
    src: url("../fonts/Peyda-Regular.woff") format("woff");

}

body {
    background: url(../images/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
}

a {
    text-decoration: none !important;
}

@media (min-width: 1200px) {
    .container {
        max-width: 800px !important;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        margin-left: auto;
        margin-right: auto;
    }
}


.desktop-title {
    direction: ltr;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
}

.desktop-title h1 {
    text-align: left;
    font-size: 41px;
    margin: 0;
    color: white;
    font-family: Arial, serif;
}


@media (max-width: 998px) {
    .desktop-title h1 {
        font-size: 36px;

    }
}

@media (max-width: 768px) {
    .desktop-title {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-title {
        display: none !important;
    }
}

.mobile-title {
    direction: ltr;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-top: 30px;
    gap: 20px;
}

.mobile-title h1 {
    text-align: left;
    font-size: 24px;
    margin: 0;
    color: white;
    font-family: Arial, serif;
}

.mobile-title p {
    text-align: left;
    font-size: 12px;
    margin: 0;
    color: white;
    font-family: Arial, serif;
}

.line {
    width: 3px;
    height: 50px;
    background-color: red;
}

.brand-card {
    cursor: pointer;
}

.desktop-cards-box {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
}

@media (min-width: 1600px) {
    .desktop-title {
        margin-top: 115px;
    }

    .desktop-cards-box {
        height: 70vh;
        align-items: center
    }
}

.logo-box {
    width: 194px;
    height: 194px;
    background-size: cover;
    transition: 0.2s;
}

/*brand 1*/
.brand1 {
    background-image: url(../images/brands/onf.svg);
}

/*.maximize .brand1, .brand1:hover {*/
/*    background-image: url(../images/brands/light-background/onf-light.svg);*/
/*}*/

/*.minimize .brand1 {*/
/*    background-image: url(../images/brands/onf.svg);*/
/*}*/


/*brand 2*/
.brand2 {
    background-image: url(../images/brands/hamchap.svg);
}

/*.maximize .brand2, .brand2:hover {*/
/*    background-image: url(../images/brands/light-background/hamchap-light.svg);*/
/*}*/

/*.minimize .brand2 {*/
/*    background-image: url(../images/brands/hamchap.svg);*/
/*}*/

/*brand 3*/
.brand3 {
    background-image: url(../images/brands/ojenili.svg);
}

/*.maximize .brand3, .brand3:hover {*/
/*    background-image: url(../images/brands/light-background/ojenili-light.svg);*/
/*}*/

/*.minimize .brand3 {*/
/*    background-image: url(../images/brands/ojenili.svg);*/
/*}*/

.card-title {
    margin-top: 23px;
    margin-right: 2px;
}

.card-title h4 {
    color: #ffffff;
    font-family: peyda-regular, serif;
}

.card-title .brand-persian-title {
    font-size: 18px;
}

.card-title .brand-english-title {
    font-size: 18px;
    margin-top: 11px;
}


.minimize {
    transform: scale(0.4) !important;
}

.maximize {
    transform: scale(1.2) !important;
}

.brand-card {
    transition: 0.4s;
}


.services-list {
    gap: 1px;
    display: grid;
}

.services-list a {
    margin: 0;
    color: white !important;
    font-family: peyda-regular, serif;
    font-size: 11px;
    transition: 0.2s;
}

.services-list a:hover {
    font-size: 13px;
}


/*.maximize .services-box {*/
/*    transition: 0.2s;*/
/*    transform: scale(1);*/
/*}*/

/*.minimize .services-box {*/
/*    transition: 0.2s;*/
/*    transform: scale(0);*/
/*}*/

/*.brand-card:not(.minimize):not(.maximize) .services-box {*/
/*    transition: 0.2s;*/
/*    transform: scale(0);*/
/*}*/

.minimize .white-line,
.white-line {
    transition: 0.2s ease;
    margin-top: 16px;
    width: 30%;
    height: 3px;
    background-color: white;
}

.maximize .white-line {
    transition: 0.2s ease;
    width: 100%;
}


.mobile-cards-box {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .desktop-cards-box {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-cards-box {
        display: none;
        !important;
    }
}

.title-box {
    display: flex;
    justify-content: space-between;
}

.title-box h4 {
    font-size: 15px;
    color: #ffffff;
    font-family: peyda-regular, serif;
}

footer {
    margin-top: 88px;
    margin-bottom: 20px;
}

.footer-box {
    margin-top: 10px;
    display: flex;
    gap: 62px;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-box {
        margin-top: 35px;
        flex-direction: column-reverse !important;
        gap: 20px;
        ;
    }

    footer {
        margin-top: 0;
    }

}

@media (min-width: 768px) {
    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
    }
}


.footer-line {
    background-color: #ffffff;
    height: 2px;
    opacity: 20%;
}

.caption {
    margin: 0;
    color: #ffffff;
    font-family: dana-regular, serif;
    font-size: 9px;
    opacity: 40%;
}

.social-media-box {
    width: auto;
    display: flex;
    gap: 15px;
}

.social-media-icon {
    gap: 10px;
}

.phone-box {
    display: flex;
    gap: 2px;
}

.call-box {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    height: 30px;
}

.phone-number {
    margin: 0;
    font-size: 13px;
    width: 100px;
    color: #999999;
    font-family: Arial, serif;
}

@media (max-width: 768px) {
    .social-media-box {
        justify-content: space-between;
        width: 100%;
    }

}

/*#card_1:hover {*/
/*    transform: scale(1.2);*/
/*}*/
/*#card_1:hover ~ div {*/
/*    transform: scale(0.7);*/
/*}*/

.services-box {
    transform: scale(0);
    transition: 0.2s;
}


.brand-card:has(~ .brand-card:hover) {
    transform: scale(0.9);
}

.brand-card:hover~.brand-card {
    transform: scale(0.9);
}

.brand-card:hover {
    transform: scale(1.2);
}

.brand-card:hover .white-line {
    width: 100%;
}

.brand-card:hover .services-box {
    transform: scale(1);
}

div#card_1:hover #service_1 {
    height: 100px;
    transition: 0.5s;
}

div#card_2:hover #service_2 {
    height: 100px;
    transition: 0.5s;
}

div#card_3:hover #service_3 {
    height: 100px;
    transition: 0.5s;
}

#service_1,
#service_2,
#service_3 {
    height: 100px;
    transition: 0.5s;

}


.brand1 {
    background-image: url(../images/brands/onf.svg);
}

#card_1:hover .brand1 {
    background-image: url(../images/brands/light-background/onf-light.svg);
}

.brand2 {
    background-image: url(../images/brands/hamchap.svg);
}

#card_2:hover .brand2 {
    background-image: url(../images/brands/light-background/hamchap-light.svg);
}

.brand3 {
    background-image: url(../images/brands/ojenili.svg);
}

#card_3:hover .brand3 {
    background-image: url(../images/brands/light-background/ojenili-light.svg);
}