/* version 1.0 */

@font-face {
    font-family: 'Geologica';
    src: url('./fonts/geologica.ttf');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('./fonts/merriweather.ttf');
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --main-font: 'Geologica';
    --headers-font: 'Merriweather';
    --color-black: #101828;
    --color-white: #fff;
    --color-gray: #CED7E1;
    --regular-transition: all 0.2s ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.grecaptcha-badge { visibility: hidden; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
    font-size: 18px;
    font-family: var(--main-font);
}

.container {
    max-width: 1920px;
    margin: auto;
    padding: 0 120px;
}

h1 {
    font-family: var(--headers-font);
    font-size: 72px;
}

header {
    padding: 40px 0;
    height: 170px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    max-width: 300px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

header nav a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 24px;
}

.open-burger-menu {
    display: none;
}

#hero {
    background-image: url('./images/hero-bg.jpg');
    background-repeat: no-repeat;
    background-size: 120%;
    background-position: center;
    height: calc(100vh - 170px);
    margin-bottom: -7px;
}

#hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    height: 100%;
}

#hero h1 {
    max-width: 620px;
    line-height: 150%;
}

#hero .hero__desc {
    font-size: 24px;
    max-width: 600px;
    font-weight: 100;
}

#hero fieldset {
    display: none;
}

#hero form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#hero input {
    font-size: 20px;
    padding: 20px 10px;
    outline: 0;
    border-radius: 8px;
    border: 1px solid var(--color-gray);
    max-width: 620px;
    min-width: 620px;
}

#hero input[type=submit] {
    background-color: #56bbd0;
    cursor: pointer;
    border: 0;
    color: var(--color-white);
    transition: var(--regular-transition);
}

#hero input[type=submit]:hover {
    transform: scale(1.02);
}

#hero input[type=submit]:active {
    transform: scale(0.98);
}

main {
    min-height: calc(100vh - 290px);
}

footer {
    padding: 40px;
    background-color: var(--color-black);
    color: var(--color-white);
}

footer .container {
    height: 40px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

footer .location {
    font-weight: 100;
    color: var(--color-gray);
    font-size: 16px;
}

@media (max-width: 1440px) {
    .container {
        padding: 0 80px;
    }
    h1 {
        font-size: 64px;
    }
    header {
        height: 150px;
    }
    header .logo {
        max-width: 250px;
    }
    #hero {
        background-size: cover;
    }
    #hero h1 {
        line-height: 130%;
    }
    #hero .hero__desc {
        font-size: 20px;
    }
    #hero input {
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    header .logo {
        max-width: 200px;
    }
    header nav ul {
        gap: 24px;
    }
    header nav a {
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    header {
        height: 120px;
    }
    header .logo {
        max-width: 150px;
    }
    header nav a {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 48px;
    }
    header nav {
        display: none;
    }
    .open-burger-menu {
        display: flex;
        background-image: url('./icons/icon-burger.svg');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        max-width: 34px;
        min-width: 34px;
        height: 34px;
        cursor: pointer;
    }
    #hero .container {
        align-items: center;
        text-align: center;
    }
    #hero h1 {
        max-width: 550px;
        line-height: 120%;
    }
    #hero .hero__desc {
        max-width: 410px;
    }
    #hero input {
        min-width: 100%;
        padding: 16px 10px;
        width: 100%;
    }
}

@media (max-width: 490px) {
    h1 {
        font-size: 40px;
    }
    #hero .hero__desc {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 16px;
    }
    h1 {
        font-size: 36px;
    }
}