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

:root {
    --primary-color: #333333;
    --secondary-color: #444444;
    --overaly-color: rgba(0, 0, 0, 0.7);
}

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

body {
    font-family: 'Catamaran', sans-serif;
    line-height: 1.5;
    color: #333333;
    font-size: 1.1rem;
}

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

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

ul {
    list-style: none;
}

img {
    width: 100%;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

.navbar {
    font: 1.5rem;
    padding: 0.4rem;
    padding-bottom: 0.4rem;
}

.navbar .container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.navbar .logo {
    height: 60px;
    width: 100%;
    object-fit: contain;
}

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

.navbar .nav a {
    padding: 0 1rem;
}

.navbar .nav a:hover {
    color: #555555;
}

/* Showcase */

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

}

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

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

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 30px;
}

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

/* Section b */

.section-b {
    position: relative;
    background: url('../img/section-b.png') no-repeat bottom center/cover;
    height: 100vh;
}

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

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

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

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

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


.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-start: 3;
    grid-column-end: 5;
}

.section-c .gallery img,
.section-c .gallery a {
    width: 100%;
    height: 100%;
}

/* Footer */

.section-footer {
    background: var(--primary-color);
    color: #ffffff;
    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.9;
    color: #cccccc;
}

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

/* Form */

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

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

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

/* Media  Queries */

@media(max-width: 700px) {
    .section-a .section-b .section-c {
        height: 100%;
    }

    .section-a .container {
        grid-template-columns: 2fr;
        text-align: center;
        height: auto;
    }

    .section-a img {
        height: 200px;
        object-fit: contain;
    }

    .section-a h1 {
        font-size: 33px;
    }

    .section-a a {
        margin-bottom: 2rem;
    }

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

    .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-top: 2rem 0;

    }

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

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

}

@media(max-width: 380px) {
    .section-a h1{
        font-size: 20px;
    }

    .section-a  p {
        font-size: 16px;
    }
}

@media(max-width: 322px) {
    .section-a img {
        display: none;
    }
}