/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #111;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: rgba(15, 15, 15, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 1000;
}

.navbar > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 200px;

    flex-shrink: 0;
}

.logo {
    width: 180px;
    height: auto;
    display: block;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
}

.brand h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: 5px;
}

.brand p {
    margin-top: 3px;
    color: #c7c7c7;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ef4444;
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
}

.language-switcher a {
    color: #aaa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.language-switcher a:hover {
    color: #fff;
}

.language-switcher a.active-language {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

/* =========================
   FOOTER
========================= */

.site-footer {
    padding: 65px 6% 25px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto 45px;
}

.footer-brand h2 {
    margin-bottom: 8px;
    font-size: 25px;
    letter-spacing: 3px;
}

.footer-brand p {
    color: #999;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 24px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 24px;
    color: #777;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* =========================
   RESPONSIVE NAVIGATION
========================= */

/* Smaller desktop and laptop screens */
@media (max-width: 1650px) {
    .navbar {
        padding: 0 24px;
    }

    .navbar > a {
        width: 170px;
    }

    .logo {
        width: 155px;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 13px;
    }
}

/* Hide the centre brand before it overlaps the navigation */
@media (max-width: 1450px) {
    .brand {
        display: none;
    }
}

/* Compact navigation */
@media (max-width: 1050px) {
    .navbar {
        padding: 0 18px;
    }

    .navbar > a {
        width: 90px;
    }

    .logo {
        width: 80px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 13px;
    }
}

/* Mobile navigation */
@media (max-width: 900px) {
    .navbar {
        position: sticky;
        top: 0;

        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;

        gap: 10px 12px;
        min-height: 0;
        padding: 10px 14px;

        background: rgba(15, 15, 15, 0.96);
    }

    .navbar > a {
        grid-column: 1;
        grid-row: 1;
        width: auto;
    }

    .logo {
        width: 105px;
    }

    .brand {
        display: none;
    }

    .nav-right {
        display: contents;
    }

    .language-switcher {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;

        width: 100%;
        gap: 18px;
        justify-content: flex-start;

        overflow-x: auto;
        padding: 0 0 4px;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .nav-links a {
        padding: 6px 0;
        font-size: 13px;
    }
}

@media (max-width: 800px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

/* Footer insurance statement */

.footer-bottom p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.footer-insurance {
    color: #b8b8b8;
    text-align: right;
}

@media (max-width: 700px) {
    .footer-bottom p {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-insurance {
        text-align: left;
    }
}