/* General Styles */
html {
    background: #121d2b;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background: #1d2e44;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;

    * {
        position: relative;
        font-family: "Quattrocento", serif;
    }

    p {
        font-weight: 400;
        opacity: 0.8;
        line-height: 130%;
        letter-spacing: 0.3px;
        font-size: 1rem;
    }

    a {
        font-weight: 700;
        letter-spacing: 0.3px;
    }
}

/* Header Section */
.header {
    position: relative;
    color: white;
    background: #1d2e44;
    padding: 2rem 4rem;


    @media (max-width: 1024px) {
        padding: 2rem;
    }

    >img {
        position: absolute;
        width: 100%;
        max-width: 1000px;
        top: 0;
        z-index: 0;
        left: 0;
    }

    .header-content {
        z-index: 0;

        .content {
            a {
                color: white;
            }
        }
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1;
        position: relative;
        gap: 3rem;

        @media (max-width: 768px) {

            align-items: start;
        }

        .logo {
            width: 8rem;

            @media (max-width: 768px) {
                width: 6rem;
            }
        }

    }

    .nav {
        a {
            color: white;
            text-decoration: none;
            margin-left: 20px;
            font-size: 1.2rem;
            font-weight: 400;
        }

        .dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            min-width: 240px;
            z-index: 1;
            gap: .5rem;
            padding: .5rem;
            background-color: #294160;
            border-radius: 0.5rem;
        }

        .dropdown-content a {
            padding: 0.5rem 1rem;
            color: white;

            display: block;
            margin: 0;
            border-radius: 0.2rem;
        }

        .dropdown-content a:hover {
            background-color: #1393F6;
        }

        /* Hover for Desktop */
        .dropdown:hover .dropdown-content {
            display: grid;
        }

        /* Mobile Click */
        .dropdown.open .dropdown-content {
            display: block;
        }

        @media (max-width: 768px) {
            display: none;
        }

    }
}

.icon-button {
    margin: 0;
    padding: .5rem;
    background-color: transparent;
    border: none;
    width: 2rem;
    height: 2rem;
}

#show-button {
    display: none;

    @media (max-width: 768px) {
        display: grid;
    }
}

#mobile-menu {
    height: 100%;
    width: 100%;
    border: none;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100%;
    background: #1393F6;
    color: white;

    align-items: center;
    justify-content: center;

    .nav {
        display: grid;
        gap: 2rem;
        margin: auto;

        a {
            color: white;
            text-decoration: none;
            margin-left: 20px;
            font-size: 1.8rem;
            text-transform: uppercase;
            font-weight: 400;
            font-family: "Oswald", serif;
            text-align: center;
        }


    }
}

.language-select {
    background-color: #ffffff;
    color: #1d2e44;
    width: max-content;
    padding: .5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-family: "Oswald", serif;
    border: none;
    cursor: pointer;

    &:focus-visible {
        outline: 2px solid #1393F6;
        outline-offset: 2px;
    }
}

.header .nav .language-select {
    margin-left: 20px;
    vertical-align: middle;
}

#mobile-menu .nav .language-select {
    margin: 0 auto;
    font-size: 1.2rem;
}

.contact-btn {
    border: 1px solid white;
    padding: 5px 15px;
    border-radius: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    max-width: 760px;
    margin-left: auto;
    text-align: right;
    font-family: "Oswald", serif;
    font-optical-sizing: auto;
    line-height: 120%;
    padding: 4rem 0;
    margin: 0 0 0 auto;

    &.sub-page {
        margin: 0;
        text-align: left;
        padding: 2rem 0 0 0;
        margin-bottom: 1rem;
    }


    @media (max-width: 1024px) {
        padding-top: 8rem;
        font-size: 3rem;
    }

    @media (max-width: 768px) {
        font-size: 2rem;
        padding: 0;
        padding-top: 3rem;
    }

}


.image-gallery {
    display: flex;
    overflow-x: auto;

    width: 100%;


    &::-webkit-scrollbar {
        height: 0px;

    }

    &::-webkit-scrollbar-track {
        background-color: #121d2b;

        border-radius: 5px;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #1393F6;
        /* Dark gray thumb */
        border-radius: 5px;

        &:hover {
            background-color: #fff;

        }
    }

    /* Individual Image Item */
    .image-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        height: 320px;
        overflow: hidden;


        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }
    }
}

/* Services Section */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    padding: 2rem 0;


    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
        grid-template-columns: repeat(1, 1fr);
    }

    .service {
        padding: 1rem 0;

        h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            display: flex;
            gap: 0.5rem;
            align-items: center;
            font-weight: 400;

            img {
                width: 1.5rem;
                height: 1.5rem;
            }
        }

        a {
            color: #fff;
            text-decoration: none;
            font-weight: bold;
        }
    }
}

/* Call to Action Section */
.cta {
    background: #333;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    background-image: url(../assets/cta-bg.webp);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    @media (max-width: 1024px) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .overlay {
        position: absolute;
        background: linear-gradient(0deg, rgba(4, 63, 108, 0.6), rgba(4, 63, 108, 0.6));
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    h2 {
        font-size: 2rem;
        line-height: 130%;
        z-index: 1;
        max-width: 600px;
        font-family: "Oswald", serif;
        text-align: left;
        margin: 0;

        @media (max-width: 1024px) {
            font-size: 1.5rem;
            max-width: 460px;
        }
    }

    .cta-btn {
        display: inline-block;
        background: white;
        font-family: "Oswald", serif;
        color: #333;
        padding: 1rem;
        font-weight: bold;
        border-radius: 2rem;
        text-decoration: none;
        padding: .5rem 2rem;
        text-transform: uppercase;
        z-index: 1;
    }
}

/* Footer Section */


/* Utility Classes */
.bold {
    font-weight: bold;
}

.footer {
    background: #1d2e44;
    color: white;
    text-align: center;

    .footer-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 4rem;
        padding: 2rem;
        align-items: center;

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .footer-info {
            display: grid;
            justify-items: start;
            gap: 0.5rem;
            padding: 2rem 0;

            @media (max-width: 1024px) {
                grid-template-columns: 1fr;
            }

            p {
                font-size: 1rem;
                margin: 0;
                opacity: 1;

                @media (max-width: 1024px) {
                    text-align: left;
                }
            }

            a {
                color: #fff;
                text-decoration: none;
            }
        }

        .footer-links {
            display: grid;
            gap: 1rem;

            a {
                color: #fff;
                margin: 0 10px;
                text-decoration: none;
                display: flex;
                gap: .5rem;
                align-items: center;
                font-size: 1rem;
            }

            #language-select {
                margin-left: auto;

                @media (max-width: 768px) {
                    margin-left: 0;
                }
            }
        }


    }

    .footer-copy {
        margin-top: 20px;
        font-size: 14px;
        background: #172436;
        padding: 1rem;
        margin: 0;

        a {
            color: white
        }
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;

    @media (max-width: 1024px) {
        grid-template-columns: 1fr;
    }

    form {
        display: grid;
        align-content: start;
        gap: .75rem;

        input,
        textarea {
            padding: .75rem 1rem;
            border-radius: 0.2rem;
            border: none;
            background: #354d69;
            color: white;
            outline: none !important;
            font-size: 1rem;

            &::placeholder {
                color: white;
                opacity: .4;
                /* Firefox */
            }
        }

        button {
            display: inline-block;
            background: white;
            font-family: "Oswald", serif;
            color: #333;
            padding: 1rem;
            font-weight: bold;
            border-radius: 2rem;
            text-decoration: none;
            padding: .5rem 2rem;
            text-transform: uppercase;
            z-index: 1;
            width: max-content;
            margin: 0 auto;
            border: none;
            cursor: pointer;
            transition: ease-in-out 0.2s;

            &:hover {
                transform: scale(1.05);
            }
        }

    }

    iframe {
        border-radius: 0.2rem;
        width: 100%;
    }
}
/* Visually hidden, still read by screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
