/*VARIABLES*/
:root {
    --army-green: #6C712C;
    --army-green-light: #91905E;
    --beige: #FAF4E9;
    --rust: #735E1A;
    --mud: #59543A;
}

/*RESET*/
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	text-decoration: none;
	outline: inherit;
    -webkit-transition: all .2s ease;
            transition: all .2s ease;
}
*:hover {
    -webkit-transition: all .2s ease;
            transition: all .2s ease;
}

::selection {
    color: var(--beige);
    background: var(--army-green);
}
::-moz-selection {
    color: var(--beige);
    background: var(--army-green);
}

::-webkit-scrollbar {
    width:10px;
} 
::-webkit-scrollbar-track {
    background: var(--army-green-light);
} 
::-webkit-scrollbar-thumb {
	background: var(--army-green);
}

body {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--beige);
    color: var(--mud);
}


/*FONTS*/
p,
li {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    line-height: 150%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Arvo', serif;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
}
h1 {
    font-size: 60px;
}
h2 {
    font-size: 48px;
}
h3 {
    font-size: 36px;
}
h4 {
    font-size: 24px;
}
h5 {
    font-size: 20px;
}
h6 {
    font-size: 16px;
    font-weight: 400;
}


/*CONTAINERS*/
section,
.section {
    width: 95%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: stretch;

    .col {
        width: auto;
    }
}

.top {
    width: 100%;
    text-align: right;
    padding: 10px 0;    
}

header {
    background: var(--mud);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10;

    nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: stretch;

        img {
            background: var(--army-green);
            padding: 5px 40px;
        }

        ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: flex-end;
            align-content: stretch;

            li {
                font-family: 'Arvo', serif;
                font-size: 18px;
                color: var(--beige);
                margin: 0;
                padding: 10px 20px;
                text-transform: uppercase;
            }
            li:hover {
                background: var(--army-green);
            }
        }
    }
}

#logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    pointer-events: none;
    z-index: 20;

    img {
        width: 135px;
    }
}

main {
}

.container {
    padding: 100px 0;
    border-bottom: 1px solid var(--rust);
}

#book {    
    text-align: center;

    .form {
        margin-top: 50px;
        text-align: left;
        background: url(../images/major-move-sergeant.png) no-repeat center left;
        background-size: 500px auto;
        padding-left: 550px;
    }
}

#advantages {
    .row {
        margin-top: 20px;
        text-align: center;

        .col {
            width: calc(50% - 20px);

            img {
                width: 100%;
                background: white;
                border-radius: 5px;
                border: 1px solid var(--rust);
            }
        }
    }
}

#about {
    background: rgba(145,144,90,0.1);

    section {
        background: url(../images/major-move-sergeant-head.png) no-repeat top left;
        background-size: 200px auto;
        padding-left: 250px;
    }
}

#why {
    section {
        background: url(../images/major-move-sergeant-truck.svg) no-repeat center right;
        background-size: 500px auto;
        padding-right: 550px;

        .row {
            .col {
                background: url(../images/medal-icon-green.svg) no-repeat top left;
                background-size: 30px auto;
                width: calc(33.33% - 10px);
                min-height: 40px;
                padding: 0 10px 0 35px;
                margin: 10px 0;

                p {
                    font-family: 'Arvo', serif;
                    text-transform: uppercase;
                    font-size: 16px;
                }
            }
        }
    }
}

#reviews {
    background: url(../images/city-silhouette.svg) no-repeat center bottom;
    background-size: 100% auto;
    padding-bottom: 200px;
    border-bottom: none;

    section {
        text-align: center;
    }

    .item {
        width: 95%;
        background: var(--beige);
        padding: 20px;
        border-radius: 5px;
        border: 1px solid var(--army-green-light);
        margin-top: 20px;

        .star-5 {
            background: url(../images/star-icon.svg) repeat-x;
            background: auto 20px;
            height: 20px;
            width: 100px;
        }
    }
}

footer {
    background: var(--army-green);

    .footer-top {
        background: var(--mud);
        padding: 50px 0;
        color: var(--beige);
        text-align: center;

        .row {
            .col {
                width: calc(33.33% - 20px);
            }

            .icons {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-content: center;
                gap: 10px;
                margin-top: 10px;
            }
        }
    }

    .footer-bottom {
        padding: 50px 0;
        color: var(--beige);
        text-align: center;

        img {
            height: 30px;
            margin-top: 20px;
        }
    }
}


/*OBJECTS*/
img {
    max-width: 100%;
}


/*LINKS*/
a:link,
a:hover,
a:visited,
a:active {
    color: inherit;
	text-decoration: none;
}

.btn {
    display: inline-block;
    font-family: 'Arvo', serif;
    font-size: 18px;
    color: var(--beige) !important;
    margin: 0;
    padding: 15px 25px;
    text-transform: uppercase;
    background: var(--army-green);
    border-radius: 5px;
}
.btn:hover,
.btn:focus {
    background: var(--mud);
}

.button {
    background: url(../images/phone-icon-white.svg) no-repeat center 10px var(--army-green);
    background-size: 50px 50px;
    border: 1px solid var(--beige);
    padding: 60px 20px 20px;
    font-family: 'Arvo', serif;
    font-size: 16px;
    color: var(--beige) !important;
    text-align: center;
    border-radius: 5px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;    
}
.button:hover,
.button:focus {
    background: url(../images/phone-icon-white.svg) no-repeat center 10px var(--mud);
}


/*MODIFIERS*/
.left {
    text-align: left;
}
.right {
	text-align: right;
}
.center {
	text-align: center;
}
.justify {
	text-align: justify;
}

.mw-1250 {
    max-width: 1250px;
}

.green {
    color: var(--army-green);    
}
.mud {
    color: var(--mud);
}


/*MODAL*/
.modal {
    display: none;
    position: fixed;
    z-index: 900;
    padding: 20PX;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: white;
    -webkit-overflow-scrolling: touch;
}
.modal.display {
    display: block;
}
.modal-content {
    margin: auto;
    padding: 50px;
    width: 90%;
    max-width: 500px;
    background: white;
    height: auto;
    animation-name: animatetop;
    animation-duration: 0.4s;
    position: relative;
    text-align: center;
}
.close {    
    position: absolute;
    top: 10px;
    right: 30px;
    font-family: '',;
    color: black;
    font-size: 48px;
}
.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}


/*ANIMATIONS*/
@keyframes animatetop {
    from {
        bottom: -200px;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    #advantages,
    #why,
    #reviews,
    .footer-top,
    .footer-bottom {
        transform: translateY(20%);
        opacity: 0;
        animation: fade-up linear forwards;
        animation-timeline: view();
        animation-range: entry;
    }
    #about {
        opacity: 0;
        animation: fade-in linear forwards;
        animation-timeline: view();
        animation-range: entry;
    }
    @keyframes fade-up {
        to { 
            transform: translateY(0);
            opacity: 1; 
        }
    }
    @keyframes fade-in {
        to { 
            opacity: 1; 
        }
    }
}

@media (max-width: 1250px) {
    #book {
        .form {
            background: url(../images/major-move-sergeant.png) no-repeat top left;
            background-size: 300px auto;
            padding-left: 350px;
        }
    }

    #why {
        section {
            background: url(../images/major-move-sergeant-truck.svg) no-repeat bottom right;
            background-size: 300px auto;
            padding-right: 350px;
        }
    }
}

@media (max-width: 960px) {
    p,
    li {
        font-size: 18px;
    }
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 36px;
    }
    h3 {
        font-size: 24px;
    }
    h4 {
        font-size: 20px;
    }
    h5 {
        font-size: 18px;
    }

    header {
        nav {
            ul {
                li {
                    padding: 10px 10px;
                    font-size: 16px;
                }
            }
        }
    }

    #why {
        section {
            background-size: 200px auto;
            padding-right: 250px;
        }
    }
}

@media (max-width: 800px) {
    header {
        nav {
            img {
                padding: 0 22px;
            }

            ul {
                li {
                    display: none;
                }
                li:first-child {
                    display: inline-block;
                }
            }
        }
    }

    #logo {
        img {
            width: 100px;
        }
    }

    .container {
        padding: 50px 0;
    }

    #book {
        .form {
            background-size: 200px auto;
            padding-left: 250px;
        }
    }

    #why {
        section {
            background: url(../images/major-move-sergeant-truck.svg) no-repeat bottom right;
            background-size: 200px auto;
            padding: 0 0 150px 0;
        }
    }
}

@media (max-width: 650px) {
    #book {
        .form {
            background: url(../images/major-move-sergeant.png) no-repeat bottom right;
            background-size: 200px auto;
            padding: 0 0 150px 0;
            text-align: center;
        }
    }

    #advantages {
        .row {
            .col {
                width: 100%;
                margin-bottom: 20px;

                img {
                    width: 100%;
                    background: white;
                    border-radius: 5px;
                    border: 1px solid var(--rust);
                }
            }
        }
    }

    #about {
        section {
            background: url(../images/major-move-sergeant-head.png) no-repeat top left;
            background-size: 200px auto;
            padding: 220px 0 0 0;
        }
    }

    #why {
        section {
            .row {
                .col {
                    background: url(../images/medal-icon-green.svg) no-repeat top left;
                    background-size: 30px auto;
                    width: calc(50% - 10px);
                    min-height: 40px;
                    padding: 0 10px 0 35px;
                    margin: 10px 0;
                }
            }
        }
    }

    footer {
        .footer-top {
            .row {
                .col {
                    width: 100%;
                    margin-bottom: 20px;
                }
            }
        }

        .footer-bottom {
            padding-bottom: 150px;
        }
    }

    .button {
        background: var(--army-green);
        padding: 20px;
    }
}