@import url(all.min.css);
@import url(colors.css);

@font-face {
    font-family: Estedad;
    src: url(../fonts/Estedad-Medium.ttf);
}
@font-face {
    font-family: Vazirmatn;
    src: url(../fonts/Vazirmatn-FD-Medium.ttf);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: var(--primary-bg) !important;
}

h1, h2, h3, h4, h5, h6, p{
    direction: rtl;
}

a{
    text-decoration: none !important;
    color: var(--primary-color) !important;
}

ul{
    list-style: none;
}

/* --------------Header------------ */
header.hero{
    background-image: url(../img/optimized/our-services-header.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 90vh;
    position: relative;
}
.hero-content{
    position: absolute;
    top: 250px;
    left: 10%;
    font-family: Estedad;
    direction: rtl;
    text-align: center;
}
.hero-content p{
    color: var(--text-primary);
    max-width: 500px;
}
.hero-content h2{
    color: var(--title-primary);
    font-weight: bold;
}
@media screen and (min-width:2200px) {
    header.hero{
        background-size: 2200px;
    }
    .hero-content{
        left: 20%;
    }
}
.hero-scroll{
    margin-top: 150px;
    font-family: Vazirmatn;
}
.hero-scroll i{
    vertical-align: middle;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-12px); /* میزان بالا رفتن */
        opacity: 0.5;
    }
    60% {
        transform: translateY(-7px);  /* میزان بازگشت کوتاه */
    }
}

/* ----------Our Services---------- */
.services-container{
    margin-top: 50px;
}
.services-title{
    text-align: center;
    font-weight: bold;
}
.services-title p{
    color: var(--primary-button);
    font-family: Vazirmatn;
}
.services-title h3{
    color: var(--text-primary);
    font-family: Estedad;
}
.services{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    column-gap: 30px;
    row-gap: 40px;
    padding: 25px;
    padding-top: 35px;
}
.service{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    width:100%;
    max-width:none;
    min-height:420px;
    cursor: pointer;
    transition: all 0.2s ease-in;
    overflow: hidden;
}
.service img:first-child{
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.services a:first-child .service img:first-child{
    object-position: center -30px;
}
.services a:nth-child(2) .service img:first-child,
.services a:nth-child(3) .service img:first-child{
    object-position: center -30px;
}
.services a:nth-child(4) .service img:first-child{
    object-position: center -100px;
}
.services a:nth-child(5) .service img:first-child{
    object-position: center -80px;
}
.services a:nth-child(6) .service img:first-child{
    object-position: center -290px;
}
.services a:nth-child(7) .service img:first-child{
    object-position: center -50px;
}
.services a:nth-child(8) .service img:first-child{
    object-position: center -100px;
}
.service img:nth-child(2){
    position: absolute;
    top: 175px;
    left: 35px;
    width: 50px;
    border-radius: 55px;
    outline: 1px solid var(--border-color);
    outline-offset: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.service h5{
    margin: 0;
    margin-top: 20px;
    color: var(--text-primary);
    font-family: Estedad;
    font-size: 20px;
    font-weight: bold;
    text-align: right;
}
.service p{
    font-family: Vazirmatn;
    margin: 25px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    line-height: 25px;
}
.service p.more-info{
    position: absolute;
    bottom: 0;
    left: 0;
}
.service p i{
    vertical-align: middle;
}
.service p:last-child i{
    animation: bounce2 3s infinite;
}
.service:hover{
    transform: scale(1.06);
    background-color: var(--secondary-bg);
}
.service:hover p:last-child{
    background-color: var(--primary-button);
    padding: 5px 10px;
    border-radius: 25px;
    color: var(--card-bg);
}
@keyframes bounce2 {
    0%, 20%, 40%, 80%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translatex(-5px);
        opacity: 0.5;
    }
}


@media screen and (max-width:1200px){
    .services{
        grid-template-columns: repeat(3,1fr);
        gap: 25px;
    }
    .service{
        max-width: none;
        width: 100%;
    }
}
@media screen and (max-width:992px){
    .services{
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
        padding: 20px;
    }
    .service{
        height: auto;
        min-height: 420px;
    }
    .service h5{
        font-size: 18px;
    }
    .service p{
        margin: 18px;
        font-size: 14px;
    }
    .service img:nth-child(2){
        width: 46px;
        left: 25px;
    }
}
@media screen and (max-width:768px){
    .services-container{
        margin-top: 35px;
    }
    .services-title h3{
        font-size: 28px;
    }
    .services-title p{
        font-size: 15px;
    }
    .services{
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 15px;
    }
    .service{
        max-width: 420px;
        width: 100%;
        margin: auto;
        height: auto;
    }
    .service img:first-child{
        height: 220px;
    }
    .service img:nth-child(2){
        width: 50px;
        top: 190px;
        left: 25px;
    }
    .service h5{
        font-size: 20px;
    }
    .service p{
        font-size: 15px;
        line-height: 1.9;
    }
    .service p.more-info{
        position: static;
        margin-top: auto;
        margin-bottom: 20px;
    }
}
@media screen and (max-width:480px){
    .services{
        padding: 10px;
    }
    .services-title h3{
        font-size: 24px;
    }
    .services-title p{
        font-size: 14px;
    }
    .service{
        border-radius: 18px;
    }
    .service img:first-child{
        height: 190px;
    }
    .service img:nth-child(2){
        width: 45px;
        top: 165px;
        left: 20px;
    }
    .service h5{
        font-size: 18px;
    }
    .service p{
        font-size: 14px;
        margin: 15px;
    }
}


/* ----------Gift Moshavere----------- */
.free-consulting{
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 40px;
    background: var(--secondary-bg) !important;
    margin: 30px 50px 0 50px;
    padding: 30px 50px;
    direction: rtl;
    border-radius: 20px;
}
.free-consulting-form{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}
.free-consulting-form h3{
    font-family: Estedad;
    color: var(--primary-color);
    font-weight: bold;
}
.free-consulting-form p{
    font-family: Vazirmatn;
    color: var(--text-primary);
}
.my-input-group{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
.my-input-group div{
    position: relative;
}
.my-input-group div input{
    border: none;
    outline: none;
    direction: rtl;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: Vazirmatn;
    padding: 7px 10px;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    margin: 15px;
}
.my-input-group div label{
    position: absolute;
    top: 21px;
    right: 25px;
    font-family: Vazirmatn;
    color: transparent;
    transition: all 0.2s ease-in-out;
}
.my-input-group div input:focus-within{
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.my-input-group div:focus-within label{
    transform: translateY(-12px);
    color: var(--text-secondary) !important;
    font-size: 10px;
}
.my-textarea-group{
    position: relative;
}
.my-textarea-group textarea{
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    outline: none;
    border-radius: 10px;
    width: 100%;
    height: 75px;
    direction: rtl;
    font-family: vazirmatn;
    padding: 7px 10px;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    margin: 15px 0;
    resize: none;
}
.my-textarea-group .textarea-label{
    position: absolute;
    top: 21px;
    right: 25px;
    font-family: Vazirmatn;
    color: transparent;
    transition: all 0.2s ease-in-out;
}
.my-textarea-group textarea:focus-within{
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.my-textarea-group:focus-within label{
    transform: translateY(-12px);
    color: var(--text-secondary) !important;
    font-size: 10px;
}
.free-consulting-form button{
    width: 100%;
    margin-top: 15px;
    border: none;
    outline: none;
    text-align: center;
    font-family: Vazirmatn;
    padding: 12px 0;
    border-radius: 10px;
    background: var(--primary-button-gradient);
    color: var(--card-bg);
    transition: all 0.2s ease-in;
}
.free-consulting-form button i{
    vertical-align: middle;
}
.free-consulting-form button:hover{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px var(--card-bg);
}



/* --------Gift section--------- */
.moshavere-free{
    background-color: var(--secondary-bg);
    border-radius: 15px;
    padding: 5px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    direction: rtl;
}
.moshavere-free{
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
}
.moshavere-free div:first-child img{
    width: 100px;
    animation: gift-animation 2s infinite;
}
@keyframes gift-animation {
    0%, 40%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-12px);
        transform: scale(1.05);
    }
    60% {
        transform: translateY(-7px);
        transform: scale(1.12);

    }
}

.moshavere-free div:nth-child(2) h4{
    color: var(--title-primary);
    font-family: Estedad;
    font-weight: bold;
}
.moshavere-free div:nth-child(2) p{
    color: var(--text-primary);
    font-family: Vazirmatn;
}
.moshavere-free div:nth-child(3){
    background-color: var(--primary-button);
    padding: 10px 15px;
    font-family: Vazirmatn;
    color: var(--card-bg);
    border-radius: 50px;
    transition: all 0.2s ease-in-out;
}
.moshavere-free div:nth-child(3){
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.moshavere-free div:nth-child(3) a{
    color: var(--card-bg) !important;
    transition: all 0.3s ease-in-out;
}
.moshavere-free div:nth-child(3):hover{
    background-color: var(--card-bg);
    outline: 1px solid var(--primary-button);
}
.moshavere-free div:nth-child(3):hover a{
    color: var(--primary-button) !important;
}
.moshavere-free div:nth-child(3) a i{
    vertical-align: middle;
    animation: phone-animation 2s infinite;
}
@keyframes phone-animation {
    0%, 40%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: rotateZ(15deg);
    }
    60% {
        transform: rotateZ(-15deg);
    }
    70% {
        transform: rotateZ(15deg);
    }
    80% {
        transform: rotateZ(-15deg);
    }
}


/* ===========================
   Tablet (<=768px)
=========================== */
@media screen and (max-width:768px){
    .moshavere-free{
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
        border-radius: 20px;
    }
    .moshavere-free div:first-child img{
        width: 80px;
    }
    .moshavere-free div:nth-child(2) h4{
        font-size: 22px;
        margin-bottom: 10px;
    }
    .moshavere-free div:nth-child(2) p{
        font-size: 15px;
        line-height: 1.9;
        margin: 0;
    }
    .moshavere-free div:nth-child(3){
        width: 100%;
        max-width: 320px;
        padding: 14px;
        border-radius: 50px;
    }
    .moshavere-free div:nth-child(3) a{
        display: block;
        font-size: 16px;
    }
}

/* ===========================
   Small Phones (<=480px)
=========================== */
@media screen and (max-width:480px){
    .moshavere-free{
        padding: 20px 15px;
        gap: 15px;
    }
    .moshavere-free div:first-child img{
        width: 65px;
    }
    .moshavere-free div:nth-child(2) h4{
        font-size: 19px;
    }
    .moshavere-free div:nth-child(2) p{
        font-size: 14px;
        line-height: 1.8;
    }
    .moshavere-free div:nth-child(3){
        width: 100%;
        padding: 12px;
    }
    .moshavere-free div:nth-child(3) a{
        font-size: 14px;
    }
}