:root {
    --white: #ffffff;
    --black: #212121;
    --primary: #fcc107;
    --second: #0097a7;
    --greys: #757575;
    --ligthGrey: #DFE9F3;
}


/* Global */

html {
    font-size: 62.5%;
    box-sizing: border-box;
    /* apply a natural box layout model to all elements, but allowing components to change */
    scroll-snap-type: y mandatory;
}


/* Scroll Snap */

.services,
.main-nav,
.form {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-size: 16px;
    /* 1rem = 10px */
    font-family: 'Krub', sans-serif;
    background-image: linear-gradient(to top, var(--ligthGrey) 0%, var(--white) 100%);
    /*Define the backgroun color from the below*/
}

.container {
    max-width: 120rem;
    margin: 0 auto;
}

.button {
    background-color: var(--second);
    color: var(--white);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 90%;
    text-align: center;
    border: none;
}

.button:hover {
    cursor: pointer;
}

@media (min-width: 768px) {
    .button {
        width: auto;
    }
}

.shadow {
    box-shadow: 0px 5px 15px 0px rgba(112, 112, 112, 1);
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
}


/* Tipografy */

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.8rem;
}

h1,
h2,
h3 {
    text-align: center;
}


/* Titles */

.title span {
    font-size: 2rem;
}


/* Utilities */

.w-sm-100 {
    width: 100%;
}

@media (min-width: 768px) {
    .w-sm-100 {
        width: auto
    }
}

.flex {
    display: flex;
}

.align-right {
    justify-content: flex-end;
}

.nav-bg {
    background-color: var(--second);
}

.main-nav {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .main-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

.main-nav a {
    display: block;
    text-align: center;
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
}

.main-nav a:hover {
    background-color: var(--primary);
    color: var(--black);
}


/* HERO */

.hero {
    background-image: url(../img/hero.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 450px;
    position: relative;
    margin-bottom: 2rem;
}

.hero-content {
    position: absolute;
    background-color: rgba(0, 0, 0, 6.5);
    background-color: rgb(0 0 0 /65%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h2,
.hero-content p {
    color: var(--white);
}

.hero-content .location {
    display: flex;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .services {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service h3 {
    color: var(--second);
    font-weight: normal;
}

.service p {
    line-height: 2;
}

.service .icons {
    height: 15rem;
    width: 15rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}


/* Contact me */

.form {
    background-color: var(--greys);
    /* min() use the value smaller*/
    width: min(60rem, 100%);
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}

.form fieldset {
    border: none;
}

.form legend {
    text-align: center;
    font-size: 1.8rem;
    text-transform: initial;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
}

@media (min-width: 768px) {
    .container-fields {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto 20rem;
        column-gap: 1rem;
    }
}

.field:nth-child(3),
.field:nth-child(4) {
    grid-column: 1 / 3;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    color: var(--white);
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}

.input-text {
    width: 100%;
    border: none;
    padding: 3rem;
    border-radius: .5rem;
}


/* FOOTER */

.footer {
    text-align: center;
}