@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&display=swap');

:root {
    --header-height: 72px;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* include safe-area inset so header isn't cut on devices with notch */
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    background: rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    /* add top padding equal to safe-area so content sits below notch */
    padding-top: env(safe-area-inset-top, 8px);
    padding-left: 345px;
    box-sizing: border-box;
}

h1, h2 {
    margin: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Push content below header by default; on pages that want the hero under the header
   add class `hero-under-header` on the <body> to remove this offset */
body {
    padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

body.hero-under-header {
    padding-top: 0;
}

/* Container that holds logo, nav and contact button */
.nav--container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 60px;
    max-height: calc(var(--header-height) - 12px);
}

nav {
    display: block;
}

.nav--list {
    list-style: none;
    display: flex;
    gap: 60px;
    margin: 0;
    padding: 0;
}

.nav--list li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    text-align: end;
}

.nav--list li a:hover {
    color: #e0d4fc;
}

.contact--button {
    padding: 10px 25px;
    background-color: rgb(255, 255, 255);
    color: #000000;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.contact--button:hover {
    background-color: #782ed6;
}

/* Burger button hidden on desktop */
.nav--toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav--toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: transform 200ms ease, opacity 200ms ease;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer--container p {
    margin: 0;
    font-size: 14px;
}

.footer--links {
    margin-top: 10px;
}

.footer--links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 10px;
}

.footer--links a:hover {
    color: #fff;
}

.footer--contact-info {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer--contact-link {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 200ms ease;
}

.footer--contact-link:hover {
    color: #fff;
}

.instagram-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Responsive adjustments for header/navigation/footer */
@media (max-width: 1024px) {
    :root { --header-height: 64px; }
    header {
        /* keep padding small for fixed header */
        padding: 8px 16px;
        padding-left: 120px;
    }

    .nav--container {
        gap: 18px;
    }

    .nav--list {
        gap: 28px;
    }

    .logo {
        height: 50px;
    }

    .contact--button {
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    header {
        padding: 6px 12px;
    }

    .nav--container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0;
    }

    .nav--container .logo {
        align-self: center;
        height: 48px;
    }

    /* Hide nav by default on mobile, show when container has class "open" */
    .nav--list {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 8px 0;
    }

    .nav--container.open .nav--list {
        display: flex;
    }

    /* Burger button shown on mobile */
    .nav--toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        padding: 6px;
        align-self: flex-end;
    }

    .nav--container.open .nav--toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav--container.open .nav--toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav--container.open .nav--toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav--list li {
        text-align: center;
    }

    .contact--button {
        align-self: center;
        width: auto;
        display: none; /* hidden by default on mobile; shown when nav open */
    }

    .nav--container.open .contact--button {
        display: inline-block;
    }

    footer .footer--links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .footer--contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .footer--contact-link {
        font-size: 13px;
    }

    /* Mobile: when nav is open, show a full-screen overlay menu so links are visible
       This prevents the tiny fixed header height from clipping the menu items. */
    .nav--container.open {
        position: fixed;
        top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        height: calc(100vh - (var(--header-height) + env(safe-area-inset-top, 0px)));
        background: rgba(0,0,0,0.92);
        padding: 20px 16px;
        z-index: 9999;
        align-items: center;
        justify-content: flex-start;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav--container.open .nav--list {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: center;
        width: 100%;
    }

    .nav--container.open .nav--list li a {
        color: #ffffff;
        font-size: 1.15rem;
        padding: 8px 12px;
        display: inline-block;
    }

    /* Ensure the toggle stays on top and is visible as a close control */
    .nav--toggle {
        z-index: 10000;
        color: #fff;
    }
}

/* Ensure nav list default desktop layout (only on wider screens) */
@media (min-width: 769px) {
    .nav--list {
        list-style: none;
        display: flex;
        gap: 60px;
    }
}

/* When the container has .open, force show the nav (override mobile hide) */
.nav--container.open .nav--list {
    display: flex;
}

/* Explicit mobile padding overrides to ensure paddings apply even if nested rules were present before */
@media (max-width: 768px) {
    header {
        padding: 14px 18px;
    }

    .nav--container {
        padding: 0;
    }

    .nav--list {
        padding: 8px 0;
        width: 100%;
    }

    .contact--button {
        padding: 8px 16px;
    }
}