* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v29-latin-regular.woff2') format('woff2');
}

body {
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    font-variant-ligatures: common-ligatures;
    font-kerning: normal;
    /* Bg circles */
    background-image: url('/assets/circle.webp'), url('/assets/circle.webp'), url('/assets/circle.webp');
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: 250px, 400px, 100px;
    background-position: 10% 20%, 70% 50%, 30% 90%;
}

p, td, th, li, dd {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p, hr, table, .table-responsive, ol, ul, dl, dd, pre, blockquote, fieldset {
    margin-bottom: 1em;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.6em;
    font-weight: bold;
    color: #333;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; font-weight: normal; font-style: italic; }

img { max-width: 100%; }

hr {
    border: 0.15em solid #f5f5f5;
    border-radius: 0.3em;
    background: #f5f5f5;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.navbar, .content {
    max-width: 1024px;
    margin: 0 auto; /* Center the navbar */
    width: 100%;
}

.content {
    font-size: 1.35rem;
    padding: 2em 1em;
    flex-flow: row wrap;
    display: flex;
    align-content: flex-start;
    gap: 1em;
    flex: 1;
    .content-box {
        flex: 3;
        padding:0;
        line-height: 1.5em;
        margin: 0 auto;
        order: 2;


        &.hero-image {
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            flex: 2;
            margin: 0 auto;
            min-height: 300px;
            max-height: 500px;
            order: 1;
        }

        &.hero-reverse {
            order: 3;
        }

    }

    h1.main-header {
        width: 100%;
        color: rgb(224, 99, 14);
        font-weight: 800;
    }

}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin-bottom: 1em;
}

.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
    width: 325px;

    img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 95px;
    }
}

.menu-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1em;
    padding: 0 2em;
}

/* Desktop menu */
.menu {
    list-style: none;
    display: flex;
    gap: 2.5em;
}

.menu li, .language-selector {

    a, a:visited {
        color: navy;
        text-decoration: none;
        font-weight: bold;
        font-family: Helvetica, sans-serif;
    }

    &.active a, a.active {
        text-decoration: underline;
    }
}

.menu li {
    a, a:visited {
        font-size: 1.4rem;
        letter-spacing: 0.1rem;
        color: rgb(38,34,97);
    }

}

.language-selector {
    margin-top: 0.5em;

    a, a:visited {
        margin: 0 5px;
        text-transform: uppercase;
        font-size: 1rem;
        color: black;
    }
}


/* Responsive menu button */
.responsive-menu-container {
    display: none;
}

.menu-toggle {
    flex-direction: column;
    gap: 8px;
    background: none;
    cursor: pointer;
    border: none;

    span {
        display: block;
        width: 45px;
        height: 8px;
        background-color: rgb(38, 34, 97);
        transition: 0.2s;
    }

    /* Button effect */
    &.active {
        span:nth-child(1) {
            transform: translateY(16px) rotate(45deg);
        }

        span:nth-child(2) {
            opacity: 0;
        }

        span:nth-child(3) {
            transform: translateY(-16px) rotate(-45deg);
        }
    }

}
/* Responsive Styles */
@media (max-width: 768px) {
    body {
        background-size: 200px, 300px, 150px;
        background-position: -10% 20%, 110% 50%, 30% 90%;
    }

    .navbar {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        margin: 0;
        flex-grow: 1;

        img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
        }
    }

    .responsive-menu-container {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: white;
        padding: 1.25em 0.75em;
        flex-grow: 0;
    }

    .menu-toggle {
        display: flex;
        border: 0;
    }

    .menu-container {
        max-height: 0;
        flex-direction: column;
        align-items: center;
        background: rgb(38, 34, 97);
        width: 100%;
        text-align: center;
        padding: 0 0;
        margin: 0;
        min-height: 0;
        overflow: hidden;

        &.active {
            max-height: 100%;
            position: absolute;
            top: 100px;
            transition: max-height 0.5s ease-out;


        }

        .language-selector {
            color: white;
            margin: 2em auto 1em auto;

            a, a:visited, a:active {
                color: white;
                border: 2px solid white;
                padding: 1em 3em;
            }

            a.active {
                background-color: rgb(224, 99, 14);
                color: white;
                text-decoration: none;
                border:none;
            }

            span.separator {
                opacity: 0;
            }

        }

        a:hover, a:active, a.active {
            text-decoration: underline;
        }
    }

    ul.menu {
        display: block;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            a, a:visited {
                width: 100%;
                padding: 1em 0;
                border-top: 1px solid #cfcfff;
                display: block;
                color: white;
                text-align: center;
            }

            &:last-child {
                border-bottom: 1px solid #cfcfff;
                margin-bottom: 1em;
            }
        }
    }

    .content {
        flex-direction: column;

        .content-box {
            width: 100%;
        }
    }
}

.cta {
    background-color: rgb(38,34,97);
    color: white;
    padding: 1em 2em;
    margin: 2em auto;
    text-align:center;
    display: block;
    max-width:  350px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: bold;

    &:hover {
        background-color: rgb(38,34,77);
        text-decoration: underline;
    }
}


a.contact-item, a.contact-item:visited {
    display:block;
    font-size: 1.25rem;
    margin: 2.5rem 0;
    font-weight: bold;
    color: rgb(38,34,97);
    text-decoration: none;
    padding-left: 1.5rem;
    white-space:preserve;


    &:hover {
        text-decoration: underline;
    }
}

#footer {
    background-color: rgb(38,34,97);
    color: white;
    width: 100%;
    padding: 1em 0;

    #footer-container {
        max-width: 1024px;
        margin: 0 auto;
        padding: 20px;
        display: flex;
        flex-wrap: wrap;
        gap: 25px;
        justify-content: space-between;
        font-size: 0.85em;
    }

    .footer-column {
        flex: 3;
        min-width: 350px; /* Ensures columns stack when screen is too narrow */
        align-content: center;
    }

    .footer-logo {
        flex: 1;
        min-width: 300px;

        img {
            max-width: 135px;
            height: auto;
        }
    }

    a, a:visited {
        color: white;
        text-decoration: underline;
    }
}
