/* CSS Reset */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Custom CSS */

:root {
    --maincolor: #7d8cb3;
}

p {
    font-size: 20px;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #1D1D1D;
}

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

label {
    margin: 5px 0px;
}

textarea {
    resize: none;
}

.header-container {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.header-container > div {
    width: 1260px;
}

.header-button {
    color: #000000;
    transition: color 0.2s ease;
}

.header-button:hover {
    color: var(--maincolor);
    cursor: pointer;
}

#navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    white-space: nowrap;
    width: 100%;
    transition: height .2s ease-in-out;
    height: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    align-items: center;
}

.logo {
    margin: 15px;
    width: 212px;
    cursor:pointer;
}

#hamburguer {
    display: none;
    margin-right: 15px;
}

#navbar-items {
    width: 500px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
}

#main-content {
    width: 100%;
    margin-top: 59px;
}

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-photo {
    position: relative;
    width: 100%;
    height: 600px;
}

.main-photo-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 3px 3px;
    background-color: #000000;
    opacity: 0.3;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-box {
    font-family: 'Oswald', sans-serif;
    color: white;
    font-size: 60px;
    position: absolute;
    background-color: black;
    color: white;
    padding: 20px;
    text-align: center;
}

#about-us {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #222222;
}

.about-us-content {
    width: 1000px;
    margin: 80px 0px;
    display: flex;
    flex-direction: column;
}

.about-us-description {
    margin-top: 25px;
}

#services {
    display: flex;
    flex-direction: row;
    flex-basis: 33%;
    justify-content: space-evenly;
    max-height: 917px;
}

.services-photo {
    width: 50%; /* 700px */
}

.services-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-content {
    display: flex;
    justify-content: center;
    width: 50%;
}

.services-text {
    margin: 30px 80px;
    width: 500px;
}

.service-main-title-container {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    color: var(--maincolor);
}

.service {
    display: flex;
    flex-direction: column;
}

.service-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    margin-top: 30px;
    color: var(--maincolor);
}

.service-description {
    margin-top: 15px;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

#gallery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0px;
    background-color: #222222;
}

.projects {
    display: grid;
    width: 90%;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 25px;
    margin: 25px 0px;
}

.project {
    position: relative;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease, color 0.3s ease;
    color: rgba(0, 0, 0, 0);
    font-family: 'Oswald', sans-serif;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
}

.overlay:hover {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.750);
    color: white;
}

#contact-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0px;
}

.contact-containers {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 1260px;
    margin: 25px 0px;
}

.contact-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 50%;
    padding: 0px 25px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    padding-top: 10px;
}

.contact-info > div > p {
    margin-bottom: 15px;
}

.contact-info-right {
    text-align: right;
}

#meraki-form {
    display: flex;
    flex-direction: column;
    color: white;
    font-family: 'Montserrat', sans-serif;
    width: 50%;
    padding: 0px 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0px 5px;
}

#name {
    grid-area: 1 / 1 / 2 / 2;
}

#telephone {
    grid-area: 1 / 2 / 2 / 3;
}

#email {
    grid-area: 2 / 1 / 3 / 2;
}

#address {
    grid-area: 2 / 2 / 3 / 3;
}

#meraki-form input, #meraki-form textarea {
    background-color: rgba(0, 0, 0, 0);
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 16px;
    border: 1px solid transparent;
    border-bottom: 1px solid var(--maincolor);
    margin-bottom: 25px;
    padding: 5px;
    transition: border 0.15s ease;
}

#meraki-form input:hover, #meraki-form textarea:hover, #meraki-form input:focus, #meraki-form textarea:focus {
    border: 1px solid var(--maincolor);
}

#meraki-form > button {
    margin-top: 15px;
    color: black;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background-color: white;
    border: 0px solid var(--maincolor);
    padding: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#meraki-form > button:hover {
    background-color: var(--maincolor);
    color: white;
}

.google-map {
    width: 100%;
    height: 450px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: black;
    width: 100%;
    height: 50px;
    font-family: 'Montserrat', sans-serif;
}

.hbar {
    width: 35px;
    height: 5px;
    background-color: black;
    margin: 6px 0;
    border-radius: 3px;
}

.hidden {
    display: none;
}

@media (max-width: 1270px) {
    .aboutuscontent {
        width: 90%;
    }
    #services {
        max-height: fit-content;
    }

    .contact-containers {
        flex-direction: column;
        width: 90%;
        align-items: center;
    }

    .contact-info {
        width: 50%;
    }

    #meraki-form {
        width: 100%;
        padding: 0px;
    }

    .contact-info {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    #services {
        flex-direction: column;
        max-height: none;
    }

    .services-photo {
        width: 100%;
    }

    .services-content {
        width: 100%;
    }

    .services-text {
        width: 90%;
        margin: 20px 0px;
    }
}

@media (max-width: 938px) {
    p {
        font-size: 18px;
    }
}

@media (max-width: 841px) {
    #navbar {
        flex-direction: column;
    }

    #navbar-items {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0px;
    }

    #navbar-items > li {
        margin: 10px 0px;
    }

    #hamburguer {
        display: block;
    }

    .logo {
        margin: 5px 5px 5px 15px;
        width: 150px
    }
    
    .project {
        width: 100%;
        height: auto;
        flex: 1;
        aspect-ratio: 1/1;
    }

    .projects {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-gap: 8px;
    }

    .overlay {
        font-size: 30px;
    }
}

@media (max-width: 650px) {
    .header-container {
        display: flex;
    }

    .center-box {
        font-size: 25px;
    }

    .main-photo {
        height: 250px;
    }

    .aboutus-content {
        align-items: center;
    }

    .service-main-title-container {
        align-items: center;
    }

    .section-title {
        font-size: 45px;
    }

    #gallery {
        width: 100%
    }

    .google-map {
        height: 225px;
    }

    .about-us-content {
        width: 90%;
        margin: 20px 0px;
    }

    .contact-containers {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    #meraki-form > button {
        width: 100%;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 0px;
    }
    
    #name {
        grid-area: 1 / 1 / 2 / 2;
    }
    
    #telephone {
        grid-area: 2 / 1 / 3 / 2;
    }
    
    #email {
        grid-area: 3 / 1 / 4 / 2;
    }
    
    #address {
        grid-area: 4 / 1 / 5 / 2;
    }
}

@media (max-width: 576px) {
    p {
        font-size: 15px;
    }
}