/* COLOR VARIABLE */

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #fdfdfc;
    --white-color: #fff;
    --night-color: #1b1b1b;
    --transition: 0.3s ease-in-out;
}

/* BASE */

html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
    /*10px*/
}

*,
*::after,
*::before {
    box-sizing: inherit;
    text-decoration: none;
}

body {
    font-size: 1.5rem;
    line-height: 1.5;
    font-family: 'Vazir', sans-serif;
}

/* COMPONENT */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    width: 20rem;
    padding: 1rem;
    border: 0.2rem solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 3rem;
    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--night-color);
}

.section__title {
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.section__line {
    display: block;
    margin: 2rem auto;
    border-radius: 3rem;
    width: 5rem;
    height: 0.3rem;
    background-color: var(--primary-color);
}


/* HEADER */

.header__wrapper {
    box-shadow: 0 0 3rem -1.8rem var(--night-color);
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
}

.navbar__logo_img {
    width: 100%;
}

.navbar__menu {
    display: flex;
    gap: 2rem;
}

.navbar__link {
    color: var(--white-color);
}

.navbar__btn {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 5rem;
    height: 5rem;
}

.navbar__line {
    position: relative;
    display: block;
    width: 3rem;
    height: 0.3rem;
    background-color: var(--white-color);
    border-radius: 3rem;
    transition: var(--transition);
}

.navbar__line::after,
.navbar__line::before {
    content: '';
    position: absolute;
    display: block;
    width: 3rem;
    height: 0.3rem;
    background-color: var(--white-color);
    border-radius: 3rem;
    transition: var(--transition);
}

.navbar__line::after {
    top: 0.7rem;
}

.navbar__line::before {
    bottom: 0.7rem;
}

.navbar__btn--open .navbar__line {
    background-color: transparent;
}

.navbar__btn--open .navbar__line::after {
    transform: translateY(-0.7rem) rotate(45deg);
}

.navbar__btn--open .navbar__line::before {
    transform: translateY(0.7rem) rotate(-45deg);
}

/* HEADER HERO */

.header__hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 10rem;
}

.header__hero_image {
    flex-basis: 50%;
    position: relative;
}

.header__hero_image::before {
    content: '';
    position: absolute;
    height: 40rem;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 3rem;
    background-color: var(--primary-color);
    z-index: -1;
}

.header__hero_img {
    width: 100%;
    animation: heroMove 5s linear infinite;
}

.header__hero_content {
    flex-basis: 50%;
    text-align: right;
}

.header__hero_title {
    font-size: 5rem;
    font-weight: bold;
}

.header__hero_caption {
    max-width: 45rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    margin-left: auto;
}

.header__hero_btn {
    margin-left: auto;
}

@keyframes heroMove {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(1rem);
    }

    50% {
        transform: translateY(2rem);
    }

    100% {
        transform: translateY(0);
    }
}

/* SERVICES */

#services {
    margin-top: 20rem;
}

.services {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.service {
    flex-grow: 1;
    width: 25rem;
    padding: 2rem;
    text-align: center;
    border: 0.2rem solid var(--primary-color);
    border-radius: 3rem;
}

.service__img {
    width: 10rem;
}

.service__title {
    color: var(--night-color);
}

/* SERVICES */

#about {
    margin-top: 20rem;
}

.about {
    display: flex;
    align-items: center;
}

.about__image {
    flex-basis: 50%;
}

.about__img {
    width: 100%;
    border-radius: 3rem;
}

.about__content {
    flex-basis: 50%;
    height: 100%;
    text-align: right;
    padding: 2rem;
}

.about__title {
    font-size: 2rem;
}

.about__caption {
    margin-top: 2rem;
}

/* PRODUCTS */

#products {
    margin-top: 20rem;
}

.products {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.product {
    height: 35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 0.2rem solid var(--primary-color);
    border-radius: 3rem;
    padding: 3rem;
    transition: var(--transition);
}

.product:hover {
    transform: translateY(-1rem);
    box-shadow: 0 0 1rem var(--night-color);
}

.product__image {
    width: 30rem;
}

.product__img {
    width: 100%;
}

.product__content {
    text-align: center;
}

.product__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product__caption {
    color: var(--night-color);
}

/* CONTACT */

#contacts {
    margin-top: 20rem;
}

.contacts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    border-radius: 3rem;
    padding: 2rem;
}

.contact__image {
    position: relative;
    flex-basis: 33%;
    z-index: 1;
}

.contact__img {
    width: 100%;
    height: 100%;
}

.contact__image::before {
    content: '';
    position: absolute;
    height: 20rem;
    left: 0;
    right: 0;
    bottom: 2.3rem;
    background-color: var(--white-color);
    border-radius: 3rem;
    z-index: -1;
}

.contact__wrapper {
    flex-basis: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact {
    flex-grow: 1;
    padding: 2rem;
    border-radius: 3rem;
    text-align: center;
    border: 0.2rem solid var(--white-color);
    color: var(--white-color);
}

.contact__icon {
    width: 3rem;
    fill: var(--white-color);
}

.contact__title {
    margin: 1.5rem 0;
}

.contact__caption {
    color: var(--white-color);
}

/* CUSTOMERS */

#customers {
    margin-top: 20rem;
}

.customers {
    text-align: right;
}

.customers__caption {
    text-align: justify;
    direction: rtl;
}

.customer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer__title {
    margin-top: 3rem;
    font-weight: bold;
}

.customer__item {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    padding-right: 2rem;
}

.customer__item::after {
    content: '';
    position: absolute;
    display: block;
    right: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary-color);
    border-radius: 100%;

}

/* SUGGEST */

#suggest {
    margin-top: 20rem;
}

.suggest {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.suggest__image {
    position: relative;
    flex-basis: 50%;
}

.suggest__image::before {
    content: '';
    position: absolute;
    height: 40rem;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 3rem;
    background-color: var(--primary-color);
    z-index: -1;
}

.suggest__img {
    width: 100%;
    height: 100%;
    animation: heroMove 5s linear infinite;
}

.suggest__content {
    flex-basis: 50%;
    text-align: right;
}

.seggest__title {
    font-size: 2rem;
}

.suggest__caption {
    margin: 2rem 0;
}

.suggest__btn {
    margin-left: auto;
}

/* FOOTER */

#footer {
    margin-top: 20rem;
    background-color: var(--primary-color);
}   

.footer {
    padding: 2rem 0;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__image {
    width: 10rem;
}

.footer__img {
    width: 100%;
}

.footer__list {
    text-align: right;
}

.footer__title {
    color: var(--white-color);
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 0.2rem solid var(--white-color);
}

.footer__link {
    color: var(--white-color);
}

.footer__caption {
    text-align: center;
    color: var(--white-color);
    margin: 2rem 0;
}

/* OVERLAY */

.overlay {
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    transition: var(--transition);
    z-index: -1;
}

.overlay--on {
    opacity: 1;
    z-index: 999;
}

/* CONTACT STYLES */

#represent__header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contact_bg.jpg');
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.header__title {
    color: var(--white-color);
    text-align: center;
    font-size: 3rem;
    max-width: 70rem;
    margin: 0 auto;
    padding-top: 2rem;
}

/* REPRESENT */

#represents {
    margin-top: 20rem;
}

.represents {
    text-align: right;
}

.represent {
    margin: 5rem 0;
}

.represent__title {
    font-size: 2rem;
}

.represent__caption {
    font-size: 1.7rem;
    margin: 1rem 0;
}

.represent__btn {
    margin-left:  auto;
}

/* SURVEY */

#serveys {
    padding-top: 20rem;
}

.surveys {
    display: flex;
    flex-direction: row-reverse;
}

.surveys__sub {
    flex-basis: 50%;
    text-align: right;
}

.survey__sub_title {
    font-size: 2rem;
}

.survey__sub_caption {
    margin: 2rem 0;
}

.survey__sub_btn {
    margin-left: auto;
}

.survey {
    flex-basis: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
}

.survey__wrapper {
    display: flex;
    flex-direction: column;
}

.survey__form_input {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
    gap: 2rem;
}

.survey__input {
    width: 25rem;
    padding: 1rem;
    border: 0.2rem solid var(--night-color);
    outline: none;
    text-align: right;
    border-radius: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: auto;
}

.survey__form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
    gap: 1rem;
}

.form__title {
    margin-top: 2rem;
}

.checks__wrapper {
    width: 25rem;
    display: flex;
    flex-direction: row-reverse;
    gap: 1rem;
    margin-top: 2rem;
}

.survey__caption {
    font-size: 1.4rem;
}

.survey__input_exp {
    width: 100%;
}

.radio__container {
    margin: 1rem 0;
}

.survey__radio {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 1rem;
}

.radio__wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.survey__btn {
    margin-left: auto;
}

/* COMPLAIN */

#complains {
    padding-top: 20rem;
}

.complains {
    display: flex;
    flex-direction: row-reverse;
}

.complain {
    flex-basis: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
}

.survey__wrapper__exp {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.survey__exp {
    min-width: 100%;
    min-height: 20rem;
    border: 0.2rem solid var(--night-color);
    padding: 1rem;
    border-radius: 1rem;
    text-align: right;
    font-family: inherit;
}

#warranty {
    margin-top: 10rem;
}

.warranty {
    text-align: justify;
    direction: rtl;
}

.warranty__caption {
    margin: 2rem 0;
}
