/* Williams Academy header
   Brand lockup only. Do not restyle Porto's hamburger panel —
   theme.css already owns that below 992px. */

#header .header-body {
    overflow: visible !important;
    background-color: var(--primary);
}

#header .header-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

    #header .header-container > .header-row {
        display: flex;
        flex: 0 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        height: 100%;
    }

#header .header-column.justify-content-end {
    flex: 0 1 auto;
    width: auto;
    margin-left: auto;
}

#header .header-brand {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    height: 100%;
    width: auto;
}

#header .header-logo {
    position: relative;
    z-index: 2;
    display: block;
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 8px 0 0;
    line-height: 0;
}

    #header .header-logo img {
        display: block;
        width: 145px;
        height: auto;
        max-width: none;
    }

.school-wordmark {
    display: block;
    flex: 0 0 auto;
    width: auto;
    color: #fff;
    font-family: "Copperplate CC", Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

/* ---------- ≥1200px ---------- */
@media (min-width: 1200px) {
    #header .header-logo img {
        width: 145px;
    }

    #header .header-logo {
        margin-top: 8px;
        filter: drop-shadow(2px 3px 5px rgba(0, 0, 0, 0.35));
    }

    .school-wordmark {
        font-size: 1.9rem;
        letter-spacing: 0.08em;
    }
}

/* ---------- 992–1199px ---------- */
@media (max-width: 1199.98px) {
    #header .header-logo img {
        width: 112px;
    }

    #header .header-logo {
        margin-top: 6px;
        filter: drop-shadow(2px 3px 4px rgba(0, 0, 0, 0.3));
    }

    .school-wordmark {
        font-size: 1.45rem;
        letter-spacing: 0.04em;
    }

    #header .header-brand {
        gap: 0.75rem;
    }
}

/* ---------- ≤991px ---------- */
@media (max-width: 991.98px) {
    #header .header-logo img {
        width: 88px;
    }

    #header .header-logo {
        margin-top: 8px;
        filter: none;
    }

    .school-wordmark {
        font-size: 1.6rem;
        letter-spacing: 0.03em;
    }

    #header .header-brand {
        gap: 1.5rem;
    }

    /* Readable labels if Porto keeps desktop (white) link color */
    #header .header-nav-main nav ul li > a,
    #header .header-nav-main .dropdown-item {
        color: #12315c !important;
    }
}

/* ---------- ≤575px ---------- */
@media (max-width: 575.98px) {
    #header .header-logo img {
        width: 72px;
    }

    #header .header-logo {
        margin-top: 14px;
        filter: none;
    }

    .school-wordmark {
        font-size: 1.45rem;
        letter-spacing: 0.02em;
    }

    #header .header-brand {
        gap: 0.85rem;
    }
}

@media (max-width: 389.98px) {
    #header .header-logo img {
        width: 64px;
    }

    .school-wordmark {
        font-size: 0.92rem;
        letter-spacing: 0;
    }
}
