/* Header Style */
 
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500&display=swap');
 
/* Colour Palette Vars */
:root {
    --blue-black:   #111518;
    --dark-blue:    #2D3238;
    --steel-grey:   #737D87;
    --ice-silver:   #C4CCD4;
    --cool-white:   #F0F4F7;
    --powder-blue:  #6A9FBF;
}
 
/* Header wrapper */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header */
header {
    background-color: var(--blue-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    height: 72px;
    border-bottom: 1px solid rgba(196, 204, 212, 0.15);
}
/* brand name */
header h1 {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    white-space: nowrap;
    cursor: default;
}

header h1 a {
    text-decoration: none;
    color: var(--cool-white);
    transition: color 0.25s ease;
}

header h1 a:hover {
    color: var(--powder-blue);
}
 
/* Navbar */
.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0;
    padding: 0;
}
 
.navbar ul li a {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--steel-grey);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-bottom: 4px;
    position: relative;
    transition: color 0.25s ease;
}
 
/* Animated underline on hover */
.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--powder-blue);
    transition: width 0.3s ease;
}
 
.navbar ul li a:hover {
    color: var(--cool-white);
}
 
.navbar ul li a:hover::after {
    width: 100%;
}
 
/* Active page link style */
.navbar ul li a.active {
    color: var(--powder-blue);
}

.navbar ul li a.active::after {
    width: 100%;
}

/* Hamburger button — hidden on desktop */
.nav_toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav_toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ice-silver);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.25s ease;
    transform-origin: center;
}

.nav_toggle:hover span {
    background-color: var(--cool-white);
}

/* Animate to X when open */
.nav_toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav_toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav_toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* < Responsive Breakpoints > */

/* Extra Large (1600px+) */
@media (min-width: 1600px) {
    header {
        padding: 0 80px;
        height: 80px;
    }

    header h1 {
        font-size: 1.85rem;
    }

    .navbar ul {
        gap: 48px;
    }

    .navbar ul li a {
        font-size: 0.92rem;
    }
}

/* Tablet Landscape (≤1024px) */
@media (max-width: 1024px) {
    header {
        padding: 0 32px;
    }

    .navbar ul {
        gap: 24px;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    header {
        padding: 0 24px;
        position: relative;
    }

    /* Show the hamburger button */
    .nav_toggle {
        display: flex;
    }

    /* Nav slides down from the header on mobile */
    .navbar {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--blue-black);
        border-bottom: 1px solid rgba(196, 204, 212, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 999;
    }

    .navbar.open {
        max-height: 240px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0 16px 0;
        align-items: flex-start;
    }

    .navbar ul li {
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 14px 24px;
        font-size: 0.85rem;
    }

    .navbar ul li a::after {
        display: none;
    }

    .navbar ul li a:hover {
        color: var(--powder-blue);
        background-color: rgba(255, 255, 255, 0.03);
    }

    /* Gallery filter nav sits directly below the header */
    .gallery_nav {
        top: 72px;
    }
}