/* ==============================
   4) HEADER / NAV (incl. home.css bits)
   ============================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

/* Row layout */

.header__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    height: var(--header-h);
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 900;
    color: var(--brand-ink);
}

.brand__glyph {
    color: var(--brand);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.navbar-brand img {
    height: 50px;
    /* keeps logo balanced in navbar */
    width: auto;
    /* maintain aspect ratio */
    object-fit: contain;
    /* prevents distortion */
    display: block;
}

.navbar-brand img:hover {
    opacity: .9;
    transition: opacity .3s ease;
}

/* Nav */
.nav {
    --ink-h: 3px; /* Slightly thicker for better impact */
    position: relative;
}

.nav__list {
    position: relative;
    display: flex;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links (single source of truth) */
.nav__list a {
    /* brand colors used for effects */
    --ink: var(--brand-primary);
    --ink-accent: var(--brand-accent);

    position: relative;
    padding: .65rem .45rem;
    font-weight: 600;
    letter-spacing: .15px;
    color: var(--brand-ink);
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: color .2s ease;
}

.nav__list a:hover,
.nav__list a:focus-visible {
    color: var(--brand);
}

/* Current/active marker (flat ink bar) */
.nav__list a[aria-current="page"],
.nav__list a.is-active {
    color: var(--brand);
    /* persist color */
    box-shadow: inset 0 calc(var(--ink-h) * -1) 0 0 var(--brand);
}

/* Toggle (mobile button) */
.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
}

.nav__toggle i {
    font-size: 20px;
    line-height: 1;
    color: var(--brand-ink);
}

/* Removed legacy header/footer generic styles that broke modern layout */


@media (max-width:1024px) {

    .header__row {
        justify-content: space-between;

    }

    .navbar-brand img {
        height: 42px;
    }

    header {
        padding: .5rem;
    }

}
/* ==============================
   5) WAVE ANIMATION
   ============================== */
.header-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(99%);
    z-index: 49;
    pointer-events: none;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    min-height: 40px;
    max-height: 60px;
}

/* Animation */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}
