@import url('https://fonts.googleapis.com/css?family=Catamaran&display=swap');

:root {
    --primary-color: #333;
    --secondary-color: #444;
    --overlay-color: rgba(0, 0, 0, 0.7);
}

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

body {
    color: var(--primary-color);
    font-family: 'Catamaran', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

.container {
    max-width: 1000px;
    width: 94vw;
    margin: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}


/* Navbar */
.navbar {
    font-size: 1.2rem;
    padding: 1rem 0.3rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 990;
    background-color: white;
}

.navbar h1 {
    color: var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
}

.navbar .nav-links {
    display: flex;
    justify-self: flex-end;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.navbar .nav-links a {
    color: var(--primary-color);
    opacity: .8;
}

.navbar .burger {
    display: none;
}

@media screen and (max-width: 562px) {
    .navbar .burger {
        display: block;
    }

    .navbar .nav-links {
        flex-direction: column;
        justify-content: start;
        background-color: var(--primary-color);
        padding: 5rem 1rem 1rem 1rem;
        width: 50vw;
        height: 97vh;
        position: absolute;
        right: -100%;
        top: 3.5rem;
        transition: all .7s ease;
        -webkit-transition: all .7s ease;
        -moz-transition: all .7s ease;
        -ms-transition: all .7s ease;
        -o-transition: all .7s ease;
}  

    .navbar .show-menu {
        right: 0;
    }
    
    .navbar .nav-links a {
        color: white;
        opacity: .8;
    }
}



.navbar .nav-links a:hover {
    opacity: 1;
}

/* Showcase */
.section-a {
    margin: 2rem 0;
    padding: 50px 0;
}

.section-a .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3rem;
    align-items: center;
    justify-content: center;
}

.section-a h1 {
    font-size: 4rem;
    color: var(--primary-color);
}

.section-a p {
    margin: 1rem 0;
}

.section-a .btn {
    margin-top: 1rem;
}

.section-a .btn i {
    margin-left: .3rem;
    font-size: .9rem;
    padding-top: 0.2rem;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}

.section-a .btn:hover i {
    margin-left: 0.5rem;
}

/* Section b */
.section-b {
    padding: 50px 0;
    height: 600px;
    position: relative;
}

.section-b-inner {
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    max-width: 860px;
    padding: 5rem;
}

.section-b-inner h2 {
    font-size: 5rem;
    margin-top: 1rem;
}

.section-b-inner h3 {
    font-size: 2rem;
}

.section-b-inner p {
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Gallery */
.section-c .gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.section-c .gallery a:first-child {
    grid-row: 1/3;
    grid-column: 1/3;
}

.section-c .gallery a:nth-child(2) {
    grid-column: 3/5;
}

.section-c .gallery img, .section-c .gallery a {
    width: 100%;
    height: 100%;
}
/* Features */
.features {
    padding: 100px 0;
}

.features .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media screen and (max-width: 864px){
    .features .container {
        display: grid;
        justify-content: center;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 572px){
    .features .container {
        display: grid;
        justify-content: center;
        grid-template-columns: 1fr;
    }
}

.features .feature {
    padding: 1.5rem;
    background-color: #555;
    border-radius: .5rem;
    -webkit-border-radius: .5rem;
    -moz-border-radius: .5rem;
    -ms-border-radius: .5rem;
    -o-border-radius: .5rem;
}

.features .feature h3 {
    margin: 0.5rem 0;
    color: white;
}

.feature i {
    opacity: .8;    
    color: white;
}

.feature p {
    color: white;
}


/* Footer */
.section-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 0;
}

.section-footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
}

.section-footer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-footer h3 {
    margin-bottom: 0.7rem;
}

.section-footer a {
    line-height: 1.9rem;
    color: #ccc;
}

.section-footer a > i {
    color: #555;
    margin-right: 0.5rem;
}

.section-footer a > i:hover {
    color: var(--secondary-color);
}


/* Email Form */
.email-form {
    width: 100%;
    display: inline-block;
    background: #555;
    position: relative;
    border-radius: 20px;
    line-height: 0;
    margin-top: 1rem;
}

.email-form .form-control {
    border: 0;
    outline: 0;
    display: inline-block;
    font-size: 1rem;
    color: #ddd;
    background: transparent;
    font-family: inherit;
    margin: 0;
    padding: 0 3rem 0 1.5rem;
    width: 100%;
    height: 45px;
    border-radius: 20px;
}

.email-form .submit {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    font-size: 1rem;
    text-align: center;
    color: #333;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
    position: absolute;
    display: inline-block;
    background: #eee;
}


/* Utilities */
.btn {
    display: inline-block;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-size: 1.1rem;
    border: none;
    padding: 0.8rem 1.5rem;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}

.btn:hover {
    background: var(--secondary-color);
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--overlay-color);
}


/* Media Queries */
@media(max-width: 700px){
  .body {
    overflow-x: hidden;
  }
  
    .section-a .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-a .container div:first-child {
        order: 2;
    }

    .section-a .container div:last-child {
        order: -1;
    }

    .section-a img {
        width: 80%;
        margin: auto;
    }

    .section-b-inner h2 {
        font-size: 3rem;
    }

    .section-c .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-c .gallery a:first-child {
        grid-row: 1/1;
        grid-column: 1/1;
    }

    .section-c .gallery a:nth-child(2) {
        grid-row: 2/2;
        grid-column: 2/4;
    }

    .section-c .gallery a:last-child {
        display: none;
    }

    .section-footer {
        padding: 2rem 0;
    }

    .section-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-footer .container div:nth-child(2), 
    .section-footer .container div:nth-child(3) {
        display: none;
    }

    .email-form, .form-control {
        width: 70%;
    }
}