@import "menumobile.scss";

@mixin font($font-style, $font-weight, $font-size, $line-height) {
    font-style: $font-style;
    font-weight: $font-weight;
    font-size: $font-size;
    line-height: $line-height;
}

body {
    main {
        max-width: 90rem;
        margin: 0 auto;

        header {
            margin: 2.125rem 2.5rem;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;

            .firstContent {
                .logo {
                    max-width: 5.2188rem;
                    width: 100%;
                    height: 1.6612rem;
                    position: absolute;
                    top: 0;
                    left: 0;
                }

                .dropdown {
                    position: absolute;
                    top: 1.25rem;
                    left: calc(5.25rem + 3.875rem);
                    align-items: center;

                    .list {
                        display: none;
                        padding: 1.5rem;
                        width: 9.5625rem;
                        height: 10rem;
                        position: absolute;
                        top: 2rem;
                        right: 0;
                        border-radius: 0.625rem;

                        .reminders,
                        .calendar,
                        .company {
                            width: 100%;
                            margin-top: 1.0625rem;
                        }

                        a {
                            text-decoration: none;
                            @include font(normal, 500, 0.875rem, 1rem);
                        }
                    }
                }

                .dropdown2 {
                    position: absolute;
                    top: 1.25rem;
                    left: calc(14.875rem + 2.5rem);
                    align-items: center;

                    .list2 {
                        display: none;
                        padding: 1.25rem 1.875rem 1.25rem 1.25rem;
                        position: absolute;
                        left: 0rem;
                        top: 2rem;
                        width: 7.25rem;
                        height: 8rem;
                        border-radius: 0.625rem;

                        .OurTeam,
                        .Blog {
                            margin-top: 0.625rem
                        }

                        a {
                            text-decoration: none;
                            @include font(normal, 500, 0.875rem, 1rem);
                        }
                    }
                }

                .dropdown button,
                .dropdown2 button {
                    @include font(normal, 500, 0.875rem, 1rem);
                    background: transparent;
                    gap: 0.5rem;
                    border: none;
                    outline: none;
                }

                .carrer {
                    position: absolute;
                    top: 1rem;
                    left: calc(17.375rem + 8.75rem);
                }

                .carrer a,
                .About a {
                    text-decoration: none !important;
                    @include font(normal, 500, 0.875rem, 1rem);
                }

                .About {
                    position: absolute;
                    left: 32.5rem;
                    top: 1rem;
                }
            }

            .secondContent {
                margin: 0.625rem;
                display: flex;
                align-items: center;
                gap: 2.5rem;

                #button {
                    background-color: transparent;
                    gap: 0.625rem;
                    align-items: center;
                    display: flex;
                    width: 8.75rem;
                    height: 2.5rem;
                    border: none;
                    outline: none;

                    #icon {
                        width: 1.875rem;
                    }
                }

                .login {
                    @include font(normal, 500, 0.875rem, 1rem);
                }

                .login,
                .register {
                    text-decoration: none;
                }

                .register {
                    width: 6.5rem;
                    padding: 0.8125rem;
                    text-align: center;
                    height: 2.625rem;
                    @include font(normal, 500, 0.875rem, 1rem);
                }
            }
        }
    }

    .mainContent {
        padding: 4.375rem 0 1.25rem 0 !important;
        gap: 5rem;
        width: 100%;
        flex-direction: row !important;

        .text {
            .content {
                position: relative;
                max-width: 32.5rem;
                width: 100% !important;
                height: 25rem;

                .center {
                    gap: 2.375rem;
                    align-items: flex-start;

                    h1 {
                        @include font(normal, 700, 5rem, 5rem);
                        letter-spacing: -0.0694rem;
                    }

                    p {
                        @include font(normal, 500, 1.125rem, 1.75rem);
                    }

                    .btn {
                        width: 10.1875rem;
                        height: 3.5rem;
                        background-color: transparent;
                        border-radius: 0.9375rem;
                        @include font(normal, 700, 1.125rem, 1.75rem);
                        padding: 0.9375rem;
                    }
                }
            }

            .imgs {
                position: absolute;
                bottom: -7.5rem;
                display: flex;
                gap: 12%;
            }
        }

        .img {
            .heroImage {
                height: 40rem;
                width: 30rem;
            }
        }
    }

    p {
        gap: 0.625rem;
    }
}

@media (max-width: 75rem) {
    body {
        main {
            header {
                .firstContent {
                    .dropdown {
                        left: calc(5.25rem + 2rem);
                    }

                    .dropdown2 {
                        left: calc(14.25rem);
                    }

                    .carrer {
                        left: calc(17.375rem + 4.375rem);
                    }

                    .About {
                        left: 27.5rem;
                    }
                }

                .secondContent {
                    gap: 1.25rem;
                }
            }

            .mainContent {
                padding: 0rem 0 1.25rem 0 !important;
                gap: 5rem;
                width: 100%;

                .text {
                    .content {
                        position: relative;
                        width: 32.5rem;
                        height: 25rem;

                        .center {
                            gap: 1.125rem;
                        }
                    }
                }

                .imgs {
                    margin-top: 1.25rem;
                    position: relative !important;
                    bottom: 0rem !important;
                }
            }
        }
    }
}

@media (max-width: 62rem) {
    .container {
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-fluid {
        margin: 0rem !important;
    }

    body {
        padding: 0 !important;

        main {
            padding: 0rem !important;
            width: 100% !important;

            header {
                position: unset !important;
                display: flex;
                justify-content: space-between;
                margin: 0rem !important;
                padding: 2rem 1.25rem !important;
            }

            .mainContent {
                padding: 4.375rem 0 1.25rem 0 !important;
                gap: 5rem;
                width: 100%;
                flex-direction: column-reverse !important;
                align-items: center;
                .text {
                    .content {
                        height: auto !important;

                        .center {
                            width: 100% !important;
                            gap: 1.75rem;
                            align-items: center !important;
                            padding: 0 1.25rem;

                            h1 {
                                @include font(normal, 700, 2.25rem, 2.625rem);
                                text-align: center;
                            }

                            p {
                                @include font(normal, 500, 1rem, 1.625rem);
                                text-align: center;
                            }

                            .btn {
                                max-width: 10.1875rem;
                                width: 100%;
                            }
                        }
                    }

                    .imgs {
                        position: relative !important;
                        bottom: 0rem !important;
                        display: flex;
                        align-items: center;
                        justify-content: space-evenly;
                        flex-wrap: wrap;
                        margin: 1.25rem 0;
                    }
                }

                .img {
                    .heroImage {
                        height: auto;
                        width: 100%;
                        max-width: 38.75rem;
                    }
                }
            }
        }
    }
}

// @media (max-width: 31.25rem)