/* normalization */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}
body{
    color: #555555;
}
/* nav */
header{
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(assets/hero-min.jpg) center/cover fixed;
    height: 100vh;
}
header *{
    color: #fff;
}
nav{
    display: flex;
    justify-content: space-between;
    max-width: 1160px;
    margin: 0 auto;
}
nav ul{
    display: flex;
    list-style: none;
    align-items: center;
}
nav a{
    text-decoration: none;
    font-size: 20px;
    padding: 10px 0;
    margin: 20px;
    border-bottom: 2px solid transparent;
}
nav a:hover{
    transition: border 0.5s;
    border-bottom: 2px solid #e67e22;
}
nav img{
    height: 100px;
    margin: 20px 0 0 15px;  
}
.hamburger{
    background: none;
    border: none;
    pointer-events: none;
    margin: 40px 30px auto;
    display: none;
    font-size: 30px;
}
/* intro section */
.intro{
    font-size: xx-large;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    max-width: 1160px;
    padding: 0 20px;
}
button{
    padding: 10px 20px;
    margin: 10px 0 0;
    border-radius: 200px;
    font-size: 20px;
    cursor: pointer;
}
.btn-orange{
    border: none;
    background: #e67e22;
    color: #fff;
}
.btn-orange:hover{
    transition: all 0.2s;
    background-color: #cf6d17;
}
.btn-outline-orange{
    border: 2px solid #e67e22;
    background: transparent;
    color: #e67e22;
}
.btn-outline-orange:hover{
    transition: all 0.2s;
    background-color: #e67e22;
    color: #fff;
}
/* food delivery section */
main nav{
    max-width: 100%;
    justify-content: space-around;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0px;
    margin-top: -50px;
    display: none;
    z-index: 1;
}
main nav img{
    margin: 0;
    height: 60px;
}
main nav ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
main nav a{
    color: #555555;
}
main nav .hamburger{
    margin-top: 10px;
}
h1:not(.intro h1){
    font-size: 2.5rem;
    margin: 80px 0 15px;
    text-align: center;
    font-weight: lighter;
}
hr{
    display: inline-block;
    border: none;
    border-top: 3px solid #e67e22;
    width: 8rem;
    margin: 0 calc(50% - 4rem);
}
#food-delivery>p{
    font-size: 1.3rem;
    margin: 20px auto;
    max-width:65ch;
}
#features{
    display: flex;
    justify-content: space-around;
    margin: 80px 40px;
    gap: 20px;
    transition: opacity 0.5s;
    opacity: 0;
}
.feature h2{
    font-weight: normal;
}
#features p{
    font-size: 1.2rem;
    max-width: max-content;
}
#features i{
    font-size: 3rem;
    color: #e67e22;
}
#gallery{
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows:repeat(2,1fr);
}
#gallery figure{
    background-color: black;
    transition: all 0.5s;
    overflow: hidden;
}
#gallery figure:hover{
    background-color: transparent;
}
#gallery img{
    width: 25vw;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.5s;
    transform: scale(1.1);
}
#gallery img:hover{
    opacity: 1;
    transform: scale(1);
}
/* how it works */
#how-it-works{
    background-color: #f4f4f4;
    padding: 80px 0;
}
#how-it-works h1{
    margin-top: 0;
}
.center{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 40px auto;
    max-width: 1000px;
}
#how-it-works img{
    width: 40%;
    max-width: 15em;
}
#iphone{
    transform: translateY(100%);
    opacity: 0;
    animation: fade-in-up 1s forwards;
    animation-play-state: paused;
}
.step{
    padding: 13px 20px;
    margin: 10px 0;
    font-size: larger;
    font-weight: bold;
    color: #e67e22;
    border-radius: 100%;
    border: #e67e22 solid 2px;
}
#how-it-works ol{
    list-style: none;
    margin-bottom: 40px;
}
#how-it-works li{
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    max-width: 40ch;
}
.download-buttons img{
    margin: 0 10px;
}
/*cities*/
#cities{
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.5s;
}
.city img{
    width: 100%;
    object-fit: cover;
}
.city h2{
    font-size: 1.35rem;
    margin: 10px 0;
    font-weight: lighter;
}
.city p{
    margin: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.city svg,.city a{
    color: #e67e22;
}
.city a:hover{
    color: #555555;
}
#reviews{
    background:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(assets/back-customers-min.jpg) center/cover fixed;
    color: #fff;
    padding: 2px 0 80px;
}
.reviews{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-style: italic;
    font-size: larger;
    line-height: 1.3;
}
.review{
    position: relative;
}
.review p::before{
    content: "\201C";
    font-size: 6rem;
    position: absolute;
    top: -50px;
    left: -25px;
}
.review p::after{
    content: "\201D";
    font-size: 6rem;
    position: absolute;
    bottom: -20px;
}
.user{
    margin-top: 20px;
    display: flex;
    align-items: center;
}
.user img{
    border-radius: 100%;
    width: 50px;
    margin-right: 10px;
}
/*pricing*/
#sign-up{
    background-color: #f4f4f4;
    padding: 2px 0;
}
.prices{
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.price{
    background-color: #fcfcfc;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.price:first-of-type{
    animation: expand 1s forwards;
    animation-play-state: paused;
}
.price *{
    padding: 10px;
}
.price h3{
    font-size: x-large;
    font-weight: normal;

}
.price h2{
    font-size: xx-large;
    font-weight: lighter;
    color: #e67e22;
}
.price h4{
    font-size: large;
    font-weight: normal;
}
.price ul{
    list-style: none;
    margin: 5px 0;
    border-top: #e8e8e8 solid 1px;
    border-bottom: #e8e8e8 solid 1px;
    background-color: #fff;
}
.price li{
    font-size: large;
    padding: 0;
}
.price button{
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
}
.price i{
    color: #e67e22;
}
/*form*/
#form{
    position: relative;
}
#sign-up iframe{
    width: 100%;
    height: 400px;
    border: none;
}
#sign-up .contact{
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: larger;
}
#sign-up .contact h1{
    font-size: xx-large;
    margin: 0;
}
#sign-up form input,#sign-up form select,#sign-up form textarea{
    font-size: large;
}
form{
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}
form label{
    font-size: large;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
form button{
    display: block;
    margin: 0 auto 10px;
}
/*footer*/
footer{
    background-color: #333333;
}
.footer-content{
    max-width: 1000px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}
footer a{
    color: #555555;
    font-size: larger;
    transition: all 0.5s;
}
footer a:hover{
    color: #fff;
}
.fa-facebook-f:hover{
    color: #3b5998;
}
.fa-twitter:hover{
    color: #00aced;
}
.fa-instagram:hover{
    color: #e1306c;
}
.fa-youtube:hover{
    color: #c4302b;
}
.footer-links{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom:10px;
}
.footer-social{
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
footer p{
    display: block;
    text-align: center;
    padding: 40px;
}
@media screen and (min-width: 1200px){
    nav img{
        margin-left: 0;
    }
    .intro{
        padding: 0;
    }
    
}
@media screen and (max-width: 820px){
    nav ul{
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        transform-origin: top;
        animation: slide-up 0.2s ease-in-out forwards;
        animation-play-state: paused;
    }
    .hamburger{
        display: block;
        pointer-events: all;
        cursor: pointer;
    }
    .hamburger .hide-icon{
        display: none;
    }
    .intro{
        font-size: x-large;
    }
    nav a:hover{
        border-bottom: none;
    }
    main nav{
        justify-content: space-between;
    }
    main nav ul{
        margin: 1rem 0 0.5rem;
        display: none;
        align-items: flex-start;
    }
    h1:not(.intro h1){
        font-size: 1.8rem;
    }
    hr{
        width: 6rem;
        margin: 0 calc(50% - 3rem);
    }
    #food-delivery>p{
        font-size: 1.1rem;
        margin: 0 20px;
        max-width: 100%;
    }
    #features{
        flex-direction: column;
        margin: 0 20px;
    }
    #features p{
        font-size: 1.1rem;
    }
    .center{
        flex-direction: column;
    }
    .download-buttons{
        width: 100%;
        text-align: center;
    }
    #cities{
        flex-direction: column;
        gap: 20px;
        margin: 40px 40px;
        padding: 0;
    }
    .reviews{
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
        margin: 40px 40px 0;
        padding: 0;
        font-size: medium;
    }
    .review p::before{
        font-size: 4rem;
        top: -30px;
    }
    .review p::after{
        font-size: 4rem;
        bottom: 10px;
    }
    .prices{
        flex-direction: column;
        gap: 20px;
        margin: 40px 40px;
        padding: 0;
    }
    iframe{
        width: 100%;
    }
    #sign-up .contact{
        width: 100%;
        height: 100%;
        position:static;
        margin: 20px 0;
        background-color: #f4f4f4;
    }
    .footer-content{
        display: block;
    }
}
@media screen and (max-width: 580px){
    .intro{
        font-size: large;
    }
    .intro button{
        font-size: 1rem;
    }
    nav a{
        font-size: 12px;
    }
    nav img{
        height: 50px;
        margin: 50px 0 auto;
    }
    main nav img{
        height: 35px;
        margin: 20px 0 auto;
    }
    main nav a{
        font-size: 0.6rem;
    }
    .footer-links{
        font-size: 0.6rem;
        gap: 10px;
    }
}
@keyframes slide-up{
    0%{
        transform: scaleY(0);
    }
    100%{
        transform: scaleY(1);
    }
}
@keyframes slide-down{
    0%{
        transform: scaleY(1);
    }
    100%{
        transform: scaleY(0);
    }
}
@keyframes fade-in-up{
    0%{
        transform: translateY(100%);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes expand{
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.2);
    }
    100%{
        transform: scale(1);
    }
}