/*
 * path: public_html/assets/imageworks-header.css
 * Production header styles for the reusable ImageWorks PHP component.
 */

.iw-site-header {
    --iw-header-neon: #7cff00;
    --iw-header-black: #07110a;
    --iw-header-white: #ffffff;
    --iw-header-muted: rgba(7, 17, 10, .72);

    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    padding-top: env(safe-area-inset-top);
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, .55), transparent 28%),
        linear-gradient(135deg, #b7ff45 0%, var(--iw-header-neon) 48%, #55e700 100%);
    border-bottom: 2px solid rgba(7, 17, 10, .28);
    box-shadow:
        0 12px 34px rgba(124, 255, 0, .28),
        0 2px 0 rgba(255, 255, 255, .45) inset;
}

.iw-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(.75rem, 3vw, 1.25rem);
    width: min(100%, 1280px);
    min-height: 76px;
    margin-inline: auto;
    padding: .75rem clamp(1rem, 4vw, 2rem);
}

.iw-site-header__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: clamp(.65rem, 2vw, 1rem);
    color: var(--iw-header-black);
    text-decoration: none;
    border-radius: 1.5rem;
    outline: none;
    transition:
        transform .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.iw-site-header__brand:focus-visible {
    box-shadow: 0 0 0 4px rgba(7, 17, 10, .32);
}

@media (hover: hover) {
    .iw-site-header__brand:hover {
        transform: translateY(-1px) scale(1.01);
    }
}

.iw-site-header__logo-frame {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: clamp(3.1rem, 10vw, 4.4rem);
    height: clamp(3.1rem, 10vw, 4.4rem);
    overflow: hidden;
    background: var(--iw-header-white);
    border: 2px solid var(--iw-header-black);
    border-radius: 1.15rem;
    box-shadow:
        .28rem .28rem 0 var(--iw-header-black),
        0 .9rem 1.4rem rgba(7, 17, 10, .18);
}

.iw-site-header__logo {
    display: block;
    width: 100%;
    height: 100%;
    padding: .24rem;
    object-fit: contain;
}

.iw-site-header__copy {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.iw-site-header__title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--iw-header-black);
    font-family:
        "Comic Sans MS",
        "Comic Neue",
        "Trebuchet MS",
        system-ui,
        sans-serif;
    font-size: clamp(2.15rem, 9.4vw, 5.1rem);
    font-weight: 1000;
    letter-spacing: -.11em;
    line-height: .85;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow:
        3px 3px 0 rgba(255, 255, 255, .95),
        6px 6px 0 rgba(7, 17, 10, .13);
    -webkit-text-stroke: 1px rgba(7, 17, 10, .28);
}

.iw-site-header__tagline {
    display: none;
    color: var(--iw-header-muted);
    font-size: .74rem;
    font-weight: 1000;
    letter-spacing: .25em;
    line-height: 1;
    text-transform: uppercase;
}

.iw-site-header__pill {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding-inline: 1rem;
    color: var(--iw-header-neon);
    background: var(--iw-header-black);
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
    box-shadow: .24rem .24rem 0 rgba(255, 255, 255, .88);
    font-size: .78rem;
    font-weight: 1000;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .iw-site-header__tagline {
        display: block;
    }
}

@media (min-width: 768px) {
    .iw-site-header__inner {
        min-height: 92px;
    }

    .iw-site-header__pill {
        display: inline-flex;
    }
}

@media (max-width: 359px) {
    .iw-site-header__inner {
        gap: .5rem;
        min-height: 68px;
        padding-inline: .7rem;
    }

    .iw-site-header__logo-frame {
        width: 2.65rem;
        height: 2.65rem;
        border-radius: .9rem;
        box-shadow: .2rem .2rem 0 var(--iw-header-black);
    }

    .iw-site-header__title {
        font-size: clamp(1.7rem, 10vw, 2.25rem);
        letter-spacing: -.1em;
        text-shadow:
            2px 2px 0 rgba(255, 255, 255, .95),
            4px 4px 0 rgba(7, 17, 10, .12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .iw-site-header__brand {
        transition: none;
    }
}
