@font-face {
    font-family: 'Montserrat Local';
    src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat Local';
    src: url('fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html,
body {
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'Montserrat Local', sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #000000;
    display: flex;
}

header {
    width: 200px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 50px 35px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #ffffff;
    z-index: 10;
}

header h1 {
    font-family: 'Montserrat Local', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 40px;
    line-height: 0.9em;
    text-align: left;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

main {
    margin-left: 200px;
    width: calc(100% - 200px);
    padding: 16px 15px 15px;
}

hr {
    border: 0;
    width: 80%;
    height: 1px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.5);
}

.nav-main,
.nav-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-footer {
    margin-top: 30px;
}

.nav-main a,
.nav-footer a {
    color: #000000;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-main a.active,
.nav-footer a.active {
    color: #888888;
}

.nav-main a:hover,
.nav-footer a:hover {
    color: #56af31;
}

.social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.social-icons img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: start;
}

.gallery-item {
    width: 100%;
    background-color: #f5f5f5;
}

.gallery-item.landscape {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.legal-text {
    width: 80%;
    text-align: center;
    font-size: 12px;
    margin: 30px auto 0;
}

.legal-text a {
    color: inherit;
    text-decoration: none;
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-text a {
    color: inherit;
    text-decoration: none;
}

.contact-text {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    margin: 40px 0;
}

.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 80%;
    text-align: center;
    font-size: 11px;
    margin: 0 auto;
}

.column-title {
    font-style: italic;
    display: block;
    margin-bottom: 5px;
}

.column-list {
    line-height: 1.5;
}

.copyright-text {
    text-align: center;
    font-size: 12px;
    margin-bottom: 80px;
}



@media (max-width: 600px) and (orientation: portrait) {
    body {
        display: block;
    }

    header {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        padding: 14px 10px;
        display: block;
        text-align: center;
    }

    header h1 {
        margin: 0 0 14px;
        font-size: 18px;
        letter-spacing: 0.5px;
        line-height: 0.9em;
        text-align: center;
    }

    main {
        width: 100%;
        margin: 0 auto;
        padding: 150px 10px 10px;
    }

    .nav-main {
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
        gap: clamp(10px, 2vw, 10px);
    }

    .nav-main a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .nav-footer {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .social-icons {
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
    }

    .social-icons img {
        width: 18px;
        height: 18px;
    }

    .gallery {
        gap: 10px;
    }
    
    .ref-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
}

    .nav-main a:hover,
    .nav-footer a:hover {
        color: #000000;
    }

    .nav-main a.active:hover,
    .nav-footer a.active:hover {
        color: #888888;
    }
}
