@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v29-latin-regular.woff2') format('woff2'),
         url('../fonts/montserrat-v29-latin-regular.ttf') format('truetype');
  }

  @font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/montserrat-v29-latin-700.woff2') format('woff2'),
         url('../fonts/montserrat-v29-latin-700.ttf') format('truetype');
  }
  

:root {
    --bg-color: rgba(240, 240, 240, 1);
    --standard-color: rgba(70, 70, 70, 1);
    --standard-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
    --link-hover-opacity: 0.7;
}

* {
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--standard-color);
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

h2 {
    text-align: center;
    padding: 1.5rem 0;
}

h3 {
    text-align: center;
    padding-top: 3rem;
}

hr {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    height: 3px;
    background: rgba(118, 112, 112, 1);
    clear: both;
}

a {
    text-decoration: none;
}

/**********************************HEADER*************************************/
/*****************************************************************************/
header {
    display: flex;
    justify-content:space-between;
    align-items: center;
    z-index: 10;
    position: sticky;
    top: 0;
    font-size: 1.7rem;
    padding: 1rem 1rem;
    background-color: var(--bg-color);
    box-shadow: var(--standard-shadow);
}

#logo {
    max-height: 90px;
    max-width: 100%;
}

#normal-nav ul {
    display: flex;
    text-decoration: none;
}

#normal-nav ul li {
    text-align: center;
    font-weight: 700;
    padding: 1.2rem;
}

#normal-nav ul li:hover {
    opacity: var(--link-hover-opacity);
}

/*********************MOBILE NAV********************/
#mobile-nav-button, #mobile-nav {
    display: none;
    background-color: var(--bg-color);
}

/*********************************MAIN******************************************/
/*******************************************************************************/
main {
    z-index: 0;
    background-color: var(--bg-color);
    padding: 0 15%;
    font-size: 1.2rem;
    line-height: 3rem;
    text-align: justify;
    hyphens: auto;
}

#main-picture {
    z-index: -1;
    position: sticky;
    width: 100%;
    height: auto;
    top: 0;
    display: block;
}


/*******************************TEXTBLOCKS***********************************/
/****************************************************************************/
#about, #services, #contact {   
    scroll-margin-top: 120px;
    padding: 3rem 1rem;
}

/**********************************ABOUT*************************************/
/****************************************************************************/


/**********************************SERVICES**********************************/
/****************************************************************************/

/**********************************CONTACT**************************************/
/*******************************************************************************/
#contact div:first-of-type{
    text-align: center;
}

.contact-number a:hover, .contact-mail a:hover, .contact-mobile-number a:hover {
    opacity: var(--link-hover-opacity);
}



/**********************************FOOTER*************************************/
/*****************************************************************************/
footer {
    display: flex;
    justify-content:center;
    flex-direction: column;
    padding: 2rem 10%;
    background-color: var(--bg-color);
}

footer details {
    padding: 0.5rem 4rem;
}

footer details :not(summary) {
    font-size: 0.8rem;
}

footer details summary {
    list-style: none;
    padding-bottom: 1rem;
    text-align: center;
    cursor: pointer;
}
footer details summary:hover {
    opacity: var(--link-hover-opacity);
}

.fa-solid.fa-circle-up {
    font-size: 3rem;
    position: fixed;
    bottom: 20px;
    right: 20px;
    margin-left: auto;
    color: rgba(172, 172, 172, 1);
}
.fa-solid.fa-circle-up:hover {
    cursor: pointer;
    opacity: var(--link-hover-opacity); 
}

/**********************************MEDIA*************************************/
/*****************************************************************************/

@media screen and (max-width: 992px){
    
    header {
        flex-direction: column;
    }

    #about, #services, #contact {
        scroll-margin-top: 180px;
    }
    main {
        font-size: 1rem;
        line-height: 2.5rem;
    }
}

/***************************** 700 PX ******************************************/

@media screen and (max-width: 700px){

    header {
        flex-direction: row;
        justify-content:space-between;
    }

    #logo {
        max-height: 50px;
        max-width: 200px;
    }

    #normal-nav {
        display: none;
    }

    #mobile-nav-button {
        font-size: 1.7rem;
        border: none;
        cursor: pointer;
        display: block;
        padding-right: 20px;
    }
    
    #mobile-nav {
        display: none; 
        position: absolute;
        background-color: var(--bg-color);
        font-size: 1.2rem;
        right: 0;
        box-shadow: var(--standard-shadow);
        padding: 10px;
        border-radius: 10px;
    }

    #mobile-nav.show {
        display: block;
    }

    #mobile-nav-button:hover, #mobile-nav a:hover {
        opacity: var(--link-hover-opacity);
    }

    main {
        font-size: 1rem;
        line-height: 2rem;
    }

    #about, #services, #contact {
        scroll-margin-top: 70px;
    }

    .fa-solid.fa-circle-up {
        font-size: 2.5rem;
    }

    #contact .contact-number,  #contact .contact-mail {
        padding: 0.3rem;
    }
}

/******************* PRINT *****************************/

@media print {
    
    #normal-nav, #mobile-nav, footer, #main-picture, .fa-solid.fa-circle-up{
        display: none;
    }

    header {
        box-shadow: none;
        margin: auto;
        padding: 0;
        display: block;
    }

    header h1 picture {
        display: block;
        text-align: center;
    }

    #logo {
        top: 0;
        margin: 0;
        padding: 0;
    }

    main {
        font-size: 0.6rem;
        line-height: 1.4rem;
    }

    #about, #services, #contact {   
        margin: 0;
        padding: 0.2rem;
    }

    h3 {
        padding: 1rem;
    }
}